Class AbstractBayeuxContext

java.lang.Object
org.cometd.websocket.server.common.AbstractBayeuxContext
All Implemented Interfaces:
org.cometd.bayeux.server.BayeuxContext

public abstract class AbstractBayeuxContext
extends Object
implements org.cometd.bayeux.server.BayeuxContext
  • Constructor Details

  • Method Details

    • getURL

      public String getURL()
      Specified by:
      getURL in interface org.cometd.bayeux.server.BayeuxContext
    • getHeader

      public String getHeader​(String name)
      Specified by:
      getHeader in interface org.cometd.bayeux.server.BayeuxContext
    • getHeaderValues

      public List<String> getHeaderValues​(String name)
      Specified by:
      getHeaderValues in interface org.cometd.bayeux.server.BayeuxContext
    • getParameter

      public String getParameter​(String name)
      Specified by:
      getParameter in interface org.cometd.bayeux.server.BayeuxContext
    • getParameterValues

      public List<String> getParameterValues​(String name)
      Specified by:
      getParameterValues in interface org.cometd.bayeux.server.BayeuxContext
    • getUserPrincipal

      public Principal getUserPrincipal()
      Specified by:
      getUserPrincipal in interface org.cometd.bayeux.server.BayeuxContext
    • isUserInRole

      public boolean isUserInRole​(String role)
      Specified by:
      isUserInRole in interface org.cometd.bayeux.server.BayeuxContext
    • getHttpSessionId

      public String getHttpSessionId()
      Specified by:
      getHttpSessionId in interface org.cometd.bayeux.server.BayeuxContext
    • getHttpSessionAttribute

      public Object getHttpSessionAttribute​(String name)
      Specified by:
      getHttpSessionAttribute in interface org.cometd.bayeux.server.BayeuxContext
    • setHttpSessionAttribute

      public void setHttpSessionAttribute​(String name, Object value)
      Specified by:
      setHttpSessionAttribute in interface org.cometd.bayeux.server.BayeuxContext
    • invalidateHttpSession

      public void invalidateHttpSession()
      Specified by:
      invalidateHttpSession in interface org.cometd.bayeux.server.BayeuxContext
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()
      Specified by:
      getRemoteAddress in interface org.cometd.bayeux.server.BayeuxContext
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
      Specified by:
      getLocalAddress in interface org.cometd.bayeux.server.BayeuxContext
    • getLocales

      public List<Locale> getLocales()
      Specified by:
      getLocales in interface org.cometd.bayeux.server.BayeuxContext
    • getCookie

      public String getCookie​(String name)
      Specified by:
      getCookie in interface org.cometd.bayeux.server.BayeuxContext
    • getRequestAttribute

      public Object getRequestAttribute​(String name)
      Specified by:
      getRequestAttribute in interface org.cometd.bayeux.server.BayeuxContext
    • getContextAttribute

      public Object getContextAttribute​(String name)
      Specified by:
      getContextAttribute in interface org.cometd.bayeux.server.BayeuxContext
    • getContextInitParameter

      public String getContextInitParameter​(String name)
      Specified by:
      getContextInitParameter in interface org.cometd.bayeux.server.BayeuxContext