Package de.sstoehr.harreader.model
Class HarContent
java.lang.Object
de.sstoehr.harreader.model.HarContent
public class HarContent extends Object
Information about the response's content.
- See Also:
- specification
-
Constructor Summary
Constructors Constructor Description HarContent() -
Method Summary
Modifier and Type Method Description booleanequals(Object o)StringgetComment()LonggetCompression()StringgetEncoding()StringgetMimeType()LonggetSize()StringgetText()inthashCode()voidsetComment(String comment)voidsetCompression(Long compression)voidsetEncoding(String encoding)voidsetMimeType(String mimeType)voidsetSize(Long size)voidsetText(String text)
-
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:
getText()
-
setEncoding
-
getComment
- Returns:
- Comment provided by the user or application, null if not present.
-
setComment
-
equals
-
hashCode
public int hashCode()
-