Important Note
SimpleHttpRequests are intended for simple scenarios where entities inclosed
in requests are known to be small. It is generally recommended to use
org. and streaming
org.s.
SimpleBody, org.apache.hc.core5.http.nio.support.AsyncRequestBuilder , org.apache.hc.core5.http.nio.AsyncEntityProducer
| Modifier and Type | Field and Description |
|---|---|
| private SimpleBody | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | SimpleHttpRequest(final String method, final String scheme, final URIAuthority authority, final String path)
|
| Modifier and Type | Method and Description |
|---|---|
| public static SimpleHttpRequest | |
| public static SimpleHttpRequest | |
| public static SimpleHttpRequest | |
| public static SimpleHttpRequest | |
| public static SimpleHttpRequest | |
| public static SimpleHttpRequest | |
| public SimpleBody | |
| public byte[] | |
| public String | |
| public ContentType | |
| public void | |
| public void | |
| public void |
| body | back to summary |
|---|---|
| private SimpleBody body | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| SimpleHttpRequest | back to summary |
|---|---|
| public SimpleHttpRequest(final String method, final String path) | |
| SimpleHttpRequest | back to summary |
|---|---|
| public SimpleHttpRequest(final String method, final HttpHost host, final String path) | |
| SimpleHttpRequest | back to summary |
|---|---|
| public SimpleHttpRequest(final String method, final URI requestUri) | |
| SimpleHttpRequest | back to summary |
|---|---|
public SimpleHttpRequest(final Method method, final URI requestUri)
| |
| SimpleHttpRequest | back to summary |
|---|---|
public SimpleHttpRequest(final Method method, final HttpHost host, final String path)
| |
| SimpleHttpRequest | back to summary |
|---|---|
public SimpleHttpRequest(final String method, final String scheme, final URIAuthority authority, final String path)
| |
| copy | back to summary |
|---|---|
| public static SimpleHttpRequest copy(final HttpRequest original)
Deprecated
| |
| create | back to summary |
|---|---|
public static SimpleHttpRequest create(final String method, final String uri)
| |
| create | back to summary |
|---|---|
public static SimpleHttpRequest create(final String method, final URI uri)
| |
| create | back to summary |
|---|---|
public static SimpleHttpRequest create(final Method method, final URI uri)
| |
| create | back to summary |
|---|---|
public static SimpleHttpRequest create(final Method method, final HttpHost host, final String path)
| |
| create | back to summary |
|---|---|
public static SimpleHttpRequest create(final String method, final String scheme, final URIAuthority authority, final String path)
| |
| getBody | back to summary |
|---|---|
| public SimpleBody getBody() | |
| getBodyBytes | back to summary |
|---|---|
| public byte[] getBodyBytes() | |
| getBodyText | back to summary |
|---|---|
| public String getBodyText() | |
| getContentType | back to summary |
|---|---|
| public ContentType getContentType() | |
| setBody | back to summary |
|---|---|
| public void setBody(final SimpleBody body) | |
| setBody | back to summary |
|---|---|
| public void setBody(final byte[] bodyBytes, final ContentType contentType) | |
| setBody | back to summary |
|---|---|
| public void setBody(final String bodyText, final ContentType contentType) | |