public class StandardHttpRequest extends StandardHttpHeaders implements HttpRequest
Modifier and Type | Class and Description |
---|---|
static interface |
StandardHttpRequest.BodyContent |
static class |
StandardHttpRequest.Builder |
static class |
StandardHttpRequest.ByteArrayBodyContent |
static class |
StandardHttpRequest.InputStreamBodyContent |
static class |
StandardHttpRequest.StringBodyContent |
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_POST |
static String |
METHOD_PUT |
CONTENT_LENGTH, CONTENT_TYPE, EXPECT, EXPECT_CONTINUE, PROXY_AUTHORIZATION, RETRY_AFTER
Constructor and Description |
---|
StandardHttpRequest(Map<String,List<String>> headers,
URI uri,
String method,
String bodyString)
Constructor that provides the public information
|
Modifier and Type | Method and Description |
---|---|
StandardHttpRequest.BodyContent |
body() |
String |
bodyString()
Return the body as a string, but only if one of the String valued
HttpRequest.Builder methods were used
otherwise null |
String |
getContentType() |
Duration |
getTimeout() |
UUID |
id()
The unique id for this HTTP request, used for logging and debugging
|
boolean |
isExpectContinue() |
boolean |
isForStreaming() |
String |
method() |
StandardHttpRequest.Builder |
newBuilder() |
URI |
uri() |
headers, headers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
formURLEncode
header, headers, headers
public static final String METHOD_POST
public static final String METHOD_PUT
public UUID id()
HttpRequest
id
in interface HttpRequest
public URI uri()
uri
in interface HttpRequest
public String method()
method
in interface HttpRequest
public String bodyString()
HttpRequest.Builder
methods were used
otherwise nullbodyString
in interface HttpRequest
public StandardHttpRequest.BodyContent body()
public boolean isExpectContinue()
public String getContentType()
public StandardHttpRequest.Builder newBuilder()
public boolean isForStreaming()
public Duration getTimeout()
Copyright © 2015–2024 Red Hat. All rights reserved.