Package de.sstoehr.harreader.model
Class HarRequest
java.lang.Object
de.sstoehr.harreader.model.HarRequest
public class HarRequest extends Object
Information about a performed request.
- See Also:
- specification
-
Field Summary
Fields Modifier and Type Field Description protected static LongDEFAULT_SIZE -
Constructor Summary
Constructors Constructor Description HarRequest() -
Method Summary
Modifier and Type Method Description booleanequals(Object o)Map<String,Object>getAdditional()LonggetBodySize()StringgetComment()List<HarCookie>getCookies()List<HarHeader>getHeaders()LonggetHeadersSize()StringgetHttpVersion()HttpMethodgetMethod()HarPostDatagetPostData()List<HarQueryParam>getQueryString()StringgetUrl()inthashCode()voidsetAdditionalField(String name, 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)voidsetUrl(String url)
-
Field Details
-
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
-
setAdditionalField
-
equals
-
hashCode
public int hashCode()
-