Klasse HarResponse

java.lang.Object
de.sstoehr.harreader.model.HarResponse

public class HarResponse extends Object
Information about a performed response.
Siehe auch:
  • Felddetails

    • DEFAULT_SIZE

      protected static final Long DEFAULT_SIZE
  • Konstruktordetails

    • HarResponse

      public HarResponse()
  • Methodendetails

    • getStatus

      public int getStatus()
      Gibt zurück:
      Response status, null if not present.
    • setStatus

      public void setStatus(int status)
    • getStatusText

      public String getStatusText()
      Gibt zurück:
      Response status description, null if not present.
    • setStatusText

      public void setStatusText(String statusText)
    • getHttpVersion

      public String getHttpVersion()
      Gibt zurück:
      Response HTTP Version, null if not present.
    • setHttpVersion

      public void setHttpVersion(String httpVersion)
    • getCookies

      public List<HarCookie> getCookies()
      Gibt zurück:
      List of cookie objects.
    • setCookies

      public void setCookies(List<HarCookie> cookies)
    • getHeaders

      public List<HarHeader> getHeaders()
      Gibt zurück:
      List of header objects.
    • setHeaders

      public void setHeaders(List<HarHeader> headers)
    • getContent

      public HarContent getContent()
      Gibt zurück:
      Details about the response body.
    • setContent

      public void setContent(HarContent content)
    • getRedirectURL

      public String getRedirectURL()
      Gibt zurück:
      Redirection target URL from the Location response header, null if not present.
    • setRedirectURL

      public void setRedirectURL(String redirectURL)
    • getHeadersSize

      public Long getHeadersSize()
      Gibt zurück:
      Total number of bytes from the start of the HTTP response message until (and including) the double CRLF before the body. DEFAULT_SIZE if the info is not available.
    • setHeadersSize

      public void setHeadersSize(Long headersSize)
    • getBodySize

      public Long getBodySize()
      Gibt zurück:
      Size of the received response body in bytes. Set to zero in case of responses coming from the cache (304). DEFAULT_SIZE if the info is not available.
    • setBodySize

      public void setBodySize(Long bodySize)
    • getComment

      public String getComment()
      Gibt zurück:
      Comment provided by the user or application, null if not present.
    • setComment

      public void setComment(String comment)
    • getAdditional

      public Map<String,Object> getAdditional()
      Gibt zurück:
      Map with additional keys, which are not officially supported by the HAR specification
    • setAdditionalField

      public void setAdditionalField(String key, Object value)
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object