org.mailster.pop3.commands
Class Pop3CommandState

java.lang.Object
  extended by org.mailster.pop3.commands.Pop3CommandState

public class Pop3CommandState
extends java.lang.Object

---
Mailster (C) 2007-2009 De Oliveira Edouard

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

See  Mailster Web Site
---

Pop3CommandState.java - Class that represents a pair of Pop3Command and state. This is used to maintain state information when dealing with a muli state command.

Version:
$Revision: 1.3 $, $Date: 2008/12/06 13:57:16 $
Author:
Edouard De Oliveira

Field Summary
private  Pop3Command command
          The command for which state is carried.
static int INITIAL_STATE
          Initial state of a multi state command.
private  int nextState
          The next state.
 
Constructor Summary
Pop3CommandState(Pop3Command command)
           
Pop3CommandState(Pop3Command command, int nextState)
           
 
Method Summary
 Pop3Command getCommand()
           
 int getNextState()
           
 boolean isInitialState()
           
 void setNextState(int nextState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_STATE

public static final int INITIAL_STATE
Initial state of a multi state command.

See Also:
Constant Field Values

command

private Pop3Command command
The command for which state is carried.


nextState

private int nextState
The next state.

Constructor Detail

Pop3CommandState

public Pop3CommandState(Pop3Command command)

Pop3CommandState

public Pop3CommandState(Pop3Command command,
                        int nextState)
Method Detail

getCommand

public Pop3Command getCommand()

getNextState

public int getNextState()

setNextState

public void setNextState(int nextState)

isInitialState

public boolean isInitialState()