com.xpn.xwiki.test.smtp
Class SmtpActionType

java.lang.Object
  extended by com.xpn.xwiki.test.smtp.SmtpActionType

public class SmtpActionType
extends java.lang.Object

Represents an SMTP action or command.


Field Summary
static SmtpActionType BLANK_LINE
          Header/body separator action.
private static byte BLANK_LINE_BYTE
          Internal representation of the blank line action: separates headers and body text.
static SmtpActionType CONNECT
          CONNECT action.
private static byte CONNECT_BYTE
          Internal representation of the CONNECT action.
static SmtpActionType DATA
          DATA action.
private static byte DATA_BYTE
          Internal representation of the DATA action.
static SmtpActionType DATA_END
          "." action.
private static byte DATA_END_BYTE
          Internal representation of the DATA END (.) action.
static SmtpActionType EHLO
          EHLO action.
private static byte EHLO_BYTE
          Internal representation of the EHLO action.
static SmtpActionType EXPN
          Stateless EXPN action.
private static byte EXPN_BYTE
          Internal representation of the stateless EXPN action.
static SmtpActionType HELP
          Stateless HELP action.
private static byte HELP_BYTE
          Internal representation of the stateless HELP action.
static SmtpActionType MAIL
          MAIL action.
private static byte MAIL_BYTE
          Internal representation of the MAIL FROM action.
static SmtpActionType NOOP
          Stateless NOOP action.
private static byte NOOP_BYTE
          Internal representation of the stateless NOOP action.
static SmtpActionType QUIT
          QUIT action.
private static byte QUIT_BYTE
          Internal representation of the QUIT action.
static SmtpActionType RCPT
          RCPT action.
private static byte RCPT_BYTE
          Internal representation of the RCPT action.
static SmtpActionType RSET
          Stateless RSET action.
private static byte RSET_BYTE
          Internal representation of the stateless RSET action.
private static byte UNREC_BYTE
          Internal representation of an unrecognized action: body text gets this action type.
static SmtpActionType UNRECOG
          Body text action.
private  byte value
          Internal value for the action type.
static SmtpActionType VRFY
          Stateless VRFY action.
private static byte VRFY_BYTE
          Internal representation of the stateless VRFY action.
 
Constructor Summary
private SmtpActionType(byte value)
          Create a new SMTP action type.
 
Method Summary
 boolean isStateless()
          Indicates whether the action is stateless or not.
 java.lang.String toString()
          String representation of this SMTP action type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private byte value
Internal value for the action type.


CONNECT_BYTE

private static final byte CONNECT_BYTE
Internal representation of the CONNECT action.

See Also:
Constant Field Values

EHLO_BYTE

private static final byte EHLO_BYTE
Internal representation of the EHLO action.

See Also:
Constant Field Values

MAIL_BYTE

private static final byte MAIL_BYTE
Internal representation of the MAIL FROM action.

See Also:
Constant Field Values

RCPT_BYTE

private static final byte RCPT_BYTE
Internal representation of the RCPT action.

See Also:
Constant Field Values

DATA_BYTE

private static final byte DATA_BYTE
Internal representation of the DATA action.

See Also:
Constant Field Values

DATA_END_BYTE

private static final byte DATA_END_BYTE
Internal representation of the DATA END (.) action.

See Also:
Constant Field Values

QUIT_BYTE

private static final byte QUIT_BYTE
Internal representation of the QUIT action.

See Also:
Constant Field Values

UNREC_BYTE

private static final byte UNREC_BYTE
Internal representation of an unrecognized action: body text gets this action type.

See Also:
Constant Field Values

BLANK_LINE_BYTE

private static final byte BLANK_LINE_BYTE
Internal representation of the blank line action: separates headers and body text.

See Also:
Constant Field Values

RSET_BYTE

private static final byte RSET_BYTE
Internal representation of the stateless RSET action.

See Also:
Constant Field Values

VRFY_BYTE

private static final byte VRFY_BYTE
Internal representation of the stateless VRFY action.

See Also:
Constant Field Values

EXPN_BYTE

private static final byte EXPN_BYTE
Internal representation of the stateless EXPN action.

See Also:
Constant Field Values

HELP_BYTE

private static final byte HELP_BYTE
Internal representation of the stateless HELP action.

See Also:
Constant Field Values

NOOP_BYTE

private static final byte NOOP_BYTE
Internal representation of the stateless NOOP action.

See Also:
Constant Field Values

CONNECT

public static final SmtpActionType CONNECT
CONNECT action.


EHLO

public static final SmtpActionType EHLO
EHLO action.


MAIL

public static final SmtpActionType MAIL
MAIL action.


RCPT

public static final SmtpActionType RCPT
RCPT action.


DATA

public static final SmtpActionType DATA
DATA action.


DATA_END

public static final SmtpActionType DATA_END
"." action.


UNRECOG

public static final SmtpActionType UNRECOG
Body text action.


QUIT

public static final SmtpActionType QUIT
QUIT action.


BLANK_LINE

public static final SmtpActionType BLANK_LINE
Header/body separator action.


RSET

public static final SmtpActionType RSET
Stateless RSET action.


VRFY

public static final SmtpActionType VRFY
Stateless VRFY action.


EXPN

public static final SmtpActionType EXPN
Stateless EXPN action.


HELP

public static final SmtpActionType HELP
Stateless HELP action.


NOOP

public static final SmtpActionType NOOP
Stateless NOOP action.

Constructor Detail

SmtpActionType

private SmtpActionType(byte value)
Create a new SMTP action type. Private to ensure no invalid values.

Parameters:
value - one of the _BYTE values
Method Detail

isStateless

public boolean isStateless()
Indicates whether the action is stateless or not.

Returns:
true iff the action is stateless

toString

public java.lang.String toString()
String representation of this SMTP action type.

Overrides:
toString in class java.lang.Object
Returns:
a String


Copyright 2003 Ludovic Dubost