public static interface Request.Builder<T extends Request> extends Common<Request.Builder<T>>, Buildable<T>
| Modifier and Type | Method and Description |
|---|---|
ResponsePromise |
delete()
Executes this request through the
HttpClient service as a DELETE operation. |
ResponsePromise |
execute(Request.Method method)
Executes this request through the
HttpClient service using the given HTTP method. |
ResponsePromise |
get()
Executes this request through the
HttpClient service as a GET operation. |
ResponsePromise |
head()
Executes this request through the
HttpClient service as a HEAD operation. |
ResponsePromise |
options()
Executes this request through the
HttpClient service as a OPTIONS operation. |
ResponsePromise |
post()
Executes this request through the
HttpClient service as a POST operation. |
ResponsePromise |
put()
Executes this request through the
HttpClient service as a PUT operation. |
Request.Builder<T> |
setAccept(java.lang.String accept)
Sets the Accept header for the request.
|
Request.Builder<T> |
setAttribute(java.lang.String name,
java.lang.String value)
Sets an attribute on the request.
|
Request.Builder<T> |
setAttributes(java.util.Map<java.lang.String,java.lang.String> properties)
Sets attributes on the request.
|
Request.Builder<T> |
setCacheDisabled()
Bypasses the cache for this request
|
Request.Builder<T> |
setEntity(EntityBuilder entityBuilder)
Sets the entity and any associated headers from an entity builder.
|
Request.Builder<T> |
setHeader(java.lang.String name,
java.lang.String value)
Sets an HTTP header on this object.
|
Request.Builder<T> |
setUri(java.net.URI uri)
Sets this request's URI.
|
ResponsePromise |
trace()
Executes this request through the
HttpClient service as a TRACE operation. |
setContentCharset, setContentType, setEntity, setEntityStream, setEntityStream, setHeadersRequest.Builder<T> setUri(java.net.URI uri)
uri - The URIRequest.Builder<T> setAccept(java.lang.String accept)
accept - An accept header expression containing media types, ranges, and/or quality factorsRequest.Builder<T> setCacheDisabled()
Request.Builder<T> setAttribute(java.lang.String name, java.lang.String value)
name - The attribute namevalue - The attribute valueRequest.Builder<T> setAttributes(java.util.Map<java.lang.String,java.lang.String> properties)
properties - A map of attributesRequest.Builder<T> setEntity(EntityBuilder entityBuilder)
entityBuilder - An entity builderRequest.Builder<T> setHeader(java.lang.String name, java.lang.String value)
CommonsetHeader in interface Common<Request.Builder<T extends Request>>name - The name of the header to be setvalue - The value of the header to be setResponsePromise get()
HttpClient service as a GET operation.
The request SHOULD NOT contain an entity for the GET operation.ResponsePromise post()
HttpClient service as a POST operation.
The request SHOULD contain an entity for the POST operation.ResponsePromise put()
HttpClient service as a PUT operation.
The request SHOULD contain an entity for the PUT operation.ResponsePromise delete()
HttpClient service as a DELETE operation.
The request SHOULD NOT contain an entity for the DELETE operation.ResponsePromise options()
HttpClient service as a OPTIONS operation.
The request MAY contain an entity for the OPTIONS operation.ResponsePromise head()
HttpClient service as a HEAD operation.
The request SHOULD NOT contain an entity for the HEAD operation.ResponsePromise trace()
HttpClient service as a TRACE operation.
The request SHOULD contain an entity for the TRACE operation.ResponsePromise execute(Request.Method method)
HttpClient service using the given HTTP method.method - the HTTP method to use.Copyright © 2012-2013 Atlassian. All Rights Reserved.