public class ServletUpgradeRequest extends UpgradeRequest
UpgradeRequest implementation.| Constructor and Description |
|---|
ServletUpgradeRequest(HttpServletRequest httpRequest) |
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 httpRequest) 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 InetSocketAddress getLocalSocketAddress()
InetSocketAddress for the local socket.
Warning: this can cause a DNS lookup
public Locale getLocale()
ServletRequest.getLocale()Locale for the clientpublic Enumeration<Locale> getLocales()
ServletRequest.getLocales()@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(boolean)
and will not create a new HttpSession.
getSession in class UpgradeRequestpublic boolean isUserInRole(String role)
public String getRequestPath()
public void complete()
Copyright © 1995-2015 Webtide. All Rights Reserved.