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 Details

    • VertxWebSocketHttpExchange

      public VertxWebSocketHttpExchange(Executor executor, io.vertx.ext.web.RoutingContext context)
  • Method Details

    • putAttachment

      public <T> void putAttachment(String key, T value)
      Specified by:
      putAttachment in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getAttachment

      public <T> T getAttachment(String key)
      Specified by:
      getAttachment in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getRequestHeader

      public String getRequestHeader(CharSequence headerName)
      Specified by:
      getRequestHeader in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getRequestHeaders

      public Map<String,List<String>> getRequestHeaders()
      Specified by:
      getRequestHeaders in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getResponseHeader

      public String getResponseHeader(CharSequence headerName)
      Specified by:
      getResponseHeader in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getResponseHeaders

      public Map<String,List<String>> getResponseHeaders()
      Specified by:
      getResponseHeaders in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • setResponseHeaders

      public void setResponseHeaders(Map<String,List<String>> headers)
      Specified by:
      setResponseHeaders in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • setResponseHeader

      public void setResponseHeader(CharSequence headerName, String headerValue)
      Specified by:
      setResponseHeader in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • upgradeChannel

      public void upgradeChannel(Consumer<Object> listener)
      Specified by:
      upgradeChannel in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • endExchange

      public void endExchange()
      Specified by:
      endExchange in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getRequestScheme

      public String getRequestScheme()
      Specified by:
      getRequestScheme in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getRequestURI

      public String getRequestURI()
      Specified by:
      getRequestURI in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getSession

      public Object getSession()
      Specified by:
      getSession in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getRequestParameters

      public Map<String,List<String>> getRequestParameters()
      Specified by:
      getRequestParameters in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getUserPrincipal

      public Principal getUserPrincipal()
      Specified by:
      getUserPrincipal in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • isUserInRole

      public boolean isUserInRole(String role)
      Specified by:
      isUserInRole in interface io.undertow.websockets.handshake.WebSocketHttpExchange
    • getExecutor

      public Executor getExecutor()
      Specified by:
      getExecutor in interface io.undertow.websockets.handshake.WebSocketHttpExchange