Class HttpResponseStub

java.lang.Object
org.robolectric.shadows.httpclient.HttpResponseStub
All Implemented Interfaces:
org.apache.http.HttpMessage, org.apache.http.HttpResponse
Direct Known Subclasses:
TestHttpResponse

public class HttpResponseStub
extends Object
implements org.apache.http.HttpResponse
  • Constructor Details

  • Method Details

    • getStatusLine

      public org.apache.http.StatusLine getStatusLine()
      Specified by:
      getStatusLine in interface org.apache.http.HttpResponse
    • setStatusLine

      public void setStatusLine​(org.apache.http.StatusLine statusLine)
      Specified by:
      setStatusLine in interface org.apache.http.HttpResponse
    • setStatusLine

      public void setStatusLine​(org.apache.http.ProtocolVersion protocolVersion, int i)
      Specified by:
      setStatusLine in interface org.apache.http.HttpResponse
    • setStatusLine

      public void setStatusLine​(org.apache.http.ProtocolVersion protocolVersion, int i, String s)
      Specified by:
      setStatusLine in interface org.apache.http.HttpResponse
    • setStatusCode

      public void setStatusCode​(int i) throws IllegalStateException
      Specified by:
      setStatusCode in interface org.apache.http.HttpResponse
      Throws:
      IllegalStateException
    • setReasonPhrase

      public void setReasonPhrase​(String s) throws IllegalStateException
      Specified by:
      setReasonPhrase in interface org.apache.http.HttpResponse
      Throws:
      IllegalStateException
    • getEntity

      public org.apache.http.HttpEntity getEntity()
      Specified by:
      getEntity in interface org.apache.http.HttpResponse
    • setEntity

      public void setEntity​(org.apache.http.HttpEntity httpEntity)
      Specified by:
      setEntity in interface org.apache.http.HttpResponse
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface org.apache.http.HttpResponse
    • setLocale

      public void setLocale​(Locale locale)
      Specified by:
      setLocale in interface org.apache.http.HttpResponse
    • getProtocolVersion

      public org.apache.http.ProtocolVersion getProtocolVersion()
      Specified by:
      getProtocolVersion in interface org.apache.http.HttpMessage
    • containsHeader

      public boolean containsHeader​(String s)
      Specified by:
      containsHeader in interface org.apache.http.HttpMessage
    • getHeaders

      public org.apache.http.Header[] getHeaders​(String s)
      Specified by:
      getHeaders in interface org.apache.http.HttpMessage
    • getFirstHeader

      public org.apache.http.Header getFirstHeader​(String s)
      Specified by:
      getFirstHeader in interface org.apache.http.HttpMessage
    • getLastHeader

      public org.apache.http.Header getLastHeader​(String s)
      Specified by:
      getLastHeader in interface org.apache.http.HttpMessage
    • getAllHeaders

      public org.apache.http.Header[] getAllHeaders()
      Specified by:
      getAllHeaders in interface org.apache.http.HttpMessage
    • addHeader

      public void addHeader​(org.apache.http.Header header)
      Specified by:
      addHeader in interface org.apache.http.HttpMessage
    • addHeader

      public void addHeader​(String s, String s1)
      Specified by:
      addHeader in interface org.apache.http.HttpMessage
    • setHeader

      public void setHeader​(org.apache.http.Header header)
      Specified by:
      setHeader in interface org.apache.http.HttpMessage
    • setHeader

      public void setHeader​(String s, String s1)
      Specified by:
      setHeader in interface org.apache.http.HttpMessage
    • setHeaders

      public void setHeaders​(org.apache.http.Header[] headers)
      Specified by:
      setHeaders in interface org.apache.http.HttpMessage
    • removeHeader

      public void removeHeader​(org.apache.http.Header header)
      Specified by:
      removeHeader in interface org.apache.http.HttpMessage
    • removeHeaders

      public void removeHeaders​(String s)
      Specified by:
      removeHeaders in interface org.apache.http.HttpMessage
    • headerIterator

      public org.apache.http.HeaderIterator headerIterator()
      Specified by:
      headerIterator in interface org.apache.http.HttpMessage
    • headerIterator

      public org.apache.http.HeaderIterator headerIterator​(String s)
      Specified by:
      headerIterator in interface org.apache.http.HttpMessage
    • getParams

      public HttpParams getParams()
      Specified by:
      getParams in interface org.apache.http.HttpMessage
    • setParams

      public void setParams​(HttpParams httpParams)
      Specified by:
      setParams in interface org.apache.http.HttpMessage