Class HttpSnoopServerHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.example.http.snoop.HttpSnoopServerHandler
- All Implemented Interfaces:
ChannelHandler
,ChannelUpstreamHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringBuilder
Buffer that stores the response contentprivate boolean
private HttpRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when an exception was raised by an I/O thread or aChannelHandler
.void
Invoked when a message object (e.g:ChannelBuffer
) was received from a remote peer.private static void
private void
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
-
Field Details
-
request
-
readingChunks
private boolean readingChunks -
buf
Buffer that stores the response content
-
-
Constructor Details
-
HttpSnoopServerHandler
public HttpSnoopServerHandler()
-
-
Method Details
-
messageReceived
Description copied from class:SimpleChannelUpstreamHandler
Invoked when a message object (e.g:ChannelBuffer
) was received from a remote peer.- Overrides:
messageReceived
in classSimpleChannelUpstreamHandler
-
writeResponse
-
send100Continue
-
exceptionCaught
Description copied from class:SimpleChannelUpstreamHandler
Invoked when an exception was raised by an I/O thread or aChannelHandler
.- Overrides:
exceptionCaught
in classSimpleChannelUpstreamHandler
-