|
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
public class NntpArticleHeader
Provides methods for constucting, editing and reconstructing a set of NNTP article headers for a given NNTP article. The NntpArticleHeader class provides a headers only view of an article retreived from an NNTP server.
Field Summary |
---|
Fields inherited from interface com.jscape.inet.mime.MimeConstants |
---|
COLON, CR, CRLF, EQUALS, LF, QUESTION_MARK, SEMI_COLON, SPACE, TAB |
Constructor Summary | |
---|---|
NntpArticleHeader()
Creates a new NntpArticleHeader object. |
|
NntpArticleHeader(byte[] contents)
Creates a new NntpArticleHeader object. |
Method Summary | |
---|---|
java.lang.String |
getDate()
Gets Date header. |
java.lang.String |
getFrom()
Gets From header from article headers. |
int |
getID()
Gets unique message id according to NNTP server. |
java.lang.String |
getNewsgroups()
Gets Newsgroups header from article headers. |
java.lang.String |
getSubject()
Gets Subject header from article headers. |
void |
setDate(java.lang.String date)
Sets Date header. |
void |
setFrom(java.lang.String from)
Sets From header. |
void |
setSubject(java.lang.String subject)
Sets Subject header. |
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 NntpArticleHeader()
public NntpArticleHeader(byte[] contents) throws MimeException
contents
- the contents of the article header
MimeException
- if a MIME related parsing error occursMethod Detail |
---|
public java.lang.String getFrom()
public java.lang.String getSubject()
public java.lang.String getNewsgroups()
public int getID()
Nntp.getArticle(int)
public void setSubject(java.lang.String subject) throws MimeException
subject
- the subject
MimeException
- if a MIME related error occurspublic void setFrom(java.lang.String from) throws MimeException
from
- the from address
MimeException
- if a MIME related error occurspublic void setDate(java.lang.String date) throws MimeException
date
- the date
MimeException
- if a MIME related error occurspublic java.lang.String getDate()
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |