public class HmtpRequest extends AbstractProtocolConnection
| Modifier and Type | Field and Description |
|---|---|
static int |
HMUX_HMTP_OK |
static int |
HMUX_SWITCH_TO_HMTP |
static int |
HMUX_TO_UNIDIR_HMTP |
| Constructor and Description |
|---|
HmtpRequest(SocketLink conn,
BamSystem bamService) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dbgId() |
protected java.lang.String |
getRequestId() |
boolean |
handleRequest()
Handles a new connection.
|
boolean |
isWaitForRead()
Return true if the connection should wait for a read before
handling the request.
|
void |
onCloseConnection()
Close when the socket closes.
|
void |
onStartConnection()
Called when the connection starts, i.e.
|
java.lang.String |
toString() |
getProtocolRequestURL, handleResume, init, onAttachThread, onDetachThreadpublic static final int HMUX_TO_UNIDIR_HMTP
public static final int HMUX_SWITCH_TO_HMTP
public static final int HMUX_HMTP_OK
public HmtpRequest(SocketLink conn, BamSystem bamService)
public boolean isWaitForRead()
ProtocolConnectionpublic void onStartConnection()
ProtocolConnectiononStartConnection in interface ProtocolConnectiononStartConnection in class AbstractProtocolConnectionpublic boolean handleRequest()
throws java.io.IOException
AbstractProtocolConnectionhandleRequest in interface ProtocolConnectionhandleRequest in class AbstractProtocolConnectionjava.io.IOExceptionpublic void onCloseConnection()
onCloseConnection in interface ProtocolConnectiononCloseConnection in class AbstractProtocolConnectionprotected java.lang.String getRequestId()
public final java.lang.String dbgId()
public java.lang.String toString()
toString in class java.lang.Object