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 interfaceStandardHttpRequest.BodyContentstatic classStandardHttpRequest.Builderstatic classStandardHttpRequest.ByteArrayBodyContentstatic classStandardHttpRequest.InputStreamBodyContentstatic classStandardHttpRequest.StringBodyContent
-
Field Summary
Fields Modifier and Type Field Description static StringMETHOD_POSTstatic StringMETHOD_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.BodyContentbody()StringbodyString()Return the body as a string, but only if one of the String valuedHttpRequest.Buildermethods were used otherwise nullStringgetContentType()DurationgetTimeout()UUIDid()The unique id for this HTTP request, used for logging and debuggingbooleanisExpectContinue()booleanisForStreaming()Stringmethod()StandardHttpRequest.BuildernewBuilder()URIuri()-
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:HttpRequestThe unique id for this HTTP request, used for logging and debugging- Specified by:
idin interfaceHttpRequest- Returns:
- a UUID.
-
uri
public URI uri()
- Specified by:
uriin interfaceHttpRequest
-
method
public String method()
- Specified by:
methodin interfaceHttpRequest
-
bodyString
public String bodyString()
Return the body as a string, but only if one of the String valuedHttpRequest.Buildermethods were used otherwise null- Specified by:
bodyStringin 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()
-
-