Name
SOAPPart
Synopsis
public abstract class SOAPPart { // Public Constructors public SOAPPart( ); // Property Accessor Methods (by property name) public abstract Iterator getAllMimeHeaders( ); public abstract javax.xml.transform.Source getContent( ) throws SOAPException; public abstract void setContent(javax.xml.transform.Sourcesource
) throws SOAPException; public String getContentId( ); public void setContentId( StringcontentId
); public String getContentLocation( ); public void setContentLocation(StringcontentLocation
); public abstract SOAPEnvelope getEnvelope( ) throws SOAPException; // Public Instance Methods public abstract void addMimeHeader(Stringname
, Stringvalue
); public abstract Iterator getMatchingMimeHeaders(String[ ]names
); public abstract String[ ] getMimeHeader(Stringname
); public abstract Iterator getNonMatchingMimeHeaders(String[ ]names
); public abstract void removeAllMimeHeaders( ); public abstract void removeMimeHeader( Stringheader
); public abstract void setMimeHeader(Stringname
, Stringvalue
); }
SOAPPart
is a container that wraps the envelope of
a SOAP message. To get a reference to the
SOAPPart
, use the getSOAPPart( )
method of the containing SOAPMessage
.
Aside from getEnvelope( )
, all of the methods of
the SOAPPart
interface are concerned with
manipulating its associated MIME headers, which are used only if the
SOAP message has one or more MIME attachments. Refer to the reference
section for AttachmentPart
, earlier in this chapter for a description ...
Get Java Web Services in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.