Name

AttachmentPart

Synopsis

public abstract class AttachmentPart {
// Public Constructors
    public AttachmentPart(  ); 
// Property Accessor Methods (by property name)
    public abstract Iterator getAllMimeHeaders(  ); 
    public abstract Object getContent(  ) throws SOAPException; 
    public String getContentId(  ); 
    public void setContentId( String contentId); 
    public String getContentLocation(  ); 
    public void setContentLocation( String contentLocation); 
    public String getContentType(  ); 
    public void setContentType( String contentType);
    public abstract javax.activation.DataHandler getDataHandler(  ) 
        throws SOAPException; 
    public abstract void setDataHandler( javax.activation.DataHandler dataHandler); 
    public abstract int getSize(  ) throws SOAPException; 
// Public Instance Methods
    public abstract void addMimeHeader(String name, String value); 
    public abstract void clearContent(  ); 
    public abstract Iterator getMatchingMimeHeaders(String[ ] names); 
    public abstract String[ ] getMimeHeader(String name); 
    public abstract Iterator getNonMatchingMimeHeaders(String[ ] names); 
    public abstract void removeAllMimeHeaders(  ); 
    public abstract void removeMimeHeader( String header); 
    public abstract void setContent(Object object, String contentType); 
    public abstract void setMimeHeader(String name, String value); 
}

The AttachmentPart class represents an attachment to a SOAP message. Attachments are created using the createAttachment( ) method of the SOAPMessage class and are composed of MIME-encoded content and a set of MIME ...

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.