Package de.sstoehr.harreader.model
Klasse HarResponse
java.lang.Object
de.sstoehr.harreader.model.HarResponse
Information about a performed response.
- Siehe auch:
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanintinthashCode()voidsetAdditionalField(String key, Object value) voidsetBodySize(Long bodySize) voidsetComment(String comment) voidsetContent(HarContent content) voidsetCookies(List<HarCookie> cookies) voidsetHeaders(List<HarHeader> headers) voidsetHeadersSize(Long headersSize) voidsetHttpVersion(String httpVersion) voidsetRedirectURL(String redirectURL) voidsetStatus(int status) voidsetStatusText(String statusText)
-
Felddetails
-
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
- Gibt zurück:
- Response status description, null if not present.
-
setStatusText
-
getHttpVersion
- Gibt zurück:
- Response HTTP Version, null if not present.
-
setHttpVersion
-
getCookies
- Gibt zurück:
- List of cookie objects.
-
setCookies
-
getHeaders
- Gibt zurück:
- List of header objects.
-
setHeaders
-
getContent
- Gibt zurück:
- Details about the response body.
-
setContent
-
getRedirectURL
- Gibt zurück:
- Redirection target URL from the Location response header, null if not present.
-
setRedirectURL
-
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_SIZEif the info is not available.
-
setHeadersSize
-
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_SIZEif the info is not available.
-
setBodySize
-
getComment
- Gibt zurück:
- Comment provided by the user or application, null if not present.
-
setComment
-
getAdditional
- Gibt zurück:
- Map with additional keys, which are not officially supported by the HAR specification
-
setAdditionalField
-
equals
-
hashCode
public int hashCode()
-