Class ClientUpgradeRequest
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.UpgradeRequestAdapter
-
- org.eclipse.jetty.websocket.client.ClientUpgradeRequest
-
- All Implemented Interfaces:
UpgradeRequest
@Deprecated(since="2021-05-27") public class ClientUpgradeRequest extends UpgradeRequestAdapter
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Allowing a generate from a UpgradeRequest
-
-
Constructor Summary
Constructors Constructor Description ClientUpgradeRequest()
Deprecated.ClientUpgradeRequest(WebSocketUpgradeRequest wsRequest)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getKey()
Deprecated.Object
getLocalEndpoint()
Deprecated.long
getTimeout()
Deprecated.void
setCookiesFrom(CookieStore cookieStore)
Deprecated.use eitherWebSocketClient.setCookieStore(CookieStore)
orHttpClient.setCookieStore(CookieStore)
insteadvoid
setLocalEndpoint(Object websocket)
Deprecated.void
setRequestURI(URI uri)
Deprecated.Set the Request URI to use for this request.void
setTimeout(long timeout, TimeUnit unit)
Deprecated.-
Methods inherited from class org.eclipse.jetty.websocket.common.UpgradeRequestAdapter
addExtensions, addExtensions, clearHeaders, getCookies, getExtensions, getHeader, getHeaderInt, getHeaders, getHeaders, getHost, getHttpVersion, getMethod, getOrigin, getParameterMap, getProtocolVersion, getQueryString, getRequestURI, getSession, getSubProtocols, getUserPrincipal, hasSubProtocol, isOrigin, isSecure, setCookies, setExtensions, setHeader, setHeader, setHeaders, setHttpVersion, setMethod, setSession, setSubProtocols, setSubProtocols
-
-
-
-
Constructor Detail
-
ClientUpgradeRequest
public ClientUpgradeRequest()
Deprecated.
-
ClientUpgradeRequest
public ClientUpgradeRequest(WebSocketUpgradeRequest wsRequest)
Deprecated.
-
-
Method Detail
-
getKey
public String getKey()
Deprecated.
-
setCookiesFrom
@Deprecated public void setCookiesFrom(CookieStore cookieStore)
Deprecated.use eitherWebSocketClient.setCookieStore(CookieStore)
orHttpClient.setCookieStore(CookieStore)
instead- Parameters:
cookieStore
- the cookie store to use
-
setRequestURI
public void setRequestURI(URI uri)
Deprecated.Description copied from interface:UpgradeRequest
Set the Request URI to use for this request.Must be an absolute URI with scheme
'ws'
or'wss'
- Specified by:
setRequestURI
in interfaceUpgradeRequest
- Overrides:
setRequestURI
in classUpgradeRequestAdapter
- Parameters:
uri
- the Request URI
-
setTimeout
public void setTimeout(long timeout, TimeUnit unit)
Deprecated.- Parameters:
timeout
- the total timeout for the request/response conversation of the WebSocket handshake; use zero or a negative value to disable the timeoutunit
- the timeout unit
-
getTimeout
public long getTimeout()
Deprecated.- Returns:
- the total timeout for this request, in milliseconds; zero or negative if the timeout is disabled
-
setLocalEndpoint
public void setLocalEndpoint(Object websocket)
Deprecated.
-
getLocalEndpoint
public Object getLocalEndpoint()
Deprecated.
-
-