Package org.apache.http.client.fluent
Class Request
java.lang.Object
org.apache.http.client.fluent.Request
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
body
(HttpEntity entity) bodyByteArray
(byte[] b) bodyByteArray
(byte[] b, int off, int len) bodyByteArray
(byte[] b, int off, int len, ContentType contentType) bodyByteArray
(byte[] b, ContentType contentType) bodyFile
(File file, ContentType contentType) bodyForm
(Iterable<? extends NameValuePair> formParams) bodyForm
(Iterable<? extends NameValuePair> formParams, Charset charset) bodyForm
(NameValuePair... formParams) bodyStream
(InputStream inStream) bodyStream
(InputStream inStream, ContentType contentType) bodyString
(String s, ContentType contentType) Deprecated.(4.3)connectTimeout
(int timeout) static Request
static Request
elementCharset
(String charset) Deprecated.(4.3)execute()
static Request
static Request
static Request
static Request
static Request
static Request
static Request
static Request
static Request
static Request
static Request
static Request
removeConfig
(String param) Deprecated.(4.3)removeHeader
(Header header) removeHeaders
(String name) setCacheControl
(String cacheControl) setHeaders
(Header... headers) setIfModifiedSince
(Date date) setIfUnmodifiedSince
(Date date) socketTimeout
(int timeout) staleConnectionCheck
(boolean b) Deprecated.(4.4)toString()
static Request
static Request
version
(HttpVersion version)
-
Field Details
-
DATE_FORMAT
- See Also:
-
DATE_LOCALE
-
TIME_ZONE
-
-
Method Details
-
Get
-
Get
-
Head
-
Head
-
Post
-
Post
-
Patch
-
Patch
-
Put
-
Put
-
Trace
-
Trace
-
Delete
-
Delete
-
Options
-
Options
-
execute
- Throws:
ClientProtocolException
IOException
-
abort
- Throws:
UnsupportedOperationException
-
addHeader
-
setHeader
- Since:
- 4.3
-
addHeader
-
setHeader
- Since:
- 4.3
-
removeHeader
-
removeHeaders
-
setHeaders
-
setCacheControl
-
setDate
-
setIfModifiedSince
-
setIfUnmodifiedSince
-
config
Deprecated.(4.3)This method has no effect. Do not use. -
removeConfig
Deprecated.(4.3)This method has no effect. Do not use. -
version
-
elementCharset
Deprecated.(4.3)This parameter can no longer be used at the request level.This method has no effect. Do not use.
-
useExpectContinue
-
userAgent
-
socketTimeout
-
connectTimeout
-
staleConnectionCheck
Deprecated.(4.4)This method has no effect. Do not use. -
viaProxy
-
viaProxy
- Since:
- 4.4
-
body
-
bodyForm
-
bodyForm
-
bodyForm
-
bodyString
-
bodyFile
-
bodyByteArray
-
bodyByteArray
- Since:
- 4.4
-
bodyByteArray
-
bodyByteArray
- Since:
- 4.4
-
bodyStream
-
bodyStream
-
toString
-