Class Request
java.lang.Object
org.apache.hc.client5.http.fluent.Request
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.core5.util.Timeoutstatic final StringDeprecated.This attribute is no longer supported as a part of the public API.static final LocaleDeprecated.This attribute is no longer supported as a part of the public API.private org.apache.hc.core5.http.HttpHostprivate final org.apache.hc.core5.http.ClassicHttpRequestprivate org.apache.hc.core5.util.Timeoutstatic final TimeZoneDeprecated.This attribute is no longer supported as a part of the public API.private Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHeader(org.apache.hc.core5.http.Header header) / HTTP header operationsbody(org.apache.hc.core5.http.HttpEntity entity) / HTTP entity operationsbodyByteArray(byte[] b) bodyByteArray(byte[] b, int off, int len) bodyByteArray(byte[] b, int off, int len, org.apache.hc.core5.http.ContentType contentType) bodyByteArray(byte[] b, org.apache.hc.core5.http.ContentType contentType) bodyForm(org.apache.hc.core5.http.NameValuePair... formParams) bodyStream(InputStream inStream) bodyStream(InputStream inStream, org.apache.hc.core5.http.ContentType contentType) bodyString(String s, org.apache.hc.core5.http.ContentType contentType) connectTimeout(org.apache.hc.core5.util.Timeout timeout) / HTTP connection parameter operationsstatic Requeststatic Requeststatic Requeststatic Requeststatic Requestexecute()execute(CloseableHttpClient client) static Requeststatic Request(package private) org.apache.hc.core5.http.ClassicHttpRequeststatic Requeststatic Request(package private) org.apache.hc.core5.http.ClassicHttpResponseinternalExecute(CloseableHttpClient client, HttpClientContext localContext) static Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic RequestremoveHeader(org.apache.hc.core5.http.Header header) removeHeaders(String name) responseTimeout(org.apache.hc.core5.util.Timeout timeout) setCacheControl(String cacheControl) Deprecated.UsesetDate(Instant)setHeader(org.apache.hc.core5.http.Header header) setHeaders(org.apache.hc.core5.http.Header... headers) setIfModifiedSince(Instant instant) setIfModifiedSince(Date date) Deprecated.setIfUnmodifiedSince(Instant instant) setIfUnmodifiedSince(Date date) Deprecated.toString()static Requeststatic Requestversion(org.apache.hc.core5.http.HttpVersion version) / HTTP protocol parameter operationsviaProxy(org.apache.hc.core5.http.HttpHost proxy) / HTTP connection route operations
-
Field Details
-
DATE_FORMAT
Deprecated.This attribute is no longer supported as a part of the public API.- See Also:
-
DATE_LOCALE
Deprecated.This attribute is no longer supported as a part of the public API. -
TIME_ZONE
Deprecated.This attribute is no longer supported as a part of the public API. -
request
private final org.apache.hc.core5.http.ClassicHttpRequest request -
useExpectContinue
-
connectTimeout
private org.apache.hc.core5.util.Timeout connectTimeout -
responseTimeout
private org.apache.hc.core5.util.Timeout responseTimeout -
proxy
private org.apache.hc.core5.http.HttpHost proxy
-
-
Constructor Details
-
Request
Request(org.apache.hc.core5.http.ClassicHttpRequest request)
-
-
Method Details
-
create
-
create
-
create
-
get
-
get
-
head
-
head
-
post
-
post
-
patch
-
patch
-
put
-
put
-
trace
-
trace
-
delete
-
delete
-
options
-
options
-
internalExecute
org.apache.hc.core5.http.ClassicHttpResponse internalExecute(CloseableHttpClient client, HttpClientContext localContext) throws IOException - Throws:
IOException
-
execute
- Throws:
IOException
-
execute
- Throws:
IOException
-
addHeader
/ HTTP header operations -
setHeader
- Since:
- 4.3
-
addHeader
-
setHeader
-
removeHeader
-
removeHeaders
-
setHeaders
-
setCacheControl
-
getRequest
org.apache.hc.core5.http.ClassicHttpRequest getRequest() -
setDate
Deprecated.UsesetDate(Instant) -
setIfModifiedSince
Deprecated. -
setIfUnmodifiedSince
Deprecated. -
setDate
-
setIfModifiedSince
-
setIfUnmodifiedSince
-
version
/ HTTP protocol parameter operations -
useExpectContinue
-
userAgent
-
connectTimeout
/ HTTP connection parameter operations -
responseTimeout
-
viaProxy
/ HTTP connection route operations -
viaProxy
-
body
/ HTTP entity operations -
bodyForm
-
bodyForm
-
bodyForm
-
bodyString
-
bodyFile
-
bodyByteArray
-
bodyByteArray
- Since:
- 4.4
-
bodyByteArray
-
bodyByteArray
public Request bodyByteArray(byte[] b, int off, int len, org.apache.hc.core5.http.ContentType contentType) - Since:
- 4.4
-
bodyStream
-
bodyStream
-
toString
-