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, onDetachThread
public 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()
ProtocolConnection
public void onStartConnection()
ProtocolConnection
onStartConnection
in interface ProtocolConnection
onStartConnection
in class AbstractProtocolConnection
public boolean handleRequest() throws java.io.IOException
AbstractProtocolConnection
handleRequest
in interface ProtocolConnection
handleRequest
in class AbstractProtocolConnection
java.io.IOException
public void onCloseConnection()
onCloseConnection
in interface ProtocolConnection
onCloseConnection
in class AbstractProtocolConnection
protected java.lang.String getRequestId()
public final java.lang.String dbgId()
public java.lang.String toString()
toString
in class java.lang.Object