public class CloseFrame extends TyrusFrame
TyrusFrame.FrameType
Frame.Builder
Constructor and Description |
---|
CloseFrame(CloseReason closeReason)
Constructor.
|
CloseFrame(Frame frame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CloseReason |
getCloseReason()
Get close reason.
|
void |
respond(TyrusWebSocket socket)
Execution part of frame processing.
|
getFrameType, wrap
builder, builder, getMaskingKey, getOpcode, getPayloadData, getPayloadLength, isControlFrame, isFin, isMask, isRsv1, isRsv2, isRsv3, toString
public CloseFrame(Frame frame)
frame
- original (close) frame.public CloseFrame(CloseReason closeReason)
closeReason
- close reason used to construct close frame.public CloseReason getCloseReason()
public void respond(TyrusWebSocket socket)
TyrusFrame
respond
in class TyrusFrame
socket
- socket on which the appropriate action will be performed.Copyright © 2012–2020 Oracle Corporation. All rights reserved.