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 Details

    • setContentType

      public DefaultResponse.DefaultResponseBuilder setContentType(String contentType)
      Specified by:
      setContentType in interface com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
      Specified by:
      setContentType in interface com.atlassian.httpclient.api.Response.Builder
    • setContentCharset

      public DefaultResponse.DefaultResponseBuilder setContentCharset(String contentCharset)
      Specified by:
      setContentCharset in interface com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
      Specified by:
      setContentCharset in interface com.atlassian.httpclient.api.Response.Builder
    • setHeaders

      Specified by:
      setHeaders in interface com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
      Specified by:
      setHeaders in interface com.atlassian.httpclient.api.Response.Builder
    • setHeader

      public DefaultResponse.DefaultResponseBuilder setHeader(String name, String value)
      Specified by:
      setHeader in interface com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
      Specified by:
      setHeader in interface com.atlassian.httpclient.api.Response.Builder
    • setEntity

      Specified by:
      setEntity in interface com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
      Specified by:
      setEntity in interface com.atlassian.httpclient.api.Response.Builder
    • setEntityStream

      public DefaultResponse.DefaultResponseBuilder setEntityStream(InputStream entityStream, String encoding)
      Specified by:
      setEntityStream in interface com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
      Specified by:
      setEntityStream in interface com.atlassian.httpclient.api.Response.Builder
    • setEntityStream

      public DefaultResponse.DefaultResponseBuilder setEntityStream(InputStream entityStream)
      Specified by:
      setEntityStream in interface com.atlassian.httpclient.api.Common<com.atlassian.httpclient.api.Response.Builder>
      Specified by:
      setEntityStream in interface com.atlassian.httpclient.api.Response.Builder
    • setStatusText

      public DefaultResponse.DefaultResponseBuilder setStatusText(String statusText)
      Specified by:
      setStatusText in interface com.atlassian.httpclient.api.Response.Builder
    • setStatusCode

      public DefaultResponse.DefaultResponseBuilder setStatusCode(int statusCode)
      Specified by:
      setStatusCode in interface com.atlassian.httpclient.api.Response.Builder
    • setMaxEntitySize

      public DefaultResponse.DefaultResponseBuilder setMaxEntitySize(long maxEntitySize)
    • build

      public DefaultResponse build()
      Specified by:
      build in interface com.atlassian.httpclient.api.Buildable<com.atlassian.httpclient.api.Response>