Class AbstractBayeuxContext
java.lang.Object
org.cometd.server.websocket.common.AbstractBayeuxContext
- All Implemented Interfaces:
BayeuxContext
public abstract class AbstractBayeuxContext extends Object implements 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, String protocol, boolean secure)
-
Method Summary
Modifier and Type Method Description Object
getContextAttribute(String name)
String
getContextInitParameter(String name)
String
getContextPath()
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)
String
getProtocol()
InetSocketAddress
getRemoteAddress()
Object
getRequestAttribute(String name)
String
getURL()
Principal
getUserPrincipal()
void
invalidateHttpSession()
boolean
isSecure()
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, String protocol, boolean secure)
-
-
Method Details
-
getURL
- Specified by:
getURL
in interfaceBayeuxContext
-
getHeader
- Specified by:
getHeader
in interfaceBayeuxContext
-
getHeaderValues
- Specified by:
getHeaderValues
in interfaceBayeuxContext
-
getParameter
- Specified by:
getParameter
in interfaceBayeuxContext
-
getParameterValues
- Specified by:
getParameterValues
in interfaceBayeuxContext
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceBayeuxContext
-
isUserInRole
- Specified by:
isUserInRole
in interfaceBayeuxContext
-
getHttpSessionId
- Specified by:
getHttpSessionId
in interfaceBayeuxContext
-
getHttpSessionAttribute
- Specified by:
getHttpSessionAttribute
in interfaceBayeuxContext
-
setHttpSessionAttribute
- Specified by:
setHttpSessionAttribute
in interfaceBayeuxContext
-
invalidateHttpSession
public void invalidateHttpSession()- Specified by:
invalidateHttpSession
in interfaceBayeuxContext
-
getRemoteAddress
- Specified by:
getRemoteAddress
in interfaceBayeuxContext
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceBayeuxContext
-
getLocales
- Specified by:
getLocales
in interfaceBayeuxContext
-
getCookie
- Specified by:
getCookie
in interfaceBayeuxContext
-
getRequestAttribute
- Specified by:
getRequestAttribute
in interfaceBayeuxContext
-
getContextAttribute
- Specified by:
getContextAttribute
in interfaceBayeuxContext
-
getContextInitParameter
- Specified by:
getContextInitParameter
in interfaceBayeuxContext
-
getContextPath
- Specified by:
getContextPath
in interfaceBayeuxContext
-
getProtocol
- Specified by:
getProtocol
in interfaceBayeuxContext
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfaceBayeuxContext
-