|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dumbster.smtp.SmtpMessage
Container for a complete SMTP message - headers and message body.
Constructor Summary | |
SmtpMessage()
Constructor. |
Method Summary | |
java.lang.String |
getBody()
Get the message body. |
java.util.Iterator |
getHeaderNames()
Get an Iterator over the header names. |
java.lang.String |
getHeaderValue(java.lang.String name)
Get the first values associated with a given header name. |
java.lang.String[] |
getHeaderValues(java.lang.String name)
Get the value(s) associated with the given header name. |
void |
store(SmtpResponse response,
java.lang.String params)
Update the headers or body depending on the SmtpResponse object and line of input. |
java.lang.String |
toString()
String representation of the SmtpMessage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SmtpMessage()
Method Detail |
public void store(SmtpResponse response, java.lang.String params)
response
- SmtpResponse objectparams
- remainder of input line after SMTP command has been removedpublic java.util.Iterator getHeaderNames()
public java.lang.String[] getHeaderValues(java.lang.String name)
name
- header name
public java.lang.String getHeaderValue(java.lang.String name)
name
- header name
public java.lang.String getBody()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |