Package io.undertow.websockets.spi
Class BlockingWebSocketHttpServerExchange
java.lang.Object
io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange
io.undertow.websockets.spi.BlockingWebSocketHttpServerExchange
- All Implemented Interfaces:
WebSocketHttpExchange
,Closeable
,AutoCloseable
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionBlockingWebSocketHttpServerExchange
(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections) -
Method Summary
Modifier and TypeMethodDescriptionorg.xnio.IoFuture<byte[]>
Gets the body of the request.org.xnio.IoFuture<Void>
sendData
(ByteBuffer data) Send some dataMethods inherited from class io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange
close, endExchange, getAttachment, getBufferPool, getOptions, getPeerConnections, getQueryString, getRequestHeader, getRequestHeaders, getRequestParameters, getRequestScheme, getRequestURI, getResponseHeader, getResponseHeaders, getSession, getUserPrincipal, isUserInRole, putAttachment, setResponseHeader, setResponseHeaders, upgradeChannel
-
Constructor Details
-
BlockingWebSocketHttpServerExchange
public BlockingWebSocketHttpServerExchange(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections)
-
-
Method Details
-
sendData
Description copied from interface:WebSocketHttpExchange
Send some data- Specified by:
sendData
in interfaceWebSocketHttpExchange
- Overrides:
sendData
in classAsyncWebSocketHttpServerExchange
- Parameters:
data
- The data
-
readRequestData
public org.xnio.IoFuture<byte[]> readRequestData()Description copied from interface:WebSocketHttpExchange
Gets the body of the request.- Specified by:
readRequestData
in interfaceWebSocketHttpExchange
- Overrides:
readRequestData
in classAsyncWebSocketHttpServerExchange
-