1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.eclipse.jetty.websocket.common.frames;
20
21 import java.nio.ByteBuffer;
22
23 import org.eclipse.jetty.util.StringUtil;
24 import org.eclipse.jetty.websocket.common.OpCode;
25
26 public class ContinuationFrame extends DataFrame
27 {
28 public ContinuationFrame()
29 {
30 super(OpCode.CONTINUATION);
31 }
32
33 public ContinuationFrame setPayload(ByteBuffer buf)
34 {
35 super.setPayload(buf);
36 return this;
37 }
38
39 public ContinuationFrame setPayload(byte buf[])
40 {
41 return this.setPayload(ByteBuffer.wrap(buf));
42 }
43
44 public ContinuationFrame setPayload(String message)
45 {
46 return this.setPayload(StringUtil.getUtf8Bytes(message));
47 }
48
49 @Override
50 public Type getType()
51 {
52 return Type.CONTINUATION;
53 }
54 }