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, setSubdirclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNextStatepublic AbstractCommand(java.net.Socket socket)
throws java.io.IOException
java.io.IOExceptionprotected abstract State getInitialState()
public final void handleState()
CommandhandleState in interface Commandprotected void sendError(java.lang.Exception e)
protected void setCurrentState(State state)
protected void setIsDone(boolean done)
public boolean isDone()
Command