Package io.undertow.servlet.websockets
Class ServletWebSocketHttpExchange
java.lang.Object
io.undertow.servlet.websockets.ServletWebSocketHttpExchange
- All Implemented Interfaces:
WebSocketHttpExchange,Closeable,AutoCloseable
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionServletWebSocketHttpExchange(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Set<WebSocketChannel> peerConnections) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()void<T> TgetAttachment(AttachmentKey<T> key) org.xnio.OptionMapgetRequestHeader(String headerName) getResponseHeader(String headerName) booleanisUserInRole(String role) <T> voidputAttachment(AttachmentKey<T> key, T value) org.xnio.IoFuture<byte[]>org.xnio.IoFuture<Void>sendData(ByteBuffer data) voidsetResponseHeader(String headerName, String headerValue) voidsetResponseHeaders(Map<String, List<String>> headers) voidupgradeChannel(HttpUpgradeListener upgradeCallback)
-
Constructor Details
-
ServletWebSocketHttpExchange
public ServletWebSocketHttpExchange(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Set<WebSocketChannel> peerConnections)
-
-
Method Details
-
putAttachment
- Specified by:
putAttachmentin interfaceWebSocketHttpExchange
-
getAttachment
- Specified by:
getAttachmentin interfaceWebSocketHttpExchange
-
getRequestHeader
- Specified by:
getRequestHeaderin interfaceWebSocketHttpExchange
-
getRequestHeaders
- Specified by:
getRequestHeadersin interfaceWebSocketHttpExchange
-
getResponseHeader
- Specified by:
getResponseHeaderin interfaceWebSocketHttpExchange
-
getResponseHeaders
- Specified by:
getResponseHeadersin interfaceWebSocketHttpExchange
-
setResponseHeaders
- Specified by:
setResponseHeadersin interfaceWebSocketHttpExchange
-
setResponseHeader
- Specified by:
setResponseHeaderin interfaceWebSocketHttpExchange
-
upgradeChannel
- Specified by:
upgradeChannelin interfaceWebSocketHttpExchange
-
sendData
- Specified by:
sendDatain interfaceWebSocketHttpExchange
-
readRequestData
public org.xnio.IoFuture<byte[]> readRequestData()- Specified by:
readRequestDatain interfaceWebSocketHttpExchange
-
endExchange
public void endExchange()- Specified by:
endExchangein interfaceWebSocketHttpExchange
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceWebSocketHttpExchange
-
getRequestScheme
- Specified by:
getRequestSchemein interfaceWebSocketHttpExchange
-
getRequestURI
- Specified by:
getRequestURIin interfaceWebSocketHttpExchange
-
getBufferPool
- Specified by:
getBufferPoolin interfaceWebSocketHttpExchange
-
getQueryString
- Specified by:
getQueryStringin interfaceWebSocketHttpExchange
-
getSession
- Specified by:
getSessionin interfaceWebSocketHttpExchange
-
getRequestParameters
- Specified by:
getRequestParametersin interfaceWebSocketHttpExchange
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceWebSocketHttpExchange
-
isUserInRole
- Specified by:
isUserInRolein interfaceWebSocketHttpExchange
-
getPeerConnections
- Specified by:
getPeerConnectionsin interfaceWebSocketHttpExchange
-
getOptions
public org.xnio.OptionMap getOptions()- Specified by:
getOptionsin interfaceWebSocketHttpExchange
-