public class NntpArticle extends NntpArticleHeader
MimeMessage
,
Serialized FormConstructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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 . |
getDate, getFrom, getID, getNewsgroups, getSubject, setDate
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
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 articleMimeException
- if a MIME related error occursMimeException
public NntpArticle(byte[] contents) throws MimeException
NntpArticle
from existing MIME content.contents
- the contents of mime messageMimeException
- if a MIME related error occursMimeException
public void setFrom(java.lang.String from) throws MimeException
NntpArticle
.setFrom
in class NntpArticleHeader
from
- the email address of the person responsible for this articleMimeException
- if a MIME related error occursMimeException
public void setNewsgroups(java.lang.String newsgroups) throws MimeException
NntpArticle
.newsgroups
- a comma delimited list of newsgroupsMimeException
- 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 articleMimeException
- if a MIME related error occursMimeException
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved