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.BayeuxContextpublic String getHeader(String name)
getHeader in interface org.cometd.bayeux.server.BayeuxContextpublic List<String> getHeaderValues(String name)
getHeaderValues in interface org.cometd.bayeux.server.BayeuxContextpublic String getParameter(String name)
getParameter in interface org.cometd.bayeux.server.BayeuxContextpublic List<String> getParameterValues(String name)
getParameterValues in interface org.cometd.bayeux.server.BayeuxContextpublic Principal getUserPrincipal()
getUserPrincipal in interface org.cometd.bayeux.server.BayeuxContextpublic boolean isUserInRole(String role)
isUserInRole in interface org.cometd.bayeux.server.BayeuxContextpublic String getHttpSessionId()
getHttpSessionId in interface org.cometd.bayeux.server.BayeuxContextpublic Object getHttpSessionAttribute(String name)
getHttpSessionAttribute in interface org.cometd.bayeux.server.BayeuxContextpublic void setHttpSessionAttribute(String name, Object value)
setHttpSessionAttribute in interface org.cometd.bayeux.server.BayeuxContextpublic void invalidateHttpSession()
invalidateHttpSession in interface org.cometd.bayeux.server.BayeuxContextpublic InetSocketAddress getRemoteAddress()
getRemoteAddress in interface org.cometd.bayeux.server.BayeuxContextpublic InetSocketAddress getLocalAddress()
getLocalAddress in interface org.cometd.bayeux.server.BayeuxContextpublic List<Locale> getLocales()
getLocales in interface org.cometd.bayeux.server.BayeuxContextpublic String getCookie(String name)
getCookie in interface org.cometd.bayeux.server.BayeuxContextpublic Object getRequestAttribute(String name)
getRequestAttribute in interface org.cometd.bayeux.server.BayeuxContextpublic Object getContextAttribute(String name)
getContextAttribute in interface org.cometd.bayeux.server.BayeuxContextCopyright © 2008–2015 Dojo Foundation. All rights reserved.