Class StandardHttpRequest
- java.lang.Object
-
- io.fabric8.kubernetes.client.http.StandardHttpHeaders
-
- io.fabric8.kubernetes.client.http.StandardHttpRequest
-
- All Implemented Interfaces:
HttpHeaders
,HttpRequest
public class StandardHttpRequest extends StandardHttpHeaders implements HttpRequest
Standard representation of a request. HttpClient implementations need to handle the special fields, such as expectContinue, or content-type
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StandardHttpRequest.BodyContent
static class
StandardHttpRequest.Builder
static class
StandardHttpRequest.ByteArrayBodyContent
static class
StandardHttpRequest.InputStreamBodyContent
static class
StandardHttpRequest.StringBodyContent
-
Field Summary
Fields Modifier and Type Field Description static String
METHOD_POST
static String
METHOD_PUT
-
Fields inherited from class io.fabric8.kubernetes.client.http.StandardHttpHeaders
CONTENT_LENGTH, CONTENT_TYPE, EXPECT, EXPECT_CONTINUE, PROXY_AUTHORIZATION, RETRY_AFTER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardHttpRequest.BodyContent
body()
String
bodyString()
Return the body as a string, but only if one of the String valuedHttpRequest.Builder
methods were used otherwise nullString
getContentType()
Duration
getTimeout()
UUID
id()
The unique id for this HTTP request, used for logging and debuggingboolean
isExpectContinue()
boolean
isForStreaming()
String
method()
StandardHttpRequest.Builder
newBuilder()
URI
uri()
-
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
-
-
-
-
Field Detail
-
METHOD_POST
public static final String METHOD_POST
- See Also:
- Constant Field Values
-
METHOD_PUT
public static final String METHOD_PUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public UUID id()
Description copied from interface:HttpRequest
The unique id for this HTTP request, used for logging and debugging- Specified by:
id
in interfaceHttpRequest
- Returns:
- a UUID.
-
uri
public URI uri()
- Specified by:
uri
in interfaceHttpRequest
-
method
public String method()
- Specified by:
method
in interfaceHttpRequest
-
bodyString
public String bodyString()
Return the body as a string, but only if one of the String valuedHttpRequest.Builder
methods were used otherwise null- Specified by:
bodyString
in interfaceHttpRequest
- Returns:
- the body
-
body
public StandardHttpRequest.BodyContent body()
-
isExpectContinue
public boolean isExpectContinue()
-
getContentType
public String getContentType()
-
newBuilder
public StandardHttpRequest.Builder newBuilder()
-
isForStreaming
public boolean isForStreaming()
-
getTimeout
public Duration getTimeout()
-
-