1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.handler.codec.spdy;
17
18 import io.netty.channel.CombinedChannelDuplexHandler;
19 import io.netty.handler.codec.http.FullHttpMessage;
20 import io.netty.handler.codec.http.HttpHeadersFactory;
21
22 import java.util.HashMap;
23
24
25
26
27 public final class SpdyHttpCodec extends CombinedChannelDuplexHandler<SpdyHttpDecoder, SpdyHttpEncoder> {
28
29
30
31 public SpdyHttpCodec(SpdyVersion version, int maxContentLength) {
32 super(new SpdyHttpDecoder(version, maxContentLength), new SpdyHttpEncoder(version));
33 }
34
35
36
37
38 @Deprecated
39 public SpdyHttpCodec(SpdyVersion version, int maxContentLength, boolean validateHttpHeaders) {
40 super(new SpdyHttpDecoder(version, maxContentLength, validateHttpHeaders), new SpdyHttpEncoder(version));
41 }
42
43
44
45
46 public SpdyHttpCodec(SpdyVersion version, int maxContentLength,
47 HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory) {
48 super(new SpdyHttpDecoder(version, maxContentLength, new HashMap<Integer, FullHttpMessage>(),
49 headersFactory, trailersFactory), new SpdyHttpEncoder(version));
50 }
51 }