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 ObjectgetContextAttribute(String name)StringgetContextInitParameter(String name)StringgetContextPath()StringgetCookie(String name)StringgetHeader(String name)List<String>getHeaderValues(String name)ObjectgetHttpSessionAttribute(String name)StringgetHttpSessionId()InetSocketAddressgetLocalAddress()List<Locale>getLocales()StringgetParameter(String name)List<String>getParameterValues(String name)StringgetProtocol()InetSocketAddressgetRemoteAddress()ObjectgetRequestAttribute(String name)StringgetURL()PrincipalgetUserPrincipal()voidinvalidateHttpSession()booleanisSecure()booleanisUserInRole(String role)voidsetHttpSessionAttribute(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:
getURLin interfaceBayeuxContext
-
getHeader
- Specified by:
getHeaderin interfaceBayeuxContext
-
getHeaderValues
- Specified by:
getHeaderValuesin interfaceBayeuxContext
-
getParameter
- Specified by:
getParameterin interfaceBayeuxContext
-
getParameterValues
- Specified by:
getParameterValuesin interfaceBayeuxContext
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceBayeuxContext
-
isUserInRole
- Specified by:
isUserInRolein interfaceBayeuxContext
-
getHttpSessionId
- Specified by:
getHttpSessionIdin interfaceBayeuxContext
-
getHttpSessionAttribute
- Specified by:
getHttpSessionAttributein interfaceBayeuxContext
-
setHttpSessionAttribute
- Specified by:
setHttpSessionAttributein interfaceBayeuxContext
-
invalidateHttpSession
public void invalidateHttpSession()- Specified by:
invalidateHttpSessionin interfaceBayeuxContext
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceBayeuxContext
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceBayeuxContext
-
getLocales
- Specified by:
getLocalesin interfaceBayeuxContext
-
getCookie
- Specified by:
getCookiein interfaceBayeuxContext
-
getRequestAttribute
- Specified by:
getRequestAttributein interfaceBayeuxContext
-
getContextAttribute
- Specified by:
getContextAttributein interfaceBayeuxContext
-
getContextInitParameter
- Specified by:
getContextInitParameterin interfaceBayeuxContext
-
getContextPath
- Specified by:
getContextPathin interfaceBayeuxContext
-
getProtocol
- Specified by:
getProtocolin interfaceBayeuxContext
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceBayeuxContext
-