Package de.sstoehr.harreader.model
Class HarRequest
java.lang.Object
de.sstoehr.harreader.model.HarRequest
Information about a performed request.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetUrl()inthashCode()voidsetAdditionalField(String key, Object value) voidsetBodySize(Long bodySize) voidsetComment(String comment) voidsetCookies(List<HarCookie> cookies) voidsetHeaders(List<HarHeader> headers) voidsetHeadersSize(Long headersSize) voidsetHttpVersion(String httpVersion) voidsetMethod(HttpMethod method) voidsetPostData(HarPostData postData) voidsetQueryString(List<HarQueryParam> queryString) void
-
Field Details
-
DEFAULT_SIZE
-
-
Constructor Details
-
HarRequest
public HarRequest()
-
-
Method Details
-
getMethod
- Returns:
- Request method, null if not present.
-
setMethod
-
getUrl
- Returns:
- Absolute URL of the request (fragments are not included), null if not present.
-
setUrl
-
getHttpVersion
- Returns:
- Request HTTP Version, null if not present.
-
setHttpVersion
-
getCookies
- Returns:
- List of cookie objects.
-
setCookies
-
getHeaders
- Returns:
- List of header objects.
-
setHeaders
-
getQueryString
- Returns:
- List of query parameter objects.
-
setQueryString
-
getPostData
- Returns:
- Posted data info.
-
setPostData
-
getHeadersSize
- Returns:
- Total number of bytes from the start of the HTTP request message until (and including) the double
CRLF before the body.
DEFAULT_SIZEif the info is not available.
-
setHeadersSize
-
getBodySize
- Returns:
- Size of the request body (POST data payload) in bytes.
DEFAULT_SIZEif the info is not available.
-
setBodySize
-
getComment
- Returns:
- Comment provided by the user or application, null if not present.
-
setComment
-
getAdditional
- Returns:
- Map with additional keys, which are not officially supported by the HAR specification
-
setAdditionalField
-
equals
-
hashCode
public int hashCode()
-