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:WebSocketHttpExchangeSend some data- Specified by:
sendDatain interfaceWebSocketHttpExchange- Overrides:
sendDatain classAsyncWebSocketHttpServerExchange- Parameters:
data- The data
-
readRequestData
public org.xnio.IoFuture<byte[]> readRequestData()Description copied from interface:WebSocketHttpExchangeGets the body of the request.- Specified by:
readRequestDatain interfaceWebSocketHttpExchange- Overrides:
readRequestDatain classAsyncWebSocketHttpServerExchange
-