Package jenkins.websocket
Class WebSocketSession
- java.lang.Object
-
- jenkins.websocket.WebSocketSession
-
@Restricted(org.kohsuke.accmod.restrictions.Beta.class) public abstract class WebSocketSession extends Object
One WebSocket connection.- Since:
- 2.216
- See Also:
WebSockets
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWebSocketSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbinary(byte[] payload, int offset, int len)protected voidclose()protected voidclosed(int statusCode, String reason)protected voiderror(Throwable cause)protected voidopened()protected Future<Void>sendBinary(ByteBuffer data)protected voidsendBinary(ByteBuffer partialByte, boolean isLast)protected Future<Void>sendText(String text)protected voidtext(String message)
-
-
-
Method Detail
-
opened
protected void opened()
-
closed
protected void closed(int statusCode, String reason)
-
error
protected void error(Throwable cause)
-
binary
protected void binary(byte[] payload, int offset, int len) throws IOException- Throws:
IOException
-
text
protected void text(String message) throws IOException
- Throws:
IOException
-
sendBinary
protected final Future<Void> sendBinary(ByteBuffer data) throws IOException
- Throws:
IOException
-
sendBinary
protected final void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException
- Throws:
IOException
-
sendText
protected final Future<Void> sendText(String text) throws IOException
- Throws:
IOException
-
close
protected final void close() throws IOException- Throws:
IOException
-
-