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 StringBuilderBuffer that stores the response contentprivate booleanprivate HttpRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when an exception was raised by an I/O thread or aChannelHandler.voidInvoked when a message object (e.g:ChannelBuffer) was received from a remote peer.private static voidprivate voidMethods 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:SimpleChannelUpstreamHandlerInvoked when a message object (e.g:ChannelBuffer) was received from a remote peer.- Overrides:
messageReceivedin classSimpleChannelUpstreamHandler
-
writeResponse
-
send100Continue
-
exceptionCaught
Description copied from class:SimpleChannelUpstreamHandlerInvoked when an exception was raised by an I/O thread or aChannelHandler.- Overrides:
exceptionCaughtin classSimpleChannelUpstreamHandler
-