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 Voidbody()Get the body.intcode()Returns the HTTP status code.Optional<HttpResponse<?>>previousResponse()HttpRequestrequest()The originalHttpRequestthat 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:HttpResponseReturns the HTTP status code.- Specified by:
codein interfaceHttpResponse<Void>- Returns:
- the HTTP status code.
-
body
public Void body()
Description copied from interface:HttpResponseGet the body. If the body isCloseable, it should be closed by the caller.- Specified by:
bodyin interfaceHttpResponse<Void>- Returns:
- the body
-
request
public HttpRequest request()
Description copied from interface:HttpResponseThe originalHttpRequestthat initiated this response.- Specified by:
requestin interfaceHttpResponse<Void>- Returns:
- the HTTP request.
-
previousResponse
public Optional<HttpResponse<?>> previousResponse()
- Specified by:
previousResponsein interfaceHttpResponse<Void>
-
-