SilverStream
Application Server 3.5

com.sssw.srv.mail
Class AgoMIMEPartApplication

java.lang.Object
 |
 +--com.sssw.srv.mail.AgoMIMEPart
       |
       +--com.sssw.srv.mail.AgoMIMEPartByteStream
             |
             +--com.sssw.srv.mail.AgoMIMEPartApplication

public class AgoMIMEPartApplication
extends AgoMIMEPartByteStream

Concrete implementation for MIME parts of content type application. This class is used primarily for storing file attachments in some application-specific format (e.g., "application/msword").


Constructor Summary
AgoMIMEPartApplication(String subtype)
          A constructor for the AgoMIMEPartApplication class.
AgoMIMEPartApplication(String subtype, AgoRFC822HeaderFieldSet headerfieldset)
          A constructor for the AgoMIMEPartApplication class.
AgoMIMEPartApplication(String subtype, AgoRFC822HeaderFieldSet headerfieldset, AgoEncodingIdentifier encodingidentifier)
          A constructor for the AgoMIMEPartApplication class.
AgoMIMEPartApplication(String subtype, AgoRFC822HeaderFieldSet headerfieldset, AgoEncodingIdentifier encodingidentifier, AgoByteStore value)
          A constructor for the AgoMIMEPartApplication class.
 
Methods inherited from class com.sssw.srv.mail.AgoMIMEPartByteStream
contentDispositionHeaderField, contentTransferEncodingHeaderField, contentTypeHeaderField, getContentDisposition, getEncodingIdentifier, getValue, setContentDisposition, setEncodingIdentifier, setValue, write, writeHeaderFields
 
Methods inherited from class com.sssw.srv.mail.AgoMIMEPart
deleteHeaderField, getHeaderField, getHeaderFieldSet, getNameParameterOnContentType, setHeaderField, setHeaderField, setHeaderFieldSet, setNameParameterOnContentType, subtype, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgoMIMEPartApplication

public AgoMIMEPartApplication(String subtype)
A constructor for the AgoMIMEPartApplication class.
Parameters:
subtype - the MIME subtype for this part. For a list of subtypes see supported types and subtypes.
Usage:

You only need to specify the subtype since the type is always "application". The encoding will be set to "base64" and there will be a Content-Disposition header specifying "attachment".

Example:
     AgoMIMEPartApplication part = new AgoMIMEPartApplication("octet-stream");
 

AgoMIMEPartApplication

public AgoMIMEPartApplication(String subtype,
                              AgoRFC822HeaderFieldSet headerfieldset)
A constructor for the AgoMIMEPartApplication class.
Parameters:
subtype - the MIME subtype for this part. Valid For a list of subtypes see supported types and subtypes.
headerfieldset - specifies a set of header fields to include in this part.
Usage:

You only need to specify the subtype since the type is always "application". The encoding will be set to "base64" and there will be a Content-Disposition header specifying "attachment".

Example:
     AgoRFC822HeaderFieldSet headers;
     AgoMIMEPartApplication mApp = new AgoMIMEPartApplication("octet-stream", headers);
 
See Also:
AgoRFC822HeaderFieldSet

AgoMIMEPartApplication

public AgoMIMEPartApplication(String subtype,
                              AgoRFC822HeaderFieldSet headerfieldset,
                              AgoEncodingIdentifier encodingidentifier)
A constructor for the AgoMIMEPartApplication class.
Parameters:
subtype - the MIME subtype for this part. For a list of subtypes ee supported types and subtypes.
headerfieldset - the header fields for this part.
encodingidentifier - specifies the encoding mechanism to use (e.g. AgoMIME.MECHANISM_BASE64). For a list of supported encoding mechanisms See supported encoding mechanisms.
Usage:

You only need to specify the subtype since the type is always "application". There will be a Content-Disposition header specifying "attachment".

Example:
     AgoRFC822HeaderFieldSet headers;
     AgoMIMEPartApplication mApp = new AgoMIMEPartApplication("octet-stream",
                                                              headers,
                                                              "base64");
 

AgoMIMEPartApplication

public AgoMIMEPartApplication(String subtype,
                              AgoRFC822HeaderFieldSet headerfieldset,
                              AgoEncodingIdentifier encodingidentifier,
                              AgoByteStore value)
A constructor for the AgoMIMEPartApplication class.
Parameters:
subtype - the MIME subtype for this part. For a list of subtypes ee supported types and subtypes.
headerfieldset - a set of headerfields for this part.
encodingidentifier - specifies the encoding mechanism to use (e.g. AgoMIME.MECHANISM_BASE64). For a list of supported encoding mechanisms See supported encoding mechanisms.
value - specifies the value.
Usage:

You only need to specify the subtype since the type is always "application". There will be a Content-Disposition header specifying "attachment".

Example:
     AgoRFC822HeaderFieldSet headers;
     AgoByteStore bytes;
     AgoMIMEPartApplication mApp = new AgoMIMEPartApplication("octet-stream",
                                                              headers,
                                                              "base64",
                                                               bytes);
 
See Also:
AgoRFC822HeaderFieldSet, AgoEncodingIdentifier, AgoByteStore, AgoMIMEPartByteStream, AgoMIMEPart, AgoMIME

SilverStream
Application Server 3.5