public class StandardHttpRequest extends StandardHttpHeaders implements HttpRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
StandardHttpRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_POST |
CONTENT_LENGTH, CONTENT_TYPE, EXPECT, EXPECT_CONTINUE| Constructor and Description |
|---|
StandardHttpRequest(Map<String,List<String>> headers,
URI uri,
String method,
String bodyString,
InputStream bodyStream) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
bodyStream()
Return the body as a string, but only if one of the byte[] or InputStream valued
HttpRequest.Builder
methods were used otherwise null. |
String |
bodyString()
Return the body as a string, but only if one of the String valued
HttpRequest.Builder methods were used
otherwise null |
String |
method() |
StandardHttpRequest.Builder |
toBuilder() |
URI |
uri() |
headers, headersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformURLEncodeheaders, headerspublic static final String METHOD_POST
public URI uri()
uri in interface HttpRequestpublic String method()
method in interface HttpRequestpublic String bodyString()
HttpRequest.Builder methods were used
otherwise nullbodyString in interface HttpRequestpublic InputStream bodyStream()
HttpRequest.Builder
methods were used otherwise null.public StandardHttpRequest.Builder toBuilder()
Copyright © 2015–2022 Red Hat. All rights reserved.