|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.message.MessageElement | +--org.apache.axis.message.SOAPEnvelope
Implementation of a SOAP Envelope
Inner classes inherited from class org.apache.axis.message.MessageElement |
MessageElement.QNameAttr |
Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
java.lang.String |
messageType
|
java.util.Vector |
trailers
|
Fields inherited from class org.apache.axis.message.MessageElement |
_isDirty, _isRoot, attributes, context, elementRep, encodingStyle, endEventIndex, href, id, message, name, namespaces, namespaceURI, parent, prefix, qNameAttrs, recorder, startContentsIndex, startEventIndex, textRep, typeQName |
Constructor Summary | |
SOAPEnvelope()
|
|
SOAPEnvelope(boolean registerPrefixes,
SOAPConstants soapConstants)
|
|
SOAPEnvelope(boolean registerPrefixes,
SOAPConstants soapConstants,
SchemaVersion schemaVersion)
|
|
SOAPEnvelope(java.io.InputStream input)
|
|
SOAPEnvelope(SOAPConstants soapConstants)
|
|
SOAPEnvelope(SOAPConstants soapConstants,
SchemaVersion schemaVersion)
|
Method Summary | |
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 |
void |
clearBody()
clear the elements in the soap body |
Name |
createName(java.lang.String localName)
create a Name given the local part |
Name |
createName(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
Create a name given local part, prefix and uri |
SOAPBody |
getBody()
Get the soap body |
SOAPBodyElement |
getBodyByName(java.lang.String namespace,
java.lang.String localPart)
Get a body element given its name |
java.util.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(java.lang.String namespace,
java.lang.String localPart)
Get a header by name (always respecting the currently in-scope actors list) |
SOAPHeaderElement |
getHeaderByName(java.lang.String namespace,
java.lang.String localPart,
boolean accessAllHeaders)
Get a header by name, filtering for headers targeted at this engine depending on the accessAllHeaders parameter. |
java.util.Vector |
getHeaders()
Get Headers |
java.util.Vector |
getHeadersByActor(java.util.ArrayList actors)
Get all the headers targeted at a list of actors. |
java.util.Enumeration |
getHeadersByName(java.lang.String namespace,
java.lang.String localPart)
Get an enumeration of header elements given the namespace and localpart |
java.util.Enumeration |
getHeadersByName(java.lang.String namespace,
java.lang.String localPart,
boolean accessAllHeaders)
Return an Enumeration of headers which match the given namespace and localPart. |
java.lang.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 |
java.util.Vector |
getTrailers()
Return trailers |
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 |
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 |
setHeader(SOAPHeader hdr)
Set the SOAP Header |
void |
setMessageType(java.lang.String messageType)
Set the Message Type (REQUEST/RESPONSE) |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.soap.SOAPElement |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, removeAttribute, removeNamespaceDeclaration, setEncodingStyle |
Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement |
Field Detail |
protected static org.apache.commons.logging.Log log
public java.util.Vector trailers
public java.lang.String messageType
Constructor Detail |
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(java.io.InputStream input) throws org.xml.sax.SAXException
Method Detail |
public java.lang.String getMessageType()
public void setMessageType(java.lang.String messageType)
messageType
- public java.util.Vector getBodyElements() throws AxisFault
AxisFault
- public java.util.Vector getTrailers()
public SOAPBodyElement getFirstBody() throws AxisFault
AxisFault
- public java.util.Vector getHeaders() throws AxisFault
AxisFault
- public java.util.Vector getHeadersByActor(java.util.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(java.lang.String namespace, java.lang.String localPart) throws AxisFault
public SOAPHeaderElement getHeaderByName(java.lang.String namespace, java.lang.String localPart, boolean accessAllHeaders) throws AxisFault
public SOAPBodyElement getBodyByName(java.lang.String namespace, java.lang.String localPart) throws AxisFault
namespace
- localPart
- AxisFault
- public java.util.Enumeration getHeadersByName(java.lang.String namespace, java.lang.String localPart) throws AxisFault
namespace
- localPart
- AxisFault
- public java.util.Enumeration getHeadersByName(java.lang.String namespace, java.lang.String localPart, boolean accessAllHeaders) throws AxisFault
public void outputImpl(SerializationContext context) throws java.lang.Exception
outputImpl
in class MessageElement
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 SOAPEnvelope
SOAPException
- public SOAPHeader addHeader() throws SOAPException
addHeader
in interface SOAPEnvelope
SOAPException
- public Name createName(java.lang.String localName) throws SOAPException
createName
in interface SOAPEnvelope
localName
- SOAPException
- public Name createName(java.lang.String localName, java.lang.String prefix, java.lang.String uri) throws SOAPException
createName
in interface SOAPEnvelope
localName
- prefix
- uri
- SOAPException
- public SOAPBody getBody() throws SOAPException
getBody
in interface SOAPEnvelope
SOAPException
- public SOAPHeader getHeader() throws SOAPException
getHeader
in interface SOAPEnvelope
SOAPException
- public void setSAAJEncodingCompliance(boolean comply)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |