|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.opmath.mail.SendRequest
A model of the object returned by the HTML mail compose form to the SendServlet.
Copyright: (c) 2002 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
| Field Summary | |
protected static String |
BCC_PDFLT
The default initialisation value for the 'BCC' value. |
protected static String |
BCC_PNAME
The name of the HTTP request parameter carrying the 'BCC' value. |
protected static String |
BODY_PDFLT
The default initialisation value for the body text value. |
protected static String |
BODY_PNAME
The name of the HTTP request parameter carrying the body text value. |
protected static String |
CC_PDFLT
The default initialisation value for the 'CC' value. |
protected static String |
CC_PNAME
The name of the HTTP request parameter carrying the 'CC' value. |
protected static String |
SUBJECT_PDFLT
The default initialisation value for the Subject value. |
protected static String |
SUBJECT_PNAME
The name of the HTTP request parameter carrying the Subject value. |
protected static String |
TO_PNAME
The name of the HTTP request parameter carrying the 'To' value. |
| Constructor Summary | |
SendRequest(HttpServletRequest request)
Create a new SendRequest object. |
|
| Method Summary | |
String |
getBCC()
Returns the 'BCC' field of this SendRequest object. |
String |
getBody()
Returns the message body of this SendRequest object. |
String |
getCC()
Returns the 'CC' field of this SendRequest object. |
String |
getSubject()
Returns the Subject field of this SendRequest object. |
String |
getTo()
Returns the 'To' field of this SendRequest object. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static final String TO_PNAME
The name of the HTTP request parameter carrying the 'To' value.
Set to to.
protected static final String CC_PNAME
The name of the HTTP request parameter carrying the 'CC' value.
Set to cc.
protected static final String CC_PDFLT
The default initialisation value for the 'CC' value. Set to
null.
protected static final String BCC_PNAME
The name of the HTTP request parameter carrying the 'BCC' value.
Set to bcc.
protected static final String BCC_PDFLT
The default initialisation value for the 'BCC' value. Set to
null.
protected static final String SUBJECT_PNAME
The name of the HTTP request parameter carrying the Subject value.
Set to subj.
protected static final String SUBJECT_PDFLT
The default initialisation value for the Subject value. Set to
"".
protected static final String BODY_PNAME
The name of the HTTP request parameter carrying the body text value.
Set to body.
protected static final String BODY_PDFLT
The default initialisation value for the body text value. Set to
"".
| Constructor Detail |
public SendRequest(HttpServletRequest request)
throws ParameterFormatException
Create a new SendRequest object. The constructor attempts
to instantiate all of the instance variables from the HTTP request parameters.
NOTE 1: If an exception is thrown, some of the instance variables may not
have been assigned to any value, and will therefore carry their default Java value,
which may be null.
NOTE 2: Only the first parameter name / value pair for each parameter name is used. Any subsequent duplicates are ignored.
NOTE 3: Any parameter name / value pairs whose names do not match any of the instance variables are also ignored.
request - a com.opmath.util.http.HttpServletRequest
carrying the request.ParameterFormatException - if a parameter value
could not be parsed.| Method Detail |
public String getTo()
Returns the 'To' field of this SendRequest object.
String carrying the 'To' field value.public String getCC()
Returns the 'CC' field of this SendRequest object.
String carrying the 'CC' field value.public String getBCC()
Returns the 'BCC' field of this SendRequest object.
String carrying the 'BCC' field value.public String getSubject()
Returns the Subject field of this SendRequest object.
String carrying the Subject field value.public String getBody()
Returns the message body of this SendRequest object.
String carrying the message body value.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||