Package de.sstoehr.harreader.model
Class HarContent
java.lang.Object
de.sstoehr.harreader.model.HarContent
Information about the response's content.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetSize()getText()inthashCode()voidsetAdditionalField(String key, Object value) voidsetComment(String comment) voidsetCompression(Long compression) voidsetEncoding(String encoding) voidsetMimeType(String mimeType) voidvoid
-
Constructor Details
-
HarContent
public HarContent()
-
-
Method Details
-
getSize
- Returns:
- Length of returned content in bytes, null if not present.
-
setSize
-
getCompression
- Returns:
- Number of bytes saved by compression, null if not present.
-
setCompression
-
getMimeType
- Returns:
- MIME-Type of response, null if not present. May include the charset.
-
setMimeType
-
getText
- Returns:
- Response body loaded from server or cache, null if not present.
Binary content may be encoded using encoding specified by
getEncoding().
-
setText
-
getEncoding
- Returns:
- Encoding used for encoding response body, null if not present.
- See Also:
-
setEncoding
-
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()
-