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.util.internal.StringUtil;
19
20
21
22
23 public class DefaultSpdySynReplyFrame extends DefaultSpdyHeadersFrame implements SpdySynReplyFrame {
24
25
26
27
28
29
30 public DefaultSpdySynReplyFrame(int streamId) {
31 super(streamId);
32 }
33
34
35
36
37
38
39
40 public DefaultSpdySynReplyFrame(int streamId, boolean validateHeaders) {
41 super(streamId, validateHeaders);
42 }
43
44 @Override
45 public SpdySynReplyFrame setStreamId(int streamId) {
46 super.setStreamId(streamId);
47 return this;
48 }
49
50 @Override
51 public SpdySynReplyFrame setLast(boolean last) {
52 super.setLast(last);
53 return this;
54 }
55
56 @Override
57 public SpdySynReplyFrame setInvalid() {
58 super.setInvalid();
59 return this;
60 }
61
62 @Override
63 public String toString() {
64 StringBuilder buf = new StringBuilder()
65 .append(StringUtil.simpleClassName(this))
66 .append("(last: ")
67 .append(isLast())
68 .append(')')
69 .append(StringUtil.NEWLINE)
70 .append("--> Stream-ID = ")
71 .append(streamId())
72 .append(StringUtil.NEWLINE)
73 .append("--> Headers:")
74 .append(StringUtil.NEWLINE);
75 appendHeaders(buf);
76
77
78 buf.setLength(buf.length() - StringUtil.NEWLINE.length());
79 return buf.toString();
80 }
81 }