Class AbstractBayeuxContext
java.lang.Object
org.cometd.server.websocket.common.AbstractBayeuxContext
- All Implemented Interfaces:
BayeuxContext
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractBayeuxContext(jakarta.servlet.ServletContext context, String uri, String query, Map<String, List<String>> headers, Map<String, List<String>> parameters, Principal principal, jakarta.servlet.http.HttpSession session, InetSocketAddress local, InetSocketAddress remote, List<Locale> locales, String protocol, boolean secure) -
Method Summary
Modifier and TypeMethodDescriptiongetContextAttribute(String name) getHeaderValues(String name) getParameter(String name) getParameterValues(String name) getRequestAttribute(String name) getURL()voidbooleanisSecure()booleanisUserInRole(String role) voidsetHttpSessionAttribute(String name, Object value)
-
Constructor Details
-
AbstractBayeuxContext
public AbstractBayeuxContext(jakarta.servlet.ServletContext context, String uri, String query, Map<String, List<String>> headers, Map<String, List<String>> parameters, Principal principal, jakarta.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
-