Class CommonBuilder<T>
- java.lang.Object
-
- com.atlassian.httpclient.apache.httpcomponents.CommonBuilder<T>
-
- All Implemented Interfaces:
com.atlassian.httpclient.api.Common<CommonBuilder<T>>
public class CommonBuilder<T> extends Object implements com.atlassian.httpclient.api.Common<CommonBuilder<T>>
-
-
Constructor Summary
Constructors Constructor Description CommonBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getEntityStream()
Headers
getHeaders()
CommonBuilder<T>
setContentCharset(String contentCharset)
CommonBuilder<T>
setContentType(String contentType)
CommonBuilder<T>
setEntity(String entity)
CommonBuilder<T>
setEntityStream(InputStream entityStream)
CommonBuilder<T>
setEntityStream(InputStream entityStream, String charset)
CommonBuilder<T>
setHeader(String name, String value)
CommonBuilder<T>
setHeaders(Map<String,String> headers)
-
-
-
Method Detail
-
setHeader
public CommonBuilder<T> setHeader(String name, String value)
- Specified by:
setHeader
in interfacecom.atlassian.httpclient.api.Common<T>
-
setHeaders
public CommonBuilder<T> setHeaders(Map<String,String> headers)
- Specified by:
setHeaders
in interfacecom.atlassian.httpclient.api.Common<T>
-
setEntity
public CommonBuilder<T> setEntity(String entity)
- Specified by:
setEntity
in interfacecom.atlassian.httpclient.api.Common<T>
-
setEntityStream
public CommonBuilder<T> setEntityStream(InputStream entityStream)
- Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Common<T>
-
setContentCharset
public CommonBuilder<T> setContentCharset(String contentCharset)
- Specified by:
setContentCharset
in interfacecom.atlassian.httpclient.api.Common<T>
-
setContentType
public CommonBuilder<T> setContentType(String contentType)
- Specified by:
setContentType
in interfacecom.atlassian.httpclient.api.Common<T>
-
setEntityStream
public CommonBuilder<T> setEntityStream(InputStream entityStream, String charset)
- Specified by:
setEntityStream
in interfacecom.atlassian.httpclient.api.Common<T>
-
getEntityStream
public InputStream getEntityStream()
-
getHeaders
public Headers getHeaders()
-
-