/** * Constructor for an instance with effectively only a pivot handler. * * @param handler the <code>Handler</code> to use */ public SimpleTargetedChain(Handler handler) { pivotHandler = handler; if (pivotHandler != null) { addHandler(pivotHandler); addHandler(new PivotIndicator()); } }
/** * This is SOAP 1.2 equivalent of {@link #getFaultString()}. * @since axis1.1 * @return the fault <code>String</code> */ public String getFaultReason() { return getFaultString(); }
/** * Set the administration password. * * @param pw the literal value of the password as a <code>String</code> */ public void setAdminPassword(String pw) { setOption(PROP_PASSWORD, pw); _hasSafePassword = true; saveConfiguration(); }
/** * No-arg constructor for building one from an XML stream. */ public AxisFault() { super(); setFaultCodeAsString(Constants.FAULT_SERVER_GENERAL); initFromException(this); }
/** * set the fault details to a string element. * @param details XML fragment */ public void setFaultDetailString(String details) { clearFaultDetails(); addFaultDetailString(details); }
/** * add the hostname string. If one already exists, remove it. * @param hostname string name of a host * @since Axis1.2 */ public void addHostname(String hostname) { //add the hostname removeHostname(); addFaultDetail(Constants.QNAME_FAULTDETAIL_HOSTNAME, hostname); }
/** * Directly get the response message in our MessageContext. * * Shortcut for having to go thru the msgContext * * Note: Not part of JAX-RPC specification. * * @return the response Message object in the msgContext */ public Message getResponseMessage() { return msgContext.getResponseMessage(); }
/** * Allow the user to set the default SOAP version. For SOAP 1.2, pass * SOAPConstants.SOAP12_CONSTANTS. * * @param soapConstants the SOAPConstants object representing the correct * version */ public void setSOAPVersion(SOAPConstants soapConstants) { msgContext.setSOAPConstants(soapConstants); }
/** * Set the request message, and make sure that message is associated * with this MessageContext. * * @param reqMsg the new request Message. */ public void setRequestMessage(Message reqMsg) { requestMessage = reqMsg ; if (requestMessage != null) { requestMessage.setMessageContext(this); } }
/** * Gets the fault actor for this <CODE>SOAPFaultException</CODE> * object. * @return a <CODE>String</CODE> giving the actor in the message * path that caused this <CODE>SOAPFaultException</CODE> object * @see #setFaultActor(java.lang.String) setFaultActor(java.lang.String) */ public String getFaultActor() { return fault.getFaultActor(); }
/** * Returns a global response handler. */ public Handler getGlobalResponse() throws ConfigurationException { if (globalResponse != null) return globalResponse; if (defaultConfiguration != null) return defaultConfiguration.getGlobalResponse(); return null; }
/** * This is SOAP 1.2 equivalent of {@link #setFaultActor(java.lang.String)}. * @since axis1.1 */ public void setFaultRole(String role) { setFaultActor(role); }
/** * Content location. * * @return the content location */ public String getContentLocation() { return getFirstMimeHeader(HTTPConstants.HEADER_CONTENT_LOCATION); }
/** * Set content location. * * @param loc the content location */ public void setContentLocation(String loc) { setMimeHeader(HTTPConstants.HEADER_CONTENT_LOCATION, loc); }
public Element getDocumentElement() { try{ return getEnvelope(); }catch(SOAPException se){ return null; } }
/** * Construct a Message. An overload of Message(Object, boolean), * defaulting bodyInStream to false. * * @param initialContents may be String, byte[], InputStream, SOAPEnvelope, * or AxisFault */ public Message(Object initialContents) { setup(initialContents, false, null, null, null); }
/** * Sets the encoding style to the URL passed in. * * @param namespaceURI URI of the encoding to use. */ public void setEncodingStyle(String namespaceURI) { encodingStyleExplicitlySet = true; msgContext.setEncodingStyle(namespaceURI); }
/** * Constructor for an instance with effectively only a pivot handler. * * @param handler the <code>Handler</code> to use */ public SimpleTargetedChain(Handler handler) { pivotHandler = handler; if (pivotHandler != null) { addHandler(pivotHandler); addHandler(new PivotIndicator()); } }
/** * This is SOAP 1.2 equivalent of {@link #getFaultActor()}. * @since axis1.1 * @return the name of the fault actor */ public String getFaultRole() { return getFaultActor(); }
/** * Constructor for an instance with effectively only a pivot handler. * * @param handler the <code>Handler</code> to use */ public SimpleTargetedChain(Handler handler) { pivotHandler = handler; if (pivotHandler != null) { addHandler(pivotHandler); addHandler(new PivotIndicator()); } }