public abstract class AbstractBayeuxContext extends Object implements org.cometd.bayeux.server.BayeuxContext
Constructor and 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) |
Modifier and Type | Method and 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) |
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)
public String getURL()
getURL
in interface org.cometd.bayeux.server.BayeuxContext
public String getHeader(String name)
getHeader
in interface org.cometd.bayeux.server.BayeuxContext
public List<String> getHeaderValues(String name)
getHeaderValues
in interface org.cometd.bayeux.server.BayeuxContext
public String getParameter(String name)
getParameter
in interface org.cometd.bayeux.server.BayeuxContext
public List<String> getParameterValues(String name)
getParameterValues
in interface org.cometd.bayeux.server.BayeuxContext
public Principal getUserPrincipal()
getUserPrincipal
in interface org.cometd.bayeux.server.BayeuxContext
public boolean isUserInRole(String role)
isUserInRole
in interface org.cometd.bayeux.server.BayeuxContext
public String getHttpSessionId()
getHttpSessionId
in interface org.cometd.bayeux.server.BayeuxContext
public Object getHttpSessionAttribute(String name)
getHttpSessionAttribute
in interface org.cometd.bayeux.server.BayeuxContext
public void setHttpSessionAttribute(String name, Object value)
setHttpSessionAttribute
in interface org.cometd.bayeux.server.BayeuxContext
public void invalidateHttpSession()
invalidateHttpSession
in interface org.cometd.bayeux.server.BayeuxContext
public InetSocketAddress getRemoteAddress()
getRemoteAddress
in interface org.cometd.bayeux.server.BayeuxContext
public InetSocketAddress getLocalAddress()
getLocalAddress
in interface org.cometd.bayeux.server.BayeuxContext
public List<Locale> getLocales()
getLocales
in interface org.cometd.bayeux.server.BayeuxContext
public String getCookie(String name)
getCookie
in interface org.cometd.bayeux.server.BayeuxContext
public Object getRequestAttribute(String name)
getRequestAttribute
in interface org.cometd.bayeux.server.BayeuxContext
public Object getContextAttribute(String name)
getContextAttribute
in interface org.cometd.bayeux.server.BayeuxContext
Copyright © 2008–2016 The CometD Project. All rights reserved.