Package org.apache.http.client.fluent
Class Request
java.lang.Object
org.apache.http.client.fluent.Request
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()addHeader(org.apache.http.Header header) body(org.apache.http.HttpEntity entity) bodyByteArray(byte[] b) bodyByteArray(byte[] b, int off, int len) bodyByteArray(byte[] b, int off, int len, org.apache.http.entity.ContentType contentType) bodyByteArray(byte[] b, org.apache.http.entity.ContentType contentType) bodyForm(org.apache.http.NameValuePair... formParams) bodyStream(InputStream inStream) bodyStream(InputStream inStream, org.apache.http.entity.ContentType contentType) bodyString(String s, org.apache.http.entity.ContentType contentType) Deprecated.(4.3)connectTimeout(int timeout) static Requeststatic RequestelementCharset(String charset) Deprecated.(4.3)execute()static Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic RequestremoveConfig(String param) Deprecated.(4.3)removeHeader(org.apache.http.Header header) removeHeaders(String name) setCacheControl(String cacheControl) setHeader(org.apache.http.Header header) setHeaders(org.apache.http.Header... headers) setIfModifiedSince(Date date) setIfUnmodifiedSince(Date date) socketTimeout(int timeout) staleConnectionCheck(boolean b) Deprecated.(4.4)toString()static Requeststatic Requestversion(org.apache.http.HttpVersion version) viaProxy(org.apache.http.HttpHost proxy)
-
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:
org.apache.http.client.ClientProtocolExceptionIOException
-
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
public Request bodyByteArray(byte[] b, int off, int len, org.apache.http.entity.ContentType contentType) - Since:
- 4.4
-
bodyStream
-
bodyStream
-
toString
-