|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.sssw.srv.mail.AgoMIMEPart
|
+--com.sssw.srv.mail.AgoMIMEPartText
Class that stores MIME parts of type text.
Some examples include: text/plain for plain, ASCII text, and text/html for HTML text.
The AgoMIMEPartAudio class is a subclass of AgoMIMEPart.
| Constructor Summary | |
AgoMIMEPartText(String subtype)
A constructor for the AgoMIMEPartText class. |
|
AgoMIMEPartText(String subtype,
AgoRFC822HeaderFieldSet headerfieldset)
A constructor for the AgoMIMEPartText class. |
|
AgoMIMEPartText(String subtype,
AgoRFC822HeaderFieldSet headerfieldset,
AgoCharSetIdentifier charsetidentifier,
AgoEncodingIdentifier encodingidentifier)
A constructor for the AgoMIMEPartText class. |
|
AgoMIMEPartText(String subtype,
AgoRFC822HeaderFieldSet headerfieldset,
AgoCharSetIdentifier charsetidentifier,
AgoEncodingIdentifier encodingidentifier,
AgoCharStore value)
A constructor for the AgoMIMEPartText class. |
|
| Method Summary | |
AgoCharSetIdentifier |
getCharSetIdentifier()
Returns the character set identifier of this MIME part. |
AgoEncodingIdentifier |
getEncodingIdentifier()
Returns the encoding mechanism used for this MIME part. |
AgoCharStore |
getValue()
Get the value descriptor. |
void |
setCharSet(AgoCharSetIdentifier charsetidentifier)
Set the character set identifier to be used for this MIME part. |
void |
setEncoding(AgoEncodingIdentifier encodingidentifier)
Set the encoding identifier to be used for this MIME part. |
| Methods inherited from class com.sssw.srv.mail.AgoMIMEPart |
contentDispositionHeaderField,
contentTransferEncodingHeaderField,
contentTypeHeaderField,
deleteHeaderField,
getHeaderField,
getHeaderFieldSet,
getNameParameterOnContentType,
setHeaderField,
setHeaderField,
setHeaderFieldSet,
setNameParameterOnContentType,
subtype,
type,
write,
writeHeaderFields |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AgoMIMEPartText(String subtype)
subtype - the subtype of this part.
For a list of subtypes see supported types and subtypes.The default charset used is "us-ascii" and the default encoding used is "7bit".
AgoMIMEPartText part = new AgoMIMEPartText("Hello World!");
public AgoMIMEPartText(String subtype,
AgoRFC822HeaderFieldSet headerfieldset)
subtype - the subtype of this part.
For a list of subtypes see supported types and subtypes.headerfieldset - a set of headerfields for this part.The default charset used is "us-ascii" and the default encoding used is "7bit".
AgoRFC822HeaderFieldSet headers;
AgoMIMEPartText part = new AgoMIMEPartText("Hello World!", headers);
AgoRFC822HeaderFieldSet
public AgoMIMEPartText(String subtype,
AgoRFC822HeaderFieldSet headerfieldset,
AgoCharSetIdentifier charsetidentifier,
AgoEncodingIdentifier encodingidentifier)
subtype - the subtype of this part.
For a list of subtypes see supported types and subtypes.headerfieldset - a set of headerfields for this part.charsetidentifier - specifies the character set to use (e.g. CHARSET_ISO_8859_1).
See supported character sets.encodingidentifier - specifies the encoding mechanism to use (e.g. AgoMIME.MECHANISM_BASE64).
See supported encoding mechanisms.
AgoRFC822HeaderFieldSet headers;
AgoMIMEPartText part = new AgoMIMEPartText("Hello World!",
headers,
"iso-8859-1",
quoted-printable");
AgoRFC822HeaderFieldSet,
AgoCharSetIdentifier,
AgoEncodingIdentifier
public AgoMIMEPartText(String subtype,
AgoRFC822HeaderFieldSet headerfieldset,
AgoCharSetIdentifier charsetidentifier,
AgoEncodingIdentifier encodingidentifier,
AgoCharStore value)
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.charsetidentifier - specifies the character set to use (e.g. CHARSET_ISO_8859_1).
See supported character sets.encodingidentifier - specifies the encoding mechanism to use (e.g. AgoMIME.MECHANISM_BASE64).
See supported encoding mechanisms.
AgoRFC822HeaderFieldSet headers;
AgoMIMEPartText part = new AgoMIMEPartText("Hello World!",
headers,
"iso-8859-1",
quoted-printable",
someAgoCharStore);
AgoRFC822HeaderFieldSet,
AgoCharSetIdentifier,
AgoEncodingIdentifier| Method Detail |
public AgoCharSetIdentifier getCharSetIdentifier()
AgoCharSetIdentifier charset = part.getCharSetIdentifier();
public void setCharSet(AgoCharSetIdentifier charsetidentifier)
charsetidentifier - specifies the character set
(e.g. CHARSET_ISO_8859_1) used in this MIME part.
See supported character sets.
AgoCharSetIdentifier charset = new AgoCharSetIdentifier(AgoMIME.CHARSET_ISO_8859_1)
part.setCharSetIdentifier(charset);
public AgoEncodingIdentifier getEncodingIdentifier()
AgoEncodingIdentifier encoding = part.getEncodingIdentifier();
AgoEncodingIdentifier,
AgoMIMEPartByteStream.setEncodingIdentifier(AgoEncodingIdentifier encodingidentifier)public void setEncoding(AgoEncodingIdentifier encodingidentifier)
encodingidentifier - specifies the encoding mechanism to use (e.g. AgoMIME.MECHANISM_BASE64).
See supported encoding mechanisms.
AgoEncodingIdentifier encoding = new AgoEncodingIdentifier(AgoMIME.MECHANISM_QUOTED_PRINTABLE)
part.setEncodingIdentifier(encoding);
AgoEncodingIdentifier,
AgoMIMEPartText.getEncodingIdentifier()
public AgoCharStore getValue()
throws IOException
AgoCharStore body = part.getValue();
|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||