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 Details

    • CommonBuilder

      public CommonBuilder()
  • Method Details

    • setHeader

      public CommonBuilder<T> setHeader(String name, String value)
      Specified by:
      setHeader in interface com.atlassian.httpclient.api.Common<T>
    • setHeaders

      public CommonBuilder<T> setHeaders(Map<String,String> headers)
      Specified by:
      setHeaders in interface com.atlassian.httpclient.api.Common<T>
    • setEntity

      public CommonBuilder<T> setEntity(String entity)
      Specified by:
      setEntity in interface com.atlassian.httpclient.api.Common<T>
    • setEntityStream

      public CommonBuilder<T> setEntityStream(InputStream entityStream)
      Specified by:
      setEntityStream in interface com.atlassian.httpclient.api.Common<T>
    • setContentCharset

      public CommonBuilder<T> setContentCharset(String contentCharset)
      Specified by:
      setContentCharset in interface com.atlassian.httpclient.api.Common<T>
    • setContentType

      public CommonBuilder<T> setContentType(String contentType)
      Specified by:
      setContentType in interface com.atlassian.httpclient.api.Common<T>
    • setEntityStream

      public CommonBuilder<T> setEntityStream(InputStream entityStream, String charset)
      Specified by:
      setEntityStream in interface com.atlassian.httpclient.api.Common<T>
    • getEntityStream

      public InputStream getEntityStream()
    • getHeaders

      public Headers getHeaders()