be.lassi.lanbox.commands
Class UnknownCommand
java.lang.Object
be.lassi.lanbox.commands.Command
be.lassi.lanbox.commands.LanboxCommand
be.lassi.lanbox.commands.UnknownCommand
public class UnknownCommand
- extends LanboxCommand
Unknown lanbox command. The CommandFactory creates an
instance of this class if it cannot figure out which lanbox command
is in the request buffer.
|
Constructor Summary |
UnknownCommand(byte[] request)
Constructs command from request buffer. |
|
Method Summary |
void |
appendCommand(java.lang.StringBuilder b)
Appends a textual description of the command. |
void |
appendResponse(java.lang.StringBuilder b)
Appends a textual description of the command reponse. |
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
| Methods inherited from class be.lassi.lanbox.commands.LanboxCommand |
get, getBoolean, getId, getInt, getInt4, getRequest, getRequestString, getResponse, processResponse, set, set2, set2, set4 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UnknownCommand
public UnknownCommand(byte[] request)
- Constructs command from request buffer.
- Parameters:
request - the lanbox request buffer
appendCommand
public void appendCommand(java.lang.StringBuilder b)
- Appends a textual description of the command.
- Overrides:
appendCommand in class Command
- Parameters:
b - the string builder to which to append
appendResponse
public void appendResponse(java.lang.StringBuilder b)
- Appends a textual description of the command reponse.
- Overrides:
appendResponse in class Command
- Parameters:
b - the string builder to which to append
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals in class LanboxCommand
hashCode
public int hashCode()
-
- Overrides:
hashCode in class Command