Class DefaultResponse.DefaultResponseBuilder
java.lang.Object
com.atlassian.httpclient.apache.httpcomponents.DefaultResponse.DefaultResponseBuilder
- All Implemented Interfaces:
com.atlassian.httpclient.api.Buildable<com.atlassian.httpclient.api.Response>
,com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
,com.atlassian.httpclient.api.Response.Builder
- Enclosing class:
- DefaultResponse
public static class DefaultResponse.DefaultResponseBuilder
extends Object
implements com.atlassian.httpclient.api.Response.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setContentCharset
(String contentCharset) setContentType
(String contentType) setEntityStream
(InputStream entityStream) setEntityStream
(InputStream entityStream, String encoding) setHeaders
(Map<String, String> headers) setMaxEntitySize
(long maxEntitySize) setStatusCode
(int statusCode) setStatusText
(String statusText)
-
Method Details
-
setContentType
- Specified by:
setContentType
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
- Specified by:
setContentType
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setContentCharset
- Specified by:
setContentCharset
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
- Specified by:
setContentCharset
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setHeaders
- Specified by:
setHeaders
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
- Specified by:
setHeaders
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setHeader
- Specified by:
setHeader
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
- Specified by:
setHeader
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setEntity
- Specified by:
setEntity
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
- Specified by:
setEntity
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setEntityStream
public DefaultResponse.DefaultResponseBuilder setEntityStream(InputStream entityStream, String encoding) - Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
- Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setEntityStream
- Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
- Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setStatusText
- Specified by:
setStatusText
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setStatusCode
- Specified by:
setStatusCode
in interfacecom.atlassian.httpclient.api.Response.Builder
-
setMaxEntitySize
-
build
- Specified by:
build
in interfacecom.atlassian.httpclient.api.Buildable<com.atlassian.httpclient.api.Response>
-