public interface ProtocolTransport
ProtocolTransport
. So its not shared between connections.Modifier and Type | Method and Description |
---|---|
String |
getId()
Return the unique id.
|
InetSocketAddress |
getLocalAddress()
Return the
InetSocketAddress of the local bound address |
int |
getPushedLineHandlerCount()
Return the count of pushed
LineHandler 's |
InetSocketAddress |
getRemoteAddress()
Return the
InetSocketAddress of the remote peer |
boolean |
isReadable()
Return
true if the channel is readable |
boolean |
isStartTLSSupported()
|
boolean |
isTLSStarted()
Return
true if TLS encryption is active |
void |
popLineHandler()
Pop a
LineHandler of the stack |
void |
pushLineHandler(LineHandler<? extends ProtocolSession> overrideCommandHandler,
ProtocolSession session)
Push a
LineHandler in. |
void |
setReadable(boolean readable)
Set the
ProtocolTransport readable or not. |
void |
writeResponse(Response response,
ProtocolSession session)
Write the
Response to the ProtocolTransport which will forward it to the connected
peer |
InetSocketAddress getRemoteAddress()
InetSocketAddress
of the remote peerInetSocketAddress getLocalAddress()
InetSocketAddress
of the local bound addressString getId()
boolean isTLSStarted()
true
if TLS
encryption is activeboolean isStartTLSSupported()
void writeResponse(Response response, ProtocolSession session)
Response
to the ProtocolTransport
which will forward it to the connected
peerresponse
- session
- void popLineHandler()
LineHandler
of the stackvoid pushLineHandler(LineHandler<? extends ProtocolSession> overrideCommandHandler, ProtocolSession session)
LineHandler
in.overrideCommandHandler
- session
- int getPushedLineHandlerCount()
LineHandler
'svoid setReadable(boolean readable)
ProtocolTransport
readable or not. If its not readable then no new lines should get processedreadable
- boolean isReadable()
true
if the channel is readableCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.