org.jboss.netty.handler.codec.http2
Class HttpServerCodec
java.lang.Object
org.jboss.netty.handler.codec.http2.HttpServerCodec
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
public class HttpServerCodec
- extends Object
- implements org.jboss.netty.channel.ChannelUpstreamHandler, org.jboss.netty.channel.ChannelDownstreamHandler
A combination of HttpRequestDecoder
and HttpResponseEncoder
which enables easier server side HTTP implementation.
- Version:
- $Rev: 619 $, $Date: 2010-11-11 20:30:06 +0100 (jeu., 11 nov. 2010) $
- Author:
- The Netty Project, Trustin Lee
- See Also:
HttpClientCodec
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
Constructor Summary |
HttpServerCodec()
Creates a new instance with the default decoder options
(maxInitialLineLength (4096 }, maxHeaderSize (8192) , and
maxChunkSize (8192) ). |
HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize)
Creates a new instance with the specified decoder options. |
Method Summary |
void |
handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e)
|
void |
handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServerCodec
public HttpServerCodec()
- Creates a new instance with the default decoder options
(
maxInitialLineLength (4096
}, maxHeaderSize (8192)
, and
maxChunkSize (8192)
).
HttpServerCodec
public HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize)
- Creates a new instance with the specified decoder options.
handleUpstream
public void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e)
throws Exception
- Specified by:
handleUpstream
in interface org.jboss.netty.channel.ChannelUpstreamHandler
- Throws:
Exception
handleDownstream
public void handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e)
throws Exception
- Specified by:
handleDownstream
in interface org.jboss.netty.channel.ChannelDownstreamHandler
- Throws:
Exception
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.