Klasse HarRequest

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

public class HarRequest extends Object
Information about a performed request.
Siehe auch:
  • Felddetails

    • DEFAULT_SIZE

      protected static final Long DEFAULT_SIZE
  • Konstruktordetails

    • HarRequest

      public HarRequest()
  • Methodendetails

    • getMethod

      public HttpMethod getMethod()
      Gibt zurück:
      Request method, null if not present.
    • setMethod

      public void setMethod(HttpMethod method)
    • getUrl

      public String getUrl()
      Gibt zurück:
      Absolute URL of the request (fragments are not included), null if not present.
    • setUrl

      public void setUrl(String url)
    • getHttpVersion

      public String getHttpVersion()
      Gibt zurück:
      Request 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)
    • getQueryString

      public List<HarQueryParam> getQueryString()
      Gibt zurück:
      List of query parameter objects.
    • setQueryString

      public void setQueryString(List<HarQueryParam> queryString)
    • getPostData

      public HarPostData getPostData()
      Gibt zurück:
      Posted data info.
    • setPostData

      public void setPostData(HarPostData postData)
    • getHeadersSize

      public Long getHeadersSize()
      Gibt zurück:
      Total number of bytes from the start of the HTTP request 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 request body (POST data payload) in bytes. 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