|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.mime.MimeMessage
com.jscape.inet.nntp.NntpArticleHeader
com.jscape.inet.nntp.NntpArticle
public class NntpArticle
Represents article header and body. This class extends MimeMessage and can be constructed using the default constructor or from existing Mime contents.
MimeMessage
,
Serialized FormField Summary |
---|
Fields inherited from interface com.jscape.inet.mime.MimeConstants |
---|
COLON, CR, CRLF, EQUALS, LF, QUESTION_MARK, SEMI_COLON, SPACE, TAB |
Constructor Summary | |
---|---|
NntpArticle()
Constructs a new NntpArticle . |
|
NntpArticle(byte[] contents)
Constructs a new NntpArticle from existing MIME content. |
|
NntpArticle(java.lang.String from,
java.lang.String newsgroups,
java.lang.String subject)
Constructs a new NntpArticle . |
Method Summary | |
---|---|
void |
setFrom(java.lang.String from)
Sets From header for this NntpArticle . |
void |
setNewsgroups(java.lang.String newsgroups)
Sets Newsgroups header for this NntpArticle . |
void |
setSubject(java.lang.String subject)
Sets Subject header for this NntpArticle . |
Methods inherited from class com.jscape.inet.nntp.NntpArticleHeader |
---|
getDate, getFrom, getID, getNewsgroups, getSubject, setDate |
Methods inherited from class com.jscape.inet.mime.MimeMessage |
---|
addHeader, addHeader, addPart, addReplaceHeader, addReplaceHeader, getBody, getBodyAsFile, getBodyData, getBoundary, getContentTransferEncoding, getContentType, getHeader, getHeaders, getHeaders, getHeaderValue, getMessage, getPart, getParts, getRawBodyData, removeHeader, removePart, removeParts, setBody, setBody, setBody, setBody, setBodyAsFile, setContentType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NntpArticle()
NntpArticle
.
public NntpArticle(java.lang.String from, java.lang.String newsgroups, java.lang.String subject) throws MimeException
NntpArticle
. Article is constructed with
provided From, Newsgroups and Subject headers.
from
- the email address of the person responsible for this articlenewsgroups
- a comma delimited list of newsgroupssubject
- the subject of the article
MimeException
- if a MIME related error occursMimeException
public NntpArticle(byte[] contents) throws MimeException
NntpArticle
from existing MIME content.
contents
- the contents of mime message
MimeException
- if a MIME related error occursMimeException
Method Detail |
---|
public void setFrom(java.lang.String from) throws MimeException
NntpArticle
.
setFrom
in class NntpArticleHeader
from
- the email address of the person responsible for this article
MimeException
- if a MIME related error occursMimeException
public void setNewsgroups(java.lang.String newsgroups) throws MimeException
NntpArticle
.
newsgroups
- a comma delimited list of newsgroups
MimeException
- if a MIME related error occursMimeException
public void setSubject(java.lang.String subject) throws MimeException
NntpArticle
.
setSubject
in class NntpArticleHeader
subject
- the subject of the article
MimeException
- if a MIME related error occursMimeException
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |