Class SpdyHttpCodec
- java.lang.Object
-
- org.jboss.netty.handler.codec.spdy.SpdyHttpCodec
-
- All Implemented Interfaces:
ChannelDownstreamHandler,ChannelHandler,ChannelUpstreamHandler
public class SpdyHttpCodec extends java.lang.Object implements ChannelUpstreamHandler, ChannelDownstreamHandler
A combination ofSpdyHttpDecoderandSpdyHttpEncoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Field Summary
Fields Modifier and Type Field Description private SpdyHttpDecoderdecoderprivate SpdyHttpEncoderencoder
-
Constructor Summary
Constructors Constructor Description SpdyHttpCodec(SpdyVersion version, int maxContentLength)Creates a new instance with the specified decoder options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleDownstream(ChannelHandlerContext ctx, ChannelEvent e)Handles the specified downstream event.voidhandleUpstream(ChannelHandlerContext ctx, ChannelEvent e)Handles the specified upstream event.
-
-
-
Field Detail
-
decoder
private final SpdyHttpDecoder decoder
-
encoder
private final SpdyHttpEncoder encoder
-
-
Constructor Detail
-
SpdyHttpCodec
public SpdyHttpCodec(SpdyVersion version, int maxContentLength)
Creates a new instance with the specified decoder options.
-
-
Method Detail
-
handleUpstream
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws java.lang.Exception
Description copied from interface:ChannelUpstreamHandlerHandles the specified upstream event.- Specified by:
handleUpstreamin interfaceChannelUpstreamHandler- Parameters:
ctx- the context object for this handlere- the upstream event to process or intercept- Throws:
java.lang.Exception
-
handleDownstream
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) throws java.lang.Exception
Description copied from interface:ChannelDownstreamHandlerHandles the specified downstream event.- Specified by:
handleDownstreamin interfaceChannelDownstreamHandler- Parameters:
ctx- the context object for this handlere- the downstream event to process or intercept- Throws:
java.lang.Exception
-
-