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, logout
getAsyncContext, 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, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeader
getAsyncContext, 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, startAsync
public ServletWebSocketRequest(HttpServletRequest request)
public void addExtensions(String... extConfigs)
addExtensions
in interface UpgradeRequest
public Map<String,String> getCookieMap()
getCookieMap
in interface UpgradeRequest
public List<ExtensionConfig> getExtensions()
getExtensions
in interface UpgradeRequest
public String getHost()
getHost
in interface UpgradeRequest
public String getHttpEndPointName()
Per the Opening Handshake (RFC 6455)
getHttpEndPointName
in interface UpgradeRequest
public String getOrigin()
getOrigin
in interface UpgradeRequest
public List<String> getSubProtocols()
getSubProtocols
in interface UpgradeRequest
public boolean hasSubProtocol(String test)
hasSubProtocol
in interface UpgradeRequest
public boolean isOrigin(String test)
isOrigin
in interface UpgradeRequest
public void setSubProtocols(String protocol)
setSubProtocols
in interface UpgradeRequest
UpgradeRequest.setSubProtocols(java.lang.String)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.