|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.Part | +--org.apache.axis.SOAPPart
The SOAPPart provides access to the root part of the Message which contains the envelope.
SOAPPart implements Part, providing common MIME operations.
SOAPPart also allows access to its envelope, as a string, byte[], InputStream, or SOAPEnvelope. (This functionality used to be in Message, and has been moved here more or less verbatim pending further cleanup.)
Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
SOAPPart(Message parent,
java.lang.Object initialContents,
boolean isBodyStream)
Do not call this directly! Should only be called by Message. |
Method Summary | |
byte[] |
getAsBytes()
Get the contents of this Part (not the headers!), as a byte array. |
SOAPEnvelope |
getAsSOAPEnvelope()
Get the contents of this Part (not the MIME headers!), as a SOAPEnvelope. |
java.lang.String |
getAsString()
Get the contents of this Part (not the headers!), as a String. |
int |
getContentLength()
Get the content length for this SOAPPart. |
java.lang.String |
getContentType()
Content type is always "text/xml" for SOAPParts. |
java.lang.Object |
getCurrentMessage()
Get the current message, in whatever form it happens to be right now. |
Message |
getMessage()
Get the Message for this Part. |
int |
getSize()
Get the total size in bytes, including headers, of this Part. |
void |
setMessage(Message msg)
Set the Message for this Part. |
void |
setSOAPEnvelope(SOAPEnvelope env)
This set the SOAP Envelope for this part. |
void |
writeTo(java.io.OutputStream out)
Write out the contents & headers to out. |
Methods inherited from class org.apache.axis.Part |
addMimeHeader, getContentId, getContentLocation, getMatchingMimeHeaders, getMimeHeader, getNewContentIdValue, getNonMatchingMimeHeaders, setContentId, setContentLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
Constructor Detail |
public SOAPPart(Message parent, java.lang.Object initialContents, boolean isBodyStream)
Method Detail |
public Message getMessage()
public void setMessage(Message msg)
public java.lang.String getContentType()
getContentType
in class Part
public int getContentLength()
public void setSOAPEnvelope(SOAPEnvelope env)
public int getSize()
public void writeTo(java.io.OutputStream out) throws java.io.IOException
public java.lang.Object getCurrentMessage()
The method name is historical. TODO: rename this for clarity; should be more like getContents.
public byte[] getAsBytes() throws AxisFault
public java.lang.String getAsString() throws AxisFault
public SOAPEnvelope getAsSOAPEnvelope() throws AxisFault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |