public class UpgradeRequest extends Object
Modifier | Constructor and Description |
---|---|
protected |
UpgradeRequest() |
|
UpgradeRequest(String requestURI) |
|
UpgradeRequest(URI requestURI) |
protected UpgradeRequest()
public UpgradeRequest(String requestURI)
public UpgradeRequest(URI requestURI)
public void addExtensions(ExtensionConfig... configs)
public void addExtensions(String... configs)
public void clearHeaders()
public List<HttpCookie> getCookies()
public List<ExtensionConfig> getExtensions()
public int getHeaderInt(String name)
public String getHost()
public String getHttpVersion()
public String getMethod()
public String getOrigin()
public Map<String,List<String>> getParameterMap()
public String getProtocolVersion()
public String getQueryString()
public URI getRequestURI()
public Object getSession()
Note: Never present on a Client UpgradeRequest.
public Principal getUserPrincipal()
Only applicable when using UpgradeRequest from server side.
public boolean hasSubProtocol(String test)
public boolean isOrigin(String test)
public boolean isSecure()
public void setCookies(List<HttpCookie> cookies)
public void setExtensions(List<ExtensionConfig> configs)
public void setHttpVersion(String httpVersion)
public void setMethod(String method)
public void setRequestURI(URI uri)
public void setSession(Object session)
public void setSubProtocols(String... protocols)
protocols
- the sub protocols desiredCopyright © 1995-2015 Webtide. All Rights Reserved.