public class ServletUpgradeRequest extends UpgradeRequest
UpgradeRequest implementation.| Constructor and Description |
|---|
ServletUpgradeRequest(HttpServletRequest request) |
addExtensions, addExtensions, clearHeaders, getCookies, getExtensions, getHeader, getHeaderInt, getHeaders, getHeaders, getHost, getHttpVersion, getMethod, getOrigin, getParameterMap, getProtocolVersion, getQueryString, getRequestURI, getSubProtocols, hasSubProtocol, isOrigin, isSecure, setCookies, setExtensions, setHeader, setHeader, setHeaders, setHttpVersion, setMethod, setParameterMap, setRequestURI, setSession, setSubProtocols, setSubProtocolspublic ServletUpgradeRequest(HttpServletRequest request) throws URISyntaxException
URISyntaxExceptionpublic X509Certificate[] getCertificates()
public HttpServletRequest getHttpServletRequest()
Note: many features of the HttpServletRequest are invalid when upgraded, especially ones that deal with body content, streams, readers, and responses.
public String getLocalAddress()
ServletRequest.getLocalAddr()public String getLocalHostName()
ServletRequest.getLocalName()public int getLocalPort()
ServletRequest.getLocalPort()public Locale getLocale()
ServletRequest.getLocale()Locale for the clientpublic Enumeration<Locale> getLocales()
ServletRequest.getLocales()public InetSocketAddress getLocalSocketAddress()
InetSocketAddress for the local socket.
Warning: this can cause a DNS lookup
@Deprecated public Principal getPrincipal()
getUserPrincipal() insteadpublic Principal getUserPrincipal()
HttpServletRequest.getUserPrincipal()getUserPrincipal in class UpgradeRequestpublic String getRemoteAddress()
ServletRequest.getRemoteAddr()public String getRemoteHostName()
ServletRequest.getRemoteHost()public int getRemotePort()
ServletRequest.getRemotePort()public InetSocketAddress getRemoteSocketAddress()
InetSocketAddress for the remote socket.
Warning: this can cause a DNS lookup
public HttpSession getSession()
Note: this is equivalent to HttpServletRequest.getSession() and will not create a new HttpSession.
getSession in class UpgradeRequestpublic boolean isUserInRole(String role)
public String getRequestPath()
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.