Class AbstractBayeuxContext

  • All Implemented Interfaces:
    org.cometd.bayeux.server.BayeuxContext

    public abstract class AbstractBayeuxContext
    extends java.lang.Object
    implements org.cometd.bayeux.server.BayeuxContext
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBayeuxContext​(javax.servlet.ServletContext context, java.lang.String uri, java.lang.String query, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters, java.security.Principal principal, javax.servlet.http.HttpSession session, java.net.InetSocketAddress local, java.net.InetSocketAddress remote, java.util.List<java.util.Locale> locales, java.lang.String protocol, boolean secure)  
    • Constructor Detail

      • AbstractBayeuxContext

        public AbstractBayeuxContext​(javax.servlet.ServletContext context,
                                     java.lang.String uri,
                                     java.lang.String query,
                                     java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers,
                                     java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
                                     java.security.Principal principal,
                                     javax.servlet.http.HttpSession session,
                                     java.net.InetSocketAddress local,
                                     java.net.InetSocketAddress remote,
                                     java.util.List<java.util.Locale> locales,
                                     java.lang.String protocol,
                                     boolean secure)
    • Method Detail

      • getURL

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

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

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

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

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

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

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

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

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

        public void setHttpSessionAttribute​(java.lang.String name,
                                            java.lang.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 java.net.InetSocketAddress getRemoteAddress()
        Specified by:
        getRemoteAddress in interface org.cometd.bayeux.server.BayeuxContext
      • getLocalAddress

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

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

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

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

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

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

        public java.lang.String getContextPath()
        Specified by:
        getContextPath in interface org.cometd.bayeux.server.BayeuxContext
      • getProtocol

        public java.lang.String getProtocol()
        Specified by:
        getProtocol in interface org.cometd.bayeux.server.BayeuxContext
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface org.cometd.bayeux.server.BayeuxContext