|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.server.ServerItem
public abstract class ServerItem
Abstraction of an action the server can handle.
| Field Summary | |
|---|---|
protected java.lang.String |
commandName
The name of the command. |
protected Server |
server
Keeps a reference to the Server object to which this item belongs. |
| Constructor Summary | |
|---|---|
ServerItem(java.lang.String commandName,
Server server)
|
|
| Method Summary | |
|---|---|
abstract void |
doAction(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String clientIP)
Handle the server's action. |
java.lang.String |
getName()
Returns the name of the command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String commandName
The name of the command.
protected Server server
Keeps a reference to the Server object to which this item belongs.
| Constructor Detail |
|---|
public ServerItem(java.lang.String commandName,
Server server)
commandName - the command name receivedserver - the server received| Method Detail |
|---|
public java.lang.String getName()
Returns the name of the command.
public abstract void doAction(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String clientIP)
throws java.lang.Exception
Handle the server's action.
in - The input streamout - The output streamclientIP - So the transaction can be logged with client IP address.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||