Package io.undertow.websockets.vertx
Class VertxWebSocketHttpExchange
- java.lang.Object
-
- io.undertow.websockets.vertx.VertxWebSocketHttpExchange
-
- All Implemented Interfaces:
io.undertow.websockets.handshake.WebSocketHttpExchange,Closeable,AutoCloseable
public class VertxWebSocketHttpExchange extends Object implements io.undertow.websockets.handshake.WebSocketHttpExchange
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description VertxWebSocketHttpExchange(Executor executor, io.vertx.ext.web.RoutingContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidendExchange()<T> TgetAttachment(String key)ExecutorgetExecutor()StringgetQueryString()StringgetRequestHeader(CharSequence headerName)Map<String,List<String>>getRequestHeaders()Map<String,List<String>>getRequestParameters()StringgetRequestScheme()StringgetRequestURI()StringgetResponseHeader(CharSequence headerName)Map<String,List<String>>getResponseHeaders()ObjectgetSession()PrincipalgetUserPrincipal()booleanisUserInRole(String role)<T> voidputAttachment(String key, T value)voidsetResponseHeader(CharSequence headerName, String headerValue)voidsetResponseHeaders(Map<String,List<String>> headers)voidupgradeChannel(Consumer<Object> listener)
-
-
-
Constructor Detail
-
VertxWebSocketHttpExchange
public VertxWebSocketHttpExchange(Executor executor, io.vertx.ext.web.RoutingContext context)
-
-
Method Detail
-
putAttachment
public <T> void putAttachment(String key, T value)
- Specified by:
putAttachmentin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getAttachment
public <T> T getAttachment(String key)
- Specified by:
getAttachmentin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getRequestHeader
public String getRequestHeader(CharSequence headerName)
- Specified by:
getRequestHeaderin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getRequestHeaders
public Map<String,List<String>> getRequestHeaders()
- Specified by:
getRequestHeadersin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getResponseHeader
public String getResponseHeader(CharSequence headerName)
- Specified by:
getResponseHeaderin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getResponseHeaders
public Map<String,List<String>> getResponseHeaders()
- Specified by:
getResponseHeadersin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
setResponseHeaders
public void setResponseHeaders(Map<String,List<String>> headers)
- Specified by:
setResponseHeadersin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
setResponseHeader
public void setResponseHeader(CharSequence headerName, String headerValue)
- Specified by:
setResponseHeaderin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
upgradeChannel
public void upgradeChannel(Consumer<Object> listener)
- Specified by:
upgradeChannelin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
endExchange
public void endExchange()
- Specified by:
endExchangein interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getRequestScheme
public String getRequestScheme()
- Specified by:
getRequestSchemein interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURIin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getQueryString
public String getQueryString()
- Specified by:
getQueryStringin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getSession
public Object getSession()
- Specified by:
getSessionin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getRequestParameters
public Map<String,List<String>> getRequestParameters()
- Specified by:
getRequestParametersin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRolein interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
getExecutor
public Executor getExecutor()
- Specified by:
getExecutorin interfaceio.undertow.websockets.handshake.WebSocketHttpExchange
-
-