API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.soap. SOAPMessage View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      SOAPMessage
Implements
Subclasses
Description
publicabstract abstract class SOAPMessage
  The root class for all SOAP messages.
Constructors
public SOAPMessage ()
Methods
Hide/Show inherited methods
publicabstract void addAttachmentPart (AttachmentPart AttachmentPart)
  Adds the given AttachmentPart object to this SOAPMessage object.
publicabstract int countAttachments ()
  Gets a count of the number of attachments in this message.
publicabstract AttachmentPart createAttachmentPart ()
  Creates a new empty AttachmentPart object.
public AttachmentPart createAttachmentPart (DataHandler dataHandler)
  Creates an AttachmentPart object and populates it using the given DataHandler object.
public AttachmentPart createAttachmentPart (Object content, String contentType)
  Creates an AttachmentPart object and populates it with the specified data of the specified content type.
publicabstract AttachmentPart getAttachment (SOAPElement element) throws SOAPException
  Returns an AttachmentPart object that is associated with an attachment that is referenced by this SOAPElement or null if no such attachment exists.
publicabstract Iterator getAttachments ()
  Retrieves all the AttachmentPart objects that are part of this SOAPMessage object.
publicabstract Iterator getAttachments (MimeHeaders headers)
  Retrieves all the AttachmentPart objects that have header entries that match the specified headers.
publicabstract String getContentDescription ()
  Retrieves a description of this SOAPMessage object's content.
publicabstract MimeHeaders getMimeHeaders ()
  Returns all the transport-specific MIME headers for this SOAPMessage object in a transport-independent fashion.
public Object getProperty (String property) throws SOAPException
  Retrieves value of the specified property.
public SOAPBody getSOAPBody () throws SOAPException
  Gets the SOAP Body contained in this SOAPMessage object.
public SOAPHeader getSOAPHeader () throws SOAPException
  Gets the SOAP Header contained in this SOAPMessage object.
publicabstract SOAPPart getSOAPPart ()
  Gets the SOAP part of this SOAPMessage object.
publicabstract void removeAllAttachments ()
  Removes all AttachmentPart objects that have been added to this SOAPMessage object.
publicabstract void removeAttachments (MimeHeaders headers)
  Removes all the AttachmentPart objects that have header entries that match the specified headers.
publicabstract void saveChanges () throws SOAPException
  Updates this SOAPMessage object with all the changes that have been made to it.
publicabstract boolean saveRequired ()
  Indicates whether this SOAPMessage object needs to have the method saveChanges called on it.
publicabstract void setContentDescription (String description)
  Sets the description of this SOAPMessage object's content with the given description.
public void setProperty (String property, Object value) throws SOAPException
  Associates the specified value with the specified property.
publicabstract void writeTo (OutputStream out) throws SOAPException IOException
  Writes this SOAPMessage object to the given output stream.
Fields
Hide/Show inherited fields
publicfinalstatic String CHARACTER_SET_ENCODING = "javax.xml.soap.character-set-encoding"
  Specifies the character type encoding for the SOAP Message.
publicfinalstatic String WRITE_XML_DECLARATION = "javax.xml.soap.write-xml-declaration"
  Specifies whether the SOAP Message will contain an XML declaration when it is sent.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar