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