1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jboss.netty.handler.codec.spdy;
17
18 import org.jboss.netty.util.internal.StringUtil;
19
20
21
22
23 public class DefaultSpdySynReplyFrame extends DefaultSpdyHeadersFrame
24 implements SpdySynReplyFrame {
25
26
27
28
29
30
31 public DefaultSpdySynReplyFrame(int streamId) {
32 super(streamId);
33 }
34
35 @Override
36 public String toString() {
37 StringBuilder buf = new StringBuilder();
38 buf.append(getClass().getSimpleName());
39 buf.append("(last: ");
40 buf.append(isLast());
41 buf.append(')');
42 buf.append(StringUtil.NEWLINE);
43 buf.append("--> Stream-ID = ");
44 buf.append(getStreamId());
45 buf.append(StringUtil.NEWLINE);
46 buf.append("--> Headers:");
47 buf.append(StringUtil.NEWLINE);
48 appendHeaders(buf);
49
50
51 buf.setLength(buf.length() - StringUtil.NEWLINE.length());
52 return buf.toString();
53 }
54 }