|
|||||||||
| Home >> All >> com >> xpn >> xwiki >> test >> [ smtp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.xpn.xwiki.test.smtp
Class SmtpMessage

java.lang.Objectcom.xpn.xwiki.test.smtp.SmtpMessage
- public class SmtpMessage
- extends java.lang.Object
Container for a complete SMTP message - headers and message body.
| Field Summary | |
private java.lang.StringBuffer |
body
Message body. |
private java.util.Map |
headers
Headers: Map of List of String hashed on header name. |
| Constructor Summary | |
SmtpMessage()
Constructor. |
|
| Method Summary | |
private void |
addHeader(java.lang.String name,
java.lang.String value)
Adds a header to the Map. |
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 |
| Field Detail |
headers
private java.util.Map headers
- Headers: Map of List of String hashed on header name.
body
private java.lang.StringBuffer body
- Message body.
| Constructor Detail |
SmtpMessage
public SmtpMessage()
- Constructor. Initializes headers Map and body buffer.
| Method Detail |
store
public void store(SmtpResponse response, java.lang.String params)
- Update the headers or body depending on the SmtpResponse object and line of input.
getHeaderNames
public java.util.Iterator getHeaderNames()
- Get an Iterator over the header names.
getHeaderValues
public java.lang.String[] getHeaderValues(java.lang.String name)
- Get the value(s) associated with the given header name.
getHeaderValue
public java.lang.String getHeaderValue(java.lang.String name)
- Get the first values associated with a given header name.
getBody
public java.lang.String getBody()
- Get the message body.
addHeader
private void addHeader(java.lang.String name, java.lang.String value)
- Adds a header to the Map.
toString
public java.lang.String toString()
- String representation of the SmtpMessage.
|
|||||||||
| Home >> All >> com >> xpn >> xwiki >> test >> [ smtp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.xpn.xwiki.test.smtp.SmtpMessage