public class ServletUpgradeRequest extends UpgradeRequest
UpgradeRequest
implementation.Constructor and Description |
---|
ServletUpgradeRequest(HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
X509Certificate[] |
getCertificates() |
String |
getLocalAddress()
Equivalent to
ServletRequest.getLocalAddr() |
String |
getLocalHostName()
Equivalent to
ServletRequest.getLocalName() |
int |
getLocalPort()
Equivalent to
ServletRequest.getLocalPort() |
InetSocketAddress |
getLocalSocketAddress()
Return a
InetSocketAddress for the local socket. |
Principal |
getPrincipal() |
String |
getRemoteAddress()
Equivalent to
ServletRequest.getRemoteAddr() |
String |
getRemoteHostName()
Equivalent to
ServletRequest.getRemoteHost() |
int |
getRemotePort()
Equivalent to
ServletRequest.getRemotePort() |
InetSocketAddress |
getRemoteSocketAddress()
Return a
InetSocketAddress for the remote socket. |
Map<String,Object> |
getServletAttributes() |
Map<String,List<String>> |
getServletParameters() |
Object |
getSession()
Return the HttpSession if it exists.
|
protected String[] |
parseProtocols(String protocol) |
void |
setServletAttribute(String name,
Object o) |
addExtensions, addExtensions, getCookies, getExtensions, getHeader, getHeaderInt, getHeaders, getHeaders, getHost, getHttpVersion, getMethod, getOrigin, getParameterMap, getProtocolVersion, getQueryString, getRequestURI, getSubProtocols, hasSubProtocol, isOrigin, isSecure, setCookies, setHeader, setHeader, setHttpVersion, setMethod, setParameterMap, setRequestURI, setSession, setSubProtocols, setSubProtocols
public ServletUpgradeRequest(HttpServletRequest request) throws URISyntaxException
URISyntaxException
public X509Certificate[] getCertificates()
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 Principal getPrincipal()
public 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 Object getSession()
Note: this is equivalent to HttpServletRequest.getSession()
and will not create a new HttpSession.
getSession
in class UpgradeRequest
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.