public class CloseFrame extends TyrusFrame
TyrusFrame.FrameType
Frame.Builder
Constructor and Description |
---|
CloseFrame(javax.websocket.CloseReason closeReason)
Constructor.
|
CloseFrame(Frame frame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.websocket.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(javax.websocket.CloseReason closeReason)
closeReason
- close reason used to construct close frame.public javax.websocket.CloseReason getCloseReason()
public void respond(TyrusWebSocket socket)
TyrusFrame
respond
in class TyrusFrame
socket
- socket on which the appropriate action will be performed.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.