Package org.mockserver.serialization.har
Class HarResponse
- java.lang.Object
-
- org.mockserver.serialization.har.HarResponse
-
public class HarResponse extends Object
-
-
Constructor Summary
Constructors Constructor Description HarResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBodySize()HarContentgetContent()List<HarCookie>getCookies()List<HarNameValuePair>getHeaders()longgetHeadersSize()StringgetHttpVersion()StringgetRedirectURL()intgetStatus()StringgetStatusText()HarResponsewithBodySize(long bodySize)HarResponsewithContent(HarContent content)HarResponsewithCookies(List<HarCookie> cookies)HarResponsewithHeaders(List<HarNameValuePair> headers)HarResponsewithHeadersSize(long headersSize)HarResponsewithHttpVersion(String httpVersion)HarResponsewithRedirectURL(String redirectURL)HarResponsewithStatus(int status)HarResponsewithStatusText(String statusText)
-
-
-
Method Detail
-
getStatus
public int getStatus()
-
withStatus
public HarResponse withStatus(int status)
-
getStatusText
public String getStatusText()
-
withStatusText
public HarResponse withStatusText(String statusText)
-
getHttpVersion
public String getHttpVersion()
-
withHttpVersion
public HarResponse withHttpVersion(String httpVersion)
-
withCookies
public HarResponse withCookies(List<HarCookie> cookies)
-
getHeaders
public List<HarNameValuePair> getHeaders()
-
withHeaders
public HarResponse withHeaders(List<HarNameValuePair> headers)
-
getContent
public HarContent getContent()
-
withContent
public HarResponse withContent(HarContent content)
-
getRedirectURL
public String getRedirectURL()
-
withRedirectURL
public HarResponse withRedirectURL(String redirectURL)
-
getHeadersSize
public long getHeadersSize()
-
withHeadersSize
public HarResponse withHeadersSize(long headersSize)
-
getBodySize
public long getBodySize()
-
withBodySize
public HarResponse withBodySize(long bodySize)
-
-