SilverStream
Application Server 3.5

com.sssw.srv.mail
Class AgoMIMEPartAudio

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

public class AgoMIMEPartAudio
extends AgoMIMEPartByteStream

Class used for MIME parts of type audio. For example, when mailing someone a .wav file, it would be stored in an AgoMIMEPartAudio.


Constructor Summary
AgoMIMEPartAudio(String subtype)
          A constructor for the AgoMIMEPartAudio class.
AgoMIMEPartAudio(String subtype, AgoRFC822HeaderFieldSet headerfieldset)
          A constructor for the AgoMIMEPartAudio class.
AgoMIMEPartAudio(String subtype, AgoRFC822HeaderFieldSet headerfieldset, AgoEncodingIdentifier encodingidentifier)
          A constructor for the AgoMIMEPartAudio class.
AgoMIMEPartAudio(String subtype, AgoRFC822HeaderFieldSet headerfieldset, AgoEncodingIdentifier encodingidentifier, AgoByteStore value)
          A constructor for the AgoMIMEPartAudio 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

AgoMIMEPartAudio

public AgoMIMEPartAudio(String subtype)
A constructor for the AgoMIMEPartAudio 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 "audio". The encoding will be set to "base64" and there will be a Content-Disposition header specifying "inline".

Example:
     AgoMIMEPartAudio part = new AgoMIMEPartAudio("wav");
 

AgoMIMEPartAudio

public AgoMIMEPartAudio(String subtype,
                        AgoRFC822HeaderFieldSet headerfieldset)
A constructor for the AgoMIMEPartAudio class.
Parameters:
subtype - the MIME subtype for this part. For a list of subtypes see supported types and subtypes.
headerfieldset - a set of headerfields for this part.
Usage:

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

Example:
     AgoRFC822HeaderFieldSet headers;
     AgoMIMEPartAudio part = new AgoMIMEPartAudio("wav", headers);
 
See Also:
AgoRFC822HeaderFieldSet

AgoMIMEPartAudio

public AgoMIMEPartAudio(String subtype,
                        AgoRFC822HeaderFieldSet headerfieldset,
                        AgoEncodingIdentifier encodingidentifier)
A constructor for the AgoMIMEPartAudio class.
Parameters:
subtype - the MIME subtype for this part. For a list of subtypes see 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 encoding mechanisms see supported encoding mechanisms.
Usage:

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

Example:
     AgoRFC822HeaderFieldSet headers;
     AgoMIMEPartAudio part = new AgoMIMEPartAudio("wav", headers, "base64");
 
See Also:
AgoRFC822HeaderFieldSet, AgoEncodingIdentifier

AgoMIMEPartAudio

public AgoMIMEPartAudio(String subtype,
                        AgoRFC822HeaderFieldSet headerfieldset,
                        AgoEncodingIdentifier encodingidentifier,
                        AgoByteStore value)
A constructor for the AgoMIMEPartAudio class.
Parameters:
subtype - the MIME subtype for this part. For a list of subtypes see 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 encoding mechanisms see supported encoding mechansims.
value - specifies the value.
Usage:

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

Example:
     AgoRFC822HeaderFieldSet headers;
     AgoByteStore bytes;
     AgoMIMEPartAudio part = new AgoMIMEPartAudio("wav",
 
                                                  headers,
                                                  "base64",
                                                  bytes);
 
See Also:
AgoRFC822HeaderFieldSet, AgoEncodingIdentifier, AgoByteStore

SilverStream
Application Server 3.5