API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.soap. AttachmentPart View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AttachmentPart
Implements
Subclasses
Description
publicabstract abstract class AttachmentPart
  A single attachment to a SOAPMessage object.
See also:   
Constructors
public AttachmentPart ()
Methods
Hide/Show inherited methods
publicabstract void addMimeHeader (String name, String value)
  Adds a MIME header with the specified name and value to this AttachmentPart object.
publicabstract void clearContent ()
  Clears out the content of this AttachmentPart object.
publicabstract Iterator getAllMimeHeaders ()
  Retrieves all the headers for this AttachmentPart object as an iterator over the MimeHeader objects.
publicabstract InputStream getBase64Content () throws SOAPException
  Returns an InputStream which can be used to obtain the content of AttachmentPart as Base64 encoded character data, this method would base64 encode the raw bytes of the attachment and return.
publicabstract Object getContent () throws SOAPException
  Gets the content of this AttachmentPart object as a Java object.
public String getContentId ()
  Gets the value of the MIME header whose name is "Content-ID".
public String getContentLocation ()
  Gets the value of the MIME header whose name is "Content-Location".
public String getContentType ()
  Gets the value of the MIME header whose name is "Content-Type".
publicabstract DataHandler getDataHandler () throws SOAPException
  Gets the DataHandler object for this AttachmentPart object.
publicabstract Iterator getMatchingMimeHeaders (String names)
  Retrieves all MimeHeader objects that match a name in the given array.
publicabstract String getMimeHeader (String name)
  Gets all the values of the header identified by the given String.
publicabstract Iterator getNonMatchingMimeHeaders (String names)
  Retrieves all MimeHeader objects whose name does not match a name in the given array.
publicabstract InputStream getRawContent () throws SOAPException
  Gets the content of this AttachmentPart object as an InputStream as if a call had been made to getContent and no DataContentHandler had been registered for the content-type of this AttachmentPart.
publicabstract byte getRawContentBytes () throws SOAPException
  Gets the content of this AttachmentPart object as a byte[] array as if a call had been made to getContent and no DataContentHandler had been registered for the content-type of this AttachmentPart.
publicabstract int getSize () throws SOAPException
  Returns the number of bytes in this AttachmentPart object.
publicabstract void removeAllMimeHeaders ()
Removes all the MIME header entries.
publicabstract void removeMimeHeader (String header)
  Removes all MIME headers that match the given name.
publicabstract void setBase64Content (InputStream content, String contentType) throws SOAPException
  Sets the content of this attachment part from the Base64 source InputStream and sets the value of the Content-Type header to the value contained in contentType, This method would first decode the base64 input and write the resulting raw bytes to the attachment.
publicabstract void setContent (Object object, String contentType)
  Sets the content of this attachment part to that of the given Object and sets the value of the Content-Type header to the given type.
public void setContentId (String contentId)
  Sets the MIME header whose name is "Content-ID" with the given value.
public void setContentLocation (String contentLocation)
  Sets the MIME header whose name is "Content-Location" with the given value.
public void setContentType (String contentType)
  Sets the MIME header whose name is "Content-Type" with the given value.
publicabstract void setDataHandler (DataHandler dataHandler)
  Sets the given DataHandler object as the data handler for this AttachmentPart object.
publicabstract void setMimeHeader (String name, String value)
  Changes the first header entry that matches the given name to the given value, adding a new header if no existing header matches.
publicabstract void setRawContent (InputStream content, String contentType) throws SOAPException
  Sets the content of this attachment part to that contained by the InputStream content and sets the value of the Content-Type header to the value contained in contentType.
publicabstract void setRawContentBytes (byte[] content, int offset, int len, String contentType) throws SOAPException
  Sets the content of this attachment part to that contained by the byte[] array content and sets the value of the Content-Type header to the value contained in contentType.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar