public abstract class AbstractCommand extends Context implements Command
Modifier and Type | Field and Description |
---|---|
protected boolean |
done |
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
AbstractCommand(java.net.Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the command and all its assigned resources.
|
protected abstract State |
getInitialState() |
void |
handleState()
Handles the current state of the Command.
|
boolean |
isDone()
Tells the caller if the Command is done, meaning if all states are
handled.
|
protected void |
sendError(java.lang.Exception e) |
protected void |
setCurrentState(State state) |
protected void |
setIsDone(boolean done) |
getAeId, getBufferSize, getFilename, getIeId, getORB, getReturnValue, getSession, getSessionId, getSubidr, isDataCompression, setAeId, setDataCompression, setFilename, setIeId, setORB, setReturnValue, setSession, setSessionId, setSubdir
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setNextState
public AbstractCommand(java.net.Socket socket) throws java.io.IOException
java.io.IOException
protected abstract State getInitialState()
public final void handleState()
Command
handleState
in interface Command
protected void sendError(java.lang.Exception e)
protected void setCurrentState(State state)
protected void setIsDone(boolean done)
public boolean isDone()
Command