Class WebSocketUpgradeResponse
- java.lang.Object
-
- io.fabric8.kubernetes.client.http.StandardHttpHeaders
-
- io.fabric8.kubernetes.client.http.WebSocketUpgradeResponse
-
- All Implemented Interfaces:
HttpHeaders
,HttpResponse<Void>
public class WebSocketUpgradeResponse extends StandardHttpHeaders implements HttpResponse<Void>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.http.HttpResponse
HttpResponse.SupportedResponses
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.client.http.StandardHttpHeaders
CONTENT_LENGTH, CONTENT_TYPE, EXPECT, EXPECT_CONTINUE, PROXY_AUTHORIZATION, RETRY_AFTER
-
-
Constructor Summary
Constructors Constructor Description WebSocketUpgradeResponse(HttpRequest httpRequest)
WebSocketUpgradeResponse(HttpRequest httpRequest, int code)
WebSocketUpgradeResponse(HttpRequest httpRequest, int code, Map<String,List<String>> headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
body()
Get the body.int
code()
Returns the HTTP status code.Optional<HttpResponse<?>>
previousResponse()
HttpRequest
request()
The originalHttpRequest
that initiated this response.-
Methods inherited from class io.fabric8.kubernetes.client.http.StandardHttpHeaders
headers, headers
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.http.HttpHeaders
header, headers, headers
-
Methods inherited from interface io.fabric8.kubernetes.client.http.HttpResponse
bodyString, isSuccessful, message
-
-
-
-
Constructor Detail
-
WebSocketUpgradeResponse
public WebSocketUpgradeResponse(HttpRequest httpRequest)
-
WebSocketUpgradeResponse
public WebSocketUpgradeResponse(HttpRequest httpRequest, int code)
-
WebSocketUpgradeResponse
public WebSocketUpgradeResponse(HttpRequest httpRequest, int code, Map<String,List<String>> headers)
-
-
Method Detail
-
code
public int code()
Description copied from interface:HttpResponse
Returns the HTTP status code.- Specified by:
code
in interfaceHttpResponse<Void>
- Returns:
- the HTTP status code.
-
body
public Void body()
Description copied from interface:HttpResponse
Get the body. If the body isCloseable
, it should be closed by the caller.- Specified by:
body
in interfaceHttpResponse<Void>
- Returns:
- the body
-
request
public HttpRequest request()
Description copied from interface:HttpResponse
The originalHttpRequest
that initiated this response.- Specified by:
request
in interfaceHttpResponse<Void>
- Returns:
- the HTTP request.
-
previousResponse
public Optional<HttpResponse<?>> previousResponse()
- Specified by:
previousResponse
in interfaceHttpResponse<Void>
-
-