Class DefaultRequest.DefaultRequestBuilder
- java.lang.Object
-
- com.atlassian.httpclient.apache.httpcomponents.DefaultRequest.DefaultRequestBuilder
-
- All Implemented Interfaces:
com.atlassian.httpclient.api.Buildable<com.atlassian.httpclient.api.Request>
,com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
,com.atlassian.httpclient.api.Request.Builder
- Enclosing class:
- DefaultRequest
public static class DefaultRequest.DefaultRequestBuilder extends Object implements com.atlassian.httpclient.api.Request.Builder
-
-
Constructor Summary
Constructors Constructor Description DefaultRequestBuilder(com.atlassian.httpclient.api.HttpClient httpClient)
-
Method Summary
-
-
-
Method Detail
-
setUri
public DefaultRequest.DefaultRequestBuilder setUri(URI uri)
- Specified by:
setUri
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setAccept
public DefaultRequest.DefaultRequestBuilder setAccept(String accept)
- Specified by:
setAccept
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setCacheDisabled
public DefaultRequest.DefaultRequestBuilder setCacheDisabled()
- Specified by:
setCacheDisabled
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setAttribute
public DefaultRequest.DefaultRequestBuilder setAttribute(String name, String value)
- Specified by:
setAttribute
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setAttributes
public DefaultRequest.DefaultRequestBuilder setAttributes(Map<String,String> properties)
- Specified by:
setAttributes
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setEntity
public DefaultRequest.DefaultRequestBuilder setEntity(com.atlassian.httpclient.api.EntityBuilder entityBuilder)
- Specified by:
setEntity
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setHeader
public DefaultRequest.DefaultRequestBuilder setHeader(String name, String value)
- Specified by:
setHeader
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
- Specified by:
setHeader
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setHeaders
public DefaultRequest.DefaultRequestBuilder setHeaders(Map<String,String> headers)
- Specified by:
setHeaders
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
-
setEntity
public DefaultRequest.DefaultRequestBuilder setEntity(String entity)
- Specified by:
setEntity
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
-
setEntityStream
public DefaultRequest.DefaultRequestBuilder setEntityStream(InputStream entityStream)
- Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
-
setContentCharset
public DefaultRequest.DefaultRequestBuilder setContentCharset(String contentCharset)
- Specified by:
setContentCharset
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
-
setContentType
public DefaultRequest.DefaultRequestBuilder setContentType(String contentType)
- Specified by:
setContentType
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
-
setEntityStream
public DefaultRequest.DefaultRequestBuilder setEntityStream(InputStream entityStream, String charset)
- Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Request.Builder>
-
setContentLength
public DefaultRequest.DefaultRequestBuilder setContentLength(long contentLength)
- Specified by:
setContentLength
in interfacecom.atlassian.httpclient.api.Request.Builder
-
build
public DefaultRequest build()
- Specified by:
build
in interfacecom.atlassian.httpclient.api.Buildable<com.atlassian.httpclient.api.Request>
-
get
public com.atlassian.httpclient.api.ResponsePromise get()
- Specified by:
get
in interfacecom.atlassian.httpclient.api.Request.Builder
-
post
public com.atlassian.httpclient.api.ResponsePromise post()
- Specified by:
post
in interfacecom.atlassian.httpclient.api.Request.Builder
-
put
public com.atlassian.httpclient.api.ResponsePromise put()
- Specified by:
put
in interfacecom.atlassian.httpclient.api.Request.Builder
-
delete
public com.atlassian.httpclient.api.ResponsePromise delete()
- Specified by:
delete
in interfacecom.atlassian.httpclient.api.Request.Builder
-
options
public com.atlassian.httpclient.api.ResponsePromise options()
- Specified by:
options
in interfacecom.atlassian.httpclient.api.Request.Builder
-
head
public com.atlassian.httpclient.api.ResponsePromise head()
- Specified by:
head
in interfacecom.atlassian.httpclient.api.Request.Builder
-
trace
public com.atlassian.httpclient.api.ResponsePromise trace()
- Specified by:
trace
in interfacecom.atlassian.httpclient.api.Request.Builder
-
execute
public com.atlassian.httpclient.api.ResponsePromise execute(com.atlassian.httpclient.api.Request.Method method)
- Specified by:
execute
in interfacecom.atlassian.httpclient.api.Request.Builder
-
setMethod
public void setMethod(com.atlassian.httpclient.api.Request.Method method)
-
-