public abstract class Command
extends java.io.ByteArrayOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
completed |
| Constructor and Description |
|---|
Command() |
Command(byte[] data) |
Command(java.lang.String data) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String data) |
void |
complete() |
java.lang.String |
footer() |
java.lang.String |
getContent() |
java.lang.String |
getId() |
java.lang.Long |
getTimeout() |
java.lang.String |
header() |
boolean |
isAsync() |
boolean |
isContentEmpty() |
void |
send(java.nio.channels.ByteChannel byteChannel) |
void |
send(java.nio.channels.ByteChannel byteChannel,
boolean encapsulate) |
void |
send(java.io.OutputStream stream) |
void |
setTimeout(java.lang.Long timeout) |
public Command()
public Command(java.lang.String data)
public Command(byte[] data)
public java.lang.String header()
public java.lang.String footer()
public java.lang.String getContent()
public boolean isContentEmpty()
public void add(java.lang.String data)
public void send(java.nio.channels.ByteChannel byteChannel)
throws DisconnectionException,
java.io.IOException
DisconnectionExceptionjava.io.IOExceptionpublic void send(java.nio.channels.ByteChannel byteChannel,
boolean encapsulate)
throws DisconnectionException,
java.io.IOException
DisconnectionExceptionjava.io.IOExceptionpublic void send(java.io.OutputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getId()
public boolean isAsync()
public java.lang.Long getTimeout()
public void setTimeout(java.lang.Long timeout)
public void complete()