Searched refs:CloseCode (Results 1 – 4 of 4) sorted by relevance
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/ |
D | WebSocket.java | 3 import fi.iki.elonen.WebSocketFrame.CloseCode; 70 doClose(CloseCode.InvalidFramePayloadData, e.toString(), false); in readWebsocket() 77 …doClose(CloseCode.InternalServerError, "Handler terminated without closing the connection.", false… in readWebsocket() 91 … throw new WebSocketException(CloseCode.ProtocolError, "Continuous frame sequence not completed."); in handleWebsocketFrame() 95 …throw new WebSocketException(CloseCode.ProtocolError, "Non control or continuous frame expected."); in handleWebsocketFrame() 100 CloseCode code = CloseCode.NormalClosure; in handleCloseFrame() 124 …throw new WebSocketException(CloseCode.ProtocolError, "Previous continuous frame sequence not comp… in handleFrameFragment() 132 …throw new WebSocketException(CloseCode.ProtocolError, "Continuous frame sequence was not started."… in handleFrameFragment() 139 …throw new WebSocketException(CloseCode.ProtocolError, "Continuous frame sequence was not started."… in handleFrameFragment() 152 protected void doClose(CloseCode code, String reason, boolean initiatedByRemote) { in doClose() [all …]
|
D | WebSocketException.java | 3 import fi.iki.elonen.WebSocketFrame.CloseCode; 8 private CloseCode code; 12 this(CloseCode.InternalServerError, cause.toString(), cause); in WebSocketException() 15 public WebSocketException(CloseCode code, String reason) { in WebSocketException() 19 public WebSocketException(CloseCode code, String reason, Exception cause) { in WebSocketException() 25 public CloseCode getCode() { in getCode()
|
D | WebSocketFrame.java | 67 … throw new WebSocketException(CloseCode.MessageTooBig, "Max frame length has been exceeded."); in WebSocketFrame() 150 …throw new WebSocketException(CloseCode.ProtocolError, "The reserved bits (" + Integer.toBinaryStri… in read() 153 …throw new WebSocketException(CloseCode.ProtocolError, "Received frame with reserved/unknown opcode… in read() 155 throw new WebSocketException(CloseCode.ProtocolError, "Fragmented control frame."); in read() 186 …throw new WebSocketException(CloseCode.ProtocolError, "Invalid data frame 2byte length. (not using… in readPayloadInfo() 195 …throw new WebSocketException(CloseCode.ProtocolError, "Invalid data frame 4byte length. (not using… in readPayloadInfo() 198 … throw new WebSocketException(CloseCode.MessageTooBig, "Max frame length has been exceeded."); in readPayloadInfo() 205 …throw new WebSocketException(CloseCode.ProtocolError, "Control frame with payload length > 125 byt… in readPayloadInfo() 208 … throw new WebSocketException(CloseCode.ProtocolError, "Received close frame with payload len 1."); in readPayloadInfo() 360 public static enum CloseCode { enum in WebSocketFrame [all …]
|
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/samples/echo/ |
D | DebugWebSocket.java | 39 … protected void onClose(WebSocketFrame.CloseCode code, String reason, boolean initiatedByRemote) { in onClose()
|