WebSocketHttpExchange
, java.io.Closeable
, java.lang.AutoCloseable
public class BlockingWebSocketHttpServerExchange extends AsyncWebSocketHttpServerExchange
Constructor | Description |
---|---|
BlockingWebSocketHttpServerExchange(HttpServerExchange exchange,
java.util.Set<WebSocketChannel> peerConnections) |
Modifier and Type | Method | Description |
---|---|---|
org.xnio.IoFuture<byte[]> |
readRequestData() |
Gets the body of the request.
|
org.xnio.IoFuture<java.lang.Void> |
sendData(java.nio.ByteBuffer data) |
Send some data
|
close, endExchange, getAttachment, getBufferPool, getOptions, getPeerConnections, getQueryString, getRequestHeader, getRequestHeaders, getRequestParameters, getRequestScheme, getRequestURI, getResponseHeader, getResponseHeaders, getSession, getUserPrincipal, isUserInRole, putAttachment, setResponseHeader, setResponseHeaders, upgradeChannel
public BlockingWebSocketHttpServerExchange(HttpServerExchange exchange, java.util.Set<WebSocketChannel> peerConnections)
public org.xnio.IoFuture<java.lang.Void> sendData(java.nio.ByteBuffer data)
WebSocketHttpExchange
sendData
in interface WebSocketHttpExchange
sendData
in class AsyncWebSocketHttpServerExchange
data
- The datapublic org.xnio.IoFuture<byte[]> readRequestData()
WebSocketHttpExchange
readRequestData
in interface WebSocketHttpExchange
readRequestData
in class AsyncWebSocketHttpServerExchange
Copyright © 2018. All rights reserved.