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
public class BlockingWebSocketHttpServerExchange extends AsyncWebSocketHttpServerExchange
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description BlockingWebSocketHttpServerExchange(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xnio.IoFuture<byte[]>
readRequestData()
Gets the body of the request.org.xnio.IoFuture<Void>
sendData(ByteBuffer data)
Send some data-
Methods 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 Detail
-
BlockingWebSocketHttpServerExchange
public BlockingWebSocketHttpServerExchange(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections)
-
-
Method Detail
-
sendData
public org.xnio.IoFuture<Void> sendData(ByteBuffer data)
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
-
-