public class SmtpMessage extends Object
| Constructor and Description |
|---|
SmtpMessage()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Get the message body.
|
Set<String> |
getHeaderNames()
Get an Iterator over the header names.
|
String |
getHeaderValue(String name)
Get the first values associated with a given header name.
|
List<String> |
getHeaderValues(String name)
Get the value(s) associated with the given header name.
|
void |
store(com.dumbster.smtp.SmtpResponse response,
String params)
Update the headers or body depending on the SmtpResponse object and line of input.
|
String |
toString()
String representation of the SmtpMessage.
|
public SmtpMessage()
public void store(com.dumbster.smtp.SmtpResponse response,
String params)
response - SmtpResponse objectparams - remainder of input line after SMTP command has been removedpublic Set<String> getHeaderNames()
public List<String> getHeaderValues(String name)
name - header namepublic String getHeaderValue(String name)
name - header namepublic String getBody()
Copyright © 2016. All rights reserved.