Package io.undertow.websockets.spi
Class BlockingWebSocketHttpServerExchange
- java.lang.Object
-
- io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange
-
- io.undertow.websockets.spi.BlockingWebSocketHttpServerExchange
-
- All Implemented Interfaces:
WebSocketHttpExchange,java.io.Closeable,java.lang.AutoCloseable
public class BlockingWebSocketHttpServerExchange extends AsyncWebSocketHttpServerExchange
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description BlockingWebSocketHttpServerExchange(HttpServerExchange exchange, java.util.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<java.lang.Void>sendData(java.nio.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, java.util.Set<WebSocketChannel> peerConnections)
-
-
Method Detail
-
sendData
public org.xnio.IoFuture<java.lang.Void> sendData(java.nio.ByteBuffer data)
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
-
-