Package org.apache.http.impl.nio.reactor
Class ChannelEntry
java.lang.Object
org.apache.http.impl.nio.reactor.ChannelEntry
SocketChannel entry maintained by the I/O reactor. If the channel
represents an outgoing client connection, this entry also contains the
original SessionRequestImpl used to request it.- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionChannelEntry(SocketChannel channel) Creates new ChannelEntry.ChannelEntry(SocketChannel channel, SessionRequestImpl sessionRequest) Creates new ChannelEntry. -
Method Summary
Modifier and TypeMethodDescriptionReturns the original session request attachment, if available.Returns the channel.Returns the original session request, if available.
-
Constructor Details
-
ChannelEntry
Creates new ChannelEntry.- Parameters:
channel- the channelsessionRequest- original session request. Can benullif the channel represents an incoming server-side connection.
-
ChannelEntry
Creates new ChannelEntry.- Parameters:
channel- the channel.
-
-
Method Details
-
getSessionRequest
Returns the original session request, if available. If the channel entry represents an incoming server-side connection, returnsnull.- Returns:
- the original session request, if client-side channel,
nullotherwise.
-
getAttachment
Returns the original session request attachment, if available.- Returns:
- the original session request attachment, if available,
nullotherwise.
-
getChannel
Returns the channel.- Returns:
- the channel.
-