com.xpn.xwiki.test.smtp
Class SmtpResponse

java.lang.Object
  extended bycom.xpn.xwiki.test.smtp.SmtpResponse

public class SmtpResponse
extends java.lang.Object

SMTP response container.


Field Summary
private  int code
          Response code - see RFC-2821.
private  java.lang.String message
          Response message.
private  SmtpState nextState
          New state of the SMTP server once the request has been executed.
 
Constructor Summary
SmtpResponse(int code, java.lang.String message, SmtpState next)
          Constructor.
 
Method Summary
 int getCode()
          Get the response code.
 java.lang.String getMessage()
          Get the response message.
 SmtpState getNextState()
          Get the next SMTP server state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

private int code
Response code - see RFC-2821.


message

private java.lang.String message
Response message.


nextState

private SmtpState nextState
New state of the SMTP server once the request has been executed.

Constructor Detail

SmtpResponse

public SmtpResponse(int code,
                    java.lang.String message,
                    SmtpState next)
Constructor.

Parameters:
code - response code
message - response message
next - next state of the SMTP server
Method Detail

getCode

public int getCode()
Get the response code.

Returns:
response code

getMessage

public java.lang.String getMessage()
Get the response message.

Returns:
response message

getNextState

public SmtpState getNextState()
Get the next SMTP server state.

Returns:
state


Copyright 2003 Ludovic Dubost