protected class WebSocketTransport.WebSocketContext extends Object implements org.cometd.bayeux.server.BayeuxContext
| Constructor and Description |
|---|
WebSocketTransport.WebSocketContext(javax.servlet.http.HttpServletRequest request) |
| 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() |
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 WebSocketTransport.WebSocketContext(javax.servlet.http.HttpServletRequest request)
public Principal getUserPrincipal()
getUserPrincipal in interface org.cometd.bayeux.server.BayeuxContextpublic boolean isUserInRole(String role)
isUserInRole 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 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 String getCookie(String name)
getCookie 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 Object getRequestAttribute(String name)
getRequestAttribute in interface org.cometd.bayeux.server.BayeuxContextpublic Object getContextAttribute(String name)
getContextAttribute in interface org.cometd.bayeux.server.BayeuxContextpublic String getContextInitParameter(String name)
getContextInitParameter in interface org.cometd.bayeux.server.BayeuxContextpublic String getURL()
getURL in interface org.cometd.bayeux.server.BayeuxContextCopyright © 2008–2014 Dojo Foundation. All rights reserved.