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 Summary
Constructors Constructor Description AbstractBayeuxContext(javax.servlet.ServletContext context, String uri, String query, Map<String,List<String>> headers, Map<String,List<String>> parameters, Principal principal, javax.servlet.http.HttpSession session, InetSocketAddress local, InetSocketAddress remote, List<Locale> locales)
-
Method Summary
Modifier and Type Method Description Object
getContextAttribute(String name)
String
getContextInitParameter(String name)
String
getCookie(String name)
String
getHeader(String name)
List<String>
getHeaderValues(String name)
Object
getHttpSessionAttribute(String name)
String
getHttpSessionId()
InetSocketAddress
getLocalAddress()
List<Locale>
getLocales()
String
getParameter(String name)
List<String>
getParameterValues(String name)
InetSocketAddress
getRemoteAddress()
Object
getRequestAttribute(String name)
String
getURL()
Principal
getUserPrincipal()
void
invalidateHttpSession()
boolean
isUserInRole(String role)
void
setHttpSessionAttribute(String name, Object value)
-
Constructor Details
-
AbstractBayeuxContext
public AbstractBayeuxContext(javax.servlet.ServletContext context, String uri, String query, Map<String,List<String>> headers, Map<String,List<String>> parameters, Principal principal, javax.servlet.http.HttpSession session, InetSocketAddress local, InetSocketAddress remote, List<Locale> locales)
-
-
Method Details
-
getURL
- Specified by:
getURL
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getHeader
- Specified by:
getHeader
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getHeaderValues
- Specified by:
getHeaderValues
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getParameter
- Specified by:
getParameter
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getParameterValues
- Specified by:
getParameterValues
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
isUserInRole
- Specified by:
isUserInRole
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getHttpSessionId
- Specified by:
getHttpSessionId
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getHttpSessionAttribute
- Specified by:
getHttpSessionAttribute
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
setHttpSessionAttribute
- Specified by:
setHttpSessionAttribute
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
invalidateHttpSession
public void invalidateHttpSession()- Specified by:
invalidateHttpSession
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getRemoteAddress
- Specified by:
getRemoteAddress
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getLocales
- Specified by:
getLocales
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getCookie
- Specified by:
getCookie
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getRequestAttribute
- Specified by:
getRequestAttribute
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getContextAttribute
- Specified by:
getContextAttribute
in interfaceorg.cometd.bayeux.server.BayeuxContext
-
getContextInitParameter
- Specified by:
getContextInitParameter
in interfaceorg.cometd.bayeux.server.BayeuxContext
-