|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.BodyPart
javax.mail.internet.MimeBodyPart
com.nitido.nim.NotificationBodyPart
public class NotificationBodyPart
This is a specialized extension of the standard MimeBodyPart object that can remember the full ContentType string. The standard MimeBodyPart object only remembers the MIME portion of the ContentType string. As a result, it will lost all the information regarding the encoding and charset.
This object should be used instead of MimeBodyPart when constructing the NotificationMessage.
This object is not thread safe. The developer must make sure this object is not shared across multiple threads.
(All of its member variables are not declared as volatile. If you really need to use it across mutiple threads, you must synchronized on this object instance itself. Otherwise, it may not work properly on multi-core systems.)
Field Summary |
---|
Fields inherited from class javax.mail.internet.MimeBodyPart |
---|
content, contentStream, dh, headers |
Fields inherited from class javax.mail.BodyPart |
---|
parent |
Fields inherited from interface javax.mail.Part |
---|
ATTACHMENT, INLINE |
Constructor Summary | |
---|---|
NotificationBodyPart()
|
Method Summary | |
---|---|
java.lang.String |
getContentType()
This method override the MimeBodyPart's implementation by returning the full content type it may have remembered from previous setContent calls. |
void |
setContent(java.lang.Object o,
java.lang.String type)
This method override the MimeBodyPart's implementation by remembering the full content type string without any truncation. |
Methods inherited from class javax.mail.internet.MimeBodyPart |
---|
addHeader, addHeaderLine, attachFile, attachFile, getAllHeaderLines, getAllHeaders, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getSize, isMimeType, removeHeader, saveFile, saveFile, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setHeader, setText, setText, setText, updateHeaders, writeTo |
Methods inherited from class javax.mail.BodyPart |
---|
getParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationBodyPart()
Method Detail |
---|
public void setContent(java.lang.Object o, java.lang.String type) throws javax.mail.MessagingException
setContent
in interface javax.mail.Part
setContent
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public java.lang.String getContentType() throws javax.mail.MessagingException
getContentType
in interface javax.mail.Part
getContentType
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.