public class SOAPEnvelope extends MessageElement implements SOAPEnvelope
MessageElement.QNameAttr| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
String |
messageType |
Vector |
trailers |
_isRoot, context, encodingStyle, endEventIndex, fixupDeserializer, href, id, message, namespaces, qNameAttrs, recorder, startContentsIndex, startEventIndex, typeQName_isDirty, attributes, children, document, name, namespaceURI, parent, prefix, textRepATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
SOAPEnvelope() |
SOAPEnvelope(boolean registerPrefixes,
SOAPConstants soapConstants) |
SOAPEnvelope(boolean registerPrefixes,
SOAPConstants soapConstants,
SchemaVersion schemaVersion) |
SOAPEnvelope(InputStream input) |
SOAPEnvelope(SOAPConstants soapConstants) |
SOAPEnvelope(SOAPConstants soapConstants,
SchemaVersion schemaVersion) |
| Modifier and Type | Method and Description |
|---|---|
SOAPBody |
addBody()
Add a soap body if one does not exist
|
void |
addBodyElement(SOAPBodyElement element)
Add a SOAP Body Element
|
SOAPHeader |
addHeader()
Add a soap header if one does not exist
|
void |
addHeader(SOAPHeaderElement hdr)
Add a HeaderElement
|
void |
addTrailer(MessageElement element)
Add an element to the trailer
|
protected void |
childDeepCloned(NodeImpl oldNode,
NodeImpl newNode) |
void |
clearBody()
clear the elements in the soap body
|
Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes.
|
Name |
createName(String localName)
create a Name given the local part
|
Name |
createName(String localName,
String prefix,
String uri)
Create a name given local part, prefix and uri
|
SOAPBody |
getBody()
Get the soap body
|
SOAPBodyElement |
getBodyByName(String namespace,
String localPart)
Get a body element given its name
|
Vector |
getBodyElements()
Get all the BodyElement's in the soap body
|
SOAPBodyElement |
getFirstBody()
Get the first BodyElement in the SOAP Body
|
SOAPHeader |
getHeader()
Get the soap header
|
SOAPHeaderElement |
getHeaderByName(String namespace,
String localPart)
Get a header by name (always respecting the currently in-scope
actors list)
|
SOAPHeaderElement |
getHeaderByName(String namespace,
String localPart,
boolean accessAllHeaders)
Get a header by name, filtering for headers targeted at this
engine depending on the accessAllHeaders parameter.
|
Vector |
getHeaders()
Get Headers
|
Vector |
getHeadersByActor(ArrayList actors)
Get all the headers targeted at a list of actors.
|
Enumeration |
getHeadersByName(String namespace,
String localPart)
Get an enumeration of header elements given the namespace and localpart
|
Enumeration |
getHeadersByName(String namespace,
String localPart,
boolean accessAllHeaders)
Return an Enumeration of headers which match the given namespace
and localPart.
|
String |
getMessageType()
Get the Message Type (REQUEST/RESPONSE)
|
SchemaVersion |
getSchemaVersion()
Get the schema version for this envelope
|
SOAPConstants |
getSOAPConstants()
Get the soap constants for this envelope
|
Vector |
getTrailers()
Return trailers
|
boolean |
isRecorded() |
void |
outputImpl(SerializationContext context)
Should make SOAPSerializationException?
|
void |
removeBody()
Remove the SOAP Body
|
void |
removeBodyElement(SOAPBodyElement element)
Remove a Body Element from the soap body
|
Node |
removeChild(Node oldChild)
Removes the child node indicated by
oldChild from the list
of children, and returns it. |
void |
removeHeader(SOAPHeaderElement hdr)
Remove a Header Element from SOAP Header
|
void |
removeHeaders()
Remove all headers
|
void |
removeTrailer(MessageElement element)
Remove an element from the trailer
|
void |
setBody(SOAPBody body)
Set the soap body
|
void |
setDirty(boolean dirty)
set the dirty bit. will also set our parent as dirty, if there is one.
|
void |
setHeader(SOAPHeader hdr)
Set the SOAP Header
|
void |
setMessageType(String messageType)
Set the Message Type (REQUEST/RESPONSE)
|
void |
setOwnerDocument(SOAPPart sp) |
void |
setRecorded(boolean recorded) |
void |
setSAAJEncodingCompliance(boolean comply) |
void |
setSchemaVersion(SchemaVersion schemaVersion)
Set the schema version for this envelope
|
void |
setSoapConstants(SOAPConstants soapConstants)
Set the soap constants for this envelope
|
addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, addTextNode, cloning, detachAllChildren, equals, findElement, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributesEx, getAttributeValue, getAttributeValue, getChildElement, getChildElements, getChildElements, getChildElements, getChildren, getCompleteAttributes, getDeserializationContext, getElementName, getElementsByTagName, getElementsByTagNameNS, getElementsNS, getEncodingStyle, getEnvelope, getFixupDeserializer, getHref, getID, getLength, getName, getNamespacePrefixes, getNamespaceURI, getObjectValue, getObjectValue, getOwnerDocument, getPrefix, getQName, getRealElement, getRecorder, getTagName, getType, getValue, getValueAsType, getValueAsType, getValueDOM, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, isRoot, item, output, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAllAttributes, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setName, setNamespaceURI, setNSMappings, setObjectValue, setQName, setRecorder, setType, setValue, toStringappendChild, convertAttrSAXtoDOM, detachNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDirty, isSupported, makeAttributesEditable, normalize, recycleNode, replaceChild, reset, setDirty, setNodeValue, setOwnerDocument, setParent, setParentElement, setPrefixclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyledetachNode, getParentElement, getValue, recycleNode, setParentElement, setValuegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataprotected static org.apache.commons.logging.Log log
public Vector trailers
public String messageType
public SOAPEnvelope()
public SOAPEnvelope(SOAPConstants soapConstants)
public SOAPEnvelope(SOAPConstants soapConstants, SchemaVersion schemaVersion)
public SOAPEnvelope(boolean registerPrefixes,
SOAPConstants soapConstants)
public SOAPEnvelope(boolean registerPrefixes,
SOAPConstants soapConstants,
SchemaVersion schemaVersion)
public SOAPEnvelope(InputStream input) throws SAXException
SAXExceptionpublic String getMessageType()
public void setMessageType(String messageType)
messageType - public Vector getBodyElements() throws AxisFault
AxisFaultpublic Vector getTrailers()
public SOAPBodyElement getFirstBody() throws AxisFault
AxisFaultpublic Vector getHeaders() throws AxisFault
AxisFaultpublic Vector getHeadersByActor(ArrayList actors)
public void addHeader(SOAPHeaderElement hdr)
hdr - public void addBodyElement(SOAPBodyElement element)
element - public void removeHeaders()
public void setHeader(SOAPHeader hdr)
hdr - public void removeHeader(SOAPHeaderElement hdr)
hdr - public void removeBody()
public void setBody(SOAPBody body)
body - public void removeBodyElement(SOAPBodyElement element)
element - public void removeTrailer(MessageElement element)
element - public void clearBody()
public void addTrailer(MessageElement element)
element - public SOAPHeaderElement getHeaderByName(String namespace, String localPart) throws AxisFault
AxisFaultpublic SOAPHeaderElement getHeaderByName(String namespace, String localPart, boolean accessAllHeaders) throws AxisFault
AxisFaultpublic SOAPBodyElement getBodyByName(String namespace, String localPart) throws AxisFault
namespace - localPart - AxisFaultpublic Enumeration getHeadersByName(String namespace, String localPart) throws AxisFault
namespace - localPart - AxisFaultpublic Enumeration getHeadersByName(String namespace, String localPart, boolean accessAllHeaders) throws AxisFault
AxisFaultpublic void outputImpl(SerializationContext context) throws Exception
outputImpl in class MessageElementcontext - destination.Exception - if something went wrong.public SOAPConstants getSOAPConstants()
public void setSoapConstants(SOAPConstants soapConstants)
soapConstants - public SchemaVersion getSchemaVersion()
public void setSchemaVersion(SchemaVersion schemaVersion)
schemaVersion - public SOAPBody addBody() throws SOAPException
addBody in interface SOAPEnvelopeSOAPExceptionpublic SOAPHeader addHeader() throws SOAPException
addHeader in interface SOAPEnvelopeSOAPExceptionpublic Name createName(String localName) throws SOAPException
createName in interface SOAPEnvelopelocalName - SOAPExceptionpublic Name createName(String localName, String prefix, String uri) throws SOAPException
createName in interface SOAPEnvelopelocalName - prefix - uri - SOAPExceptionpublic SOAPBody getBody() throws SOAPException
getBody in interface SOAPEnvelopeSOAPExceptionpublic SOAPHeader getHeader() throws SOAPException
getHeader in interface SOAPEnvelopeSOAPExceptionpublic void setSAAJEncodingCompliance(boolean comply)
public Node removeChild(Node oldChild) throws DOMException
NodeImploldChild from the list
of children, and returns it.removeChild in interface NoderemoveChild in class NodeImploldChild - The node being removed.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
oldChild is not a child of
this node.public Node cloneNode(boolean deep)
MessageElementparentNode is null.).
Element copies all attributes and their
values, including those generated by the XML processor to represent
defaulted attributes, but this method does not copy any text it
contains unless it is a deep clone, since the text is contained in a
child Text node. Cloning an Attribute
directly, as opposed to be cloned as part of an Element
cloning operation, returns a specified attribute (
specified is true). Cloning any other type
of node simply returns a copy of this node.
EntityReference clone are readonly
. In addition, clones of unspecified Attr nodes are
specified. And, cloning Document,
DocumentType, Entity, and
Notation nodes is implementation dependent.cloneNode in interface NodecloneNode in class MessageElementdeep - If true, recursively clone the subtree under
the specified node; if false, clone only the node
itself (and its attributes, if it is an Element).protected void childDeepCloned(NodeImpl oldNode, NodeImpl newNode)
childDeepCloned in class MessageElementpublic void setOwnerDocument(SOAPPart sp)
public void setRecorded(boolean recorded)
public boolean isRecorded()
public void setDirty(boolean dirty)
NodeImplCopyright © The Apache Software Foundation. All Rights Reserved.