public class ServletWebSocketRequest extends HttpServletRequestWrapper implements UpgradeRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| Constructor and Description |
|---|
ServletWebSocketRequest(HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtensions(String... extConfigs) |
Map<String,String> |
getCookieMap() |
List<ExtensionConfig> |
getExtensions() |
String |
getHost() |
String |
getHttpEndPointName()
Get the endpoint of the WebSocket connection.
|
String |
getOrigin() |
List<String> |
getSubProtocols() |
boolean |
hasSubProtocol(String test) |
boolean |
isOrigin(String test) |
protected String[] |
parseProtocols(String protocol) |
void |
setSubProtocols(String protocol)
Not implemented (not relevant) on server side.
|
void |
setValidExtensions(List<Extension> valid) |
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logoutgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeadergetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic ServletWebSocketRequest(HttpServletRequest request)
public void addExtensions(String... extConfigs)
addExtensions in interface UpgradeRequestpublic Map<String,String> getCookieMap()
getCookieMap in interface UpgradeRequestpublic List<ExtensionConfig> getExtensions()
getExtensions in interface UpgradeRequestpublic String getHost()
getHost in interface UpgradeRequestpublic String getHttpEndPointName()
Per the Opening Handshake (RFC 6455)
getHttpEndPointName in interface UpgradeRequestpublic String getOrigin()
getOrigin in interface UpgradeRequestpublic List<String> getSubProtocols()
getSubProtocols in interface UpgradeRequestpublic boolean hasSubProtocol(String test)
hasSubProtocol in interface UpgradeRequestpublic boolean isOrigin(String test)
isOrigin in interface UpgradeRequestpublic void setSubProtocols(String protocol)
setSubProtocols in interface UpgradeRequestUpgradeRequest.setSubProtocols(java.lang.String)Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.