public class BlockingWebSocketHttpServerExchange extends AsyncWebSocketHttpServerExchange
Constructor and Description |
---|
BlockingWebSocketHttpServerExchange(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections) |
Modifier and Type | Method and Description |
---|---|
org.xnio.IoFuture<byte[]> | readRequestData() Gets the body of the request. |
org.xnio.IoFuture<Void> | sendData(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, Set<WebSocketChannel> peerConnections)
public org.xnio.IoFuture<Void> sendData(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 © 2017 JBoss by Red Hat. All rights reserved.