Class Request
java.lang.Object
org.apache.hc.client5.http.fluent.Request
HTTP request used by the fluent facade.
- Since:
- 4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.core5.util.Timeoutstatic final Stringstatic final Localeprivate SimpleDateFormatprivate org.apache.hc.core5.http.HttpHostprivate final org.apache.hc.core5.http.ClassicHttpRequestprivate org.apache.hc.core5.util.Timeoutstatic final TimeZoneprivate Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHeader(org.apache.hc.core5.http.Header header) body(org.apache.hc.core5.http.HttpEntity entity) bodyByteArray(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) static Requeststatic Requeststatic Requeststatic Requeststatic Requestexecute()execute(CloseableHttpClient client) static Requeststatic Requestprivate SimpleDateFormat(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) setHeader(org.apache.hc.core5.http.Header header) setHeaders(org.apache.hc.core5.http.Header... headers) setIfModifiedSince(Date date) setIfUnmodifiedSince(Date date) toString()static Requeststatic Requestversion(org.apache.hc.core5.http.HttpVersion version) viaProxy(org.apache.hc.core5.http.HttpHost proxy)
-
Field Details
-
DATE_FORMAT
- See Also:
-
DATE_LOCALE
-
TIME_ZONE
-
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 -
dateFormatter
-
-
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
-
setHeader
- Since:
- 4.3
-
addHeader
-
setHeader
- Since:
- 4.3
-
removeHeader
-
removeHeaders
-
setHeaders
-
setCacheControl
-
getDateFormat
-
getRequest
org.apache.hc.core5.http.ClassicHttpRequest getRequest() -
setDate
-
setIfModifiedSince
-
setIfUnmodifiedSince
-
version
-
useExpectContinue
-
userAgent
-
connectTimeout
-
responseTimeout
-
viaProxy
-
viaProxy
- Since:
- 4.4
-
body
-
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
-