|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.test.smtp.SmtpRequest
Contains an SMTP client request.
Field Summary | |
private SmtpActionType |
action
SMTP action received from client. |
private java.lang.String |
params
Additional information passed from the client with the SMTP action. |
private SmtpState |
state
Current state of the SMTP state table. |
Constructor Summary | |
SmtpRequest(SmtpActionType actionType,
java.lang.String params,
SmtpState state)
Create a new SMTP client request. |
Method Summary | |
static SmtpRequest |
createRequest(java.lang.String s,
SmtpState state)
Create an SMTP request object given a line of the input stream from the client and the current internal state. |
SmtpResponse |
execute()
Execute the SMTP request returning a response. |
java.lang.String |
getParams()
Get the parameters of this request (remainder of command line once the command is removed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private SmtpActionType action
private SmtpState state
private java.lang.String params
Constructor Detail |
public SmtpRequest(SmtpActionType actionType, java.lang.String params, SmtpState state)
actionType
- type of action/commandparams
- remainder of command line once command is removedstate
- current SMTP server stateMethod Detail |
public SmtpResponse execute()
public static SmtpRequest createRequest(java.lang.String s, SmtpState state)
s
- line of inputstate
- current state
public java.lang.String getParams()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |