Class 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 Detail

      • 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

        public DefaultResponse.DefaultResponseBuilder setHeaders​(Map<String,​String> headers)
        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

        public DefaultResponse.DefaultResponseBuilder setEntity​(String entity)
        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
      • build

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