| Modifier and Type | Field and Description |
|---|---|
| private boolean | fin
Indicates that this is the final fragment in a message. |
| private Opcode | optcode
Defines the interpretation of the "Payload data". |
| private boolean | rsv1
Indicates that the rsv1 bit is set or not |
| private boolean | rsv2
Indicates that the rsv2 bit is set or not |
| private boolean | rsv3
Indicates that the rsv3 bit is set or not |
| private boolean | transferemasked
Defines whether the "Payload data" is masked. |
| private ByteBuffer | unmaskedpayload
The unmasked "Payload data" which was sent in this frame |
| Access | Constructor and Description |
|---|---|
| public | FramedataImpl1(Opcode
the opcode to use op)Constructor for a FramedataImpl without any attributes set apart from the opcode |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(Framedata nextframe)
Implements org. Appends an additional frame to the current frame This methods does not override the opcode, but does override the fin |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static FramedataImpl1 | |
| public Opcode | getOpcode()
Implements org. Defines the interpretation of the "Payload data". |
| public ByteBuffer | getPayloadData()
Implements org. The "Payload data" which was sent in this frame |
| public boolean | getTransfereMasked()
Implements org. Defines whether the "Payload data" is masked. |
| public int | |
| public boolean | isFin()
Implements org. Indicates that this is the final fragment in a message. |
| public boolean | isRSV1()
Implements org. Indicates that this frame has the rsv1 bit set. |
| public boolean | isRSV2()
Implements org. Indicates that this frame has the rsv2 bit set. |
| public boolean | isRSV3()
Implements org. Indicates that this frame has the rsv3 bit set. |
| public abstract void | |
| public void | |
| public void | setPayload(ByteBuffer
the payload which is to set payload)Set the payload of this frame to the provided payload |
| public void | |
| public void | |
| public void | |
| public void | setTransferemasked(boolean
true if transferemasked has to be set transferemasked)Set the tranferemask of this frame to the provided boolean |
| public String |
| fin | back to summary |
|---|---|
| private boolean fin Indicates that this is the final fragment in a message. | |
| optcode | back to summary |
|---|---|
| private Opcode optcode Defines the interpretation of the "Payload data". | |
| rsv1 | back to summary |
|---|---|
| private boolean rsv1 Indicates that the rsv1 bit is set or not | |
| rsv2 | back to summary |
|---|---|
| private boolean rsv2 Indicates that the rsv2 bit is set or not | |
| rsv3 | back to summary |
|---|---|
| private boolean rsv3 Indicates that the rsv3 bit is set or not | |
| transferemasked | back to summary |
|---|---|
| private boolean transferemasked Defines whether the "Payload data" is masked. | |
| unmaskedpayload | back to summary |
|---|---|
| private ByteBuffer unmaskedpayload The unmasked "Payload data" which was sent in this frame | |
| FramedataImpl1 | back to summary |
|---|---|
| public FramedataImpl1(Opcode op) Constructor for a FramedataImpl without any attributes set apart from the opcode
| |
| append | back to summary |
|---|---|
| public void append(Framedata nextframe) Implements org. Doc from org. Appends an additional frame to the current frame This methods does not override the opcode, but does override the fin
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| get | back to summary |
|---|---|
| public static FramedataImpl1 get(Opcode opcode) Get a frame with a specific opcode
| |
| getOpcode | back to summary |
|---|---|
| public Opcode getOpcode() Implements org. Doc from org. Defines the interpretation of the "Payload data".
| |
| getPayloadData | back to summary |
|---|---|
| public ByteBuffer getPayloadData() Implements org. Doc from org. The "Payload data" which was sent in this frame
| |
| getTransfereMasked | back to summary |
|---|---|
| public boolean getTransfereMasked() Implements org. Doc from org. Defines whether the "Payload data" is masked.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isFin | back to summary |
|---|---|
| public boolean isFin() Implements org. Doc from org. Indicates that this is the final fragment in a message. The first fragment MAY also be the final fragment.
| |
| isRSV1 | back to summary |
|---|---|
| public boolean isRSV1() Implements org. Doc from org. Indicates that this frame has the rsv1 bit set.
| |
| isRSV2 | back to summary |
|---|---|
| public boolean isRSV2() Implements org. Doc from org. Indicates that this frame has the rsv2 bit set.
| |
| isRSV3 | back to summary |
|---|---|
| public boolean isRSV3() Implements org. Doc from org. Indicates that this frame has the rsv3 bit set.
| |
| isValid | back to summary |
|---|---|
| public abstract void isValid() throws InvalidDataException Check if the frame is valid due to specification
| |
| setFin | back to summary |
|---|---|
| public void setFin(boolean fin) Set the fin of this frame to the provided boolean
| |
| setPayload | back to summary |
|---|---|
| public void setPayload(ByteBuffer payload) Set the payload of this frame to the provided payload
| |
| setRSV1 | back to summary |
|---|---|
| public void setRSV1(boolean rsv1) Set the rsv1 of this frame to the provided boolean
| |
| setRSV2 | back to summary |
|---|---|
| public void setRSV2(boolean rsv2) Set the rsv2 of this frame to the provided boolean
| |
| setRSV3 | back to summary |
|---|---|
| public void setRSV3(boolean rsv3) Set the rsv3 of this frame to the provided boolean
| |
| setTransferemasked | back to summary |
|---|---|
| public void setTransferemasked(boolean transferemasked) Set the tranferemask of this frame to the provided boolean
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |