Class DefaultRequest

java.lang.Object
com.atlassian.httpclient.apache.httpcomponents.DefaultRequest
All Implemented Interfaces:
com.atlassian.httpclient.api.Message, com.atlassian.httpclient.api.Request

public class DefaultRequest extends Object implements com.atlassian.httpclient.api.Request
  • Method Details

    • builder

      public static DefaultRequest.DefaultRequestBuilder builder(com.atlassian.httpclient.api.HttpClient httpClient)
    • getMethod

      public com.atlassian.httpclient.api.Request.Method getMethod()
      Specified by:
      getMethod in interface com.atlassian.httpclient.api.Request
    • getUri

      public URI getUri()
      Specified by:
      getUri in interface com.atlassian.httpclient.api.Request
    • getAccept

      public String getAccept()
      Specified by:
      getAccept in interface com.atlassian.httpclient.api.Request
    • getAttribute

      public String getAttribute(String name)
      Specified by:
      getAttribute in interface com.atlassian.httpclient.api.Request
    • getAttributes

      public Map<String,String> getAttributes()
      Specified by:
      getAttributes in interface com.atlassian.httpclient.api.Request
    • getContentLength

      public io.atlassian.fugue.Option<Long> getContentLength()
      Specified by:
      getContentLength in interface com.atlassian.httpclient.api.Message
    • isCacheDisabled

      public boolean isCacheDisabled()
      Specified by:
      isCacheDisabled in interface com.atlassian.httpclient.api.Request
    • validate

      public com.atlassian.httpclient.api.Request validate()
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface com.atlassian.httpclient.api.Message
    • getContentCharset

      public String getContentCharset()
      Specified by:
      getContentCharset in interface com.atlassian.httpclient.api.Message
    • getEntityStream

      public InputStream getEntityStream() throws IllegalStateException
      Specified by:
      getEntityStream in interface com.atlassian.httpclient.api.Message
      Throws:
      IllegalStateException
    • getEntity

      Specified by:
      getEntity in interface com.atlassian.httpclient.api.Message
      Throws:
      IllegalStateException
      IllegalArgumentException
    • hasEntity

      public boolean hasEntity()
      Specified by:
      hasEntity in interface com.atlassian.httpclient.api.Message
    • hasReadEntity

      public boolean hasReadEntity()
      Specified by:
      hasReadEntity in interface com.atlassian.httpclient.api.Message
    • getHeaders

      public Map<String,String> getHeaders()
      Specified by:
      getHeaders in interface com.atlassian.httpclient.api.Message
    • getHeader

      public String getHeader(String name)
      Specified by:
      getHeader in interface com.atlassian.httpclient.api.Message