public class HarCaptureUtil
extends java.lang.Object
HarCaptureFilter and HttpConnectHarCaptureFilter.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HTTP_REASON_PHRASE_FOR_FAILURE
The HTTP status text/reason phrase in the
HarResponse for failed requests. |
static int |
HTTP_STATUS_CODE_FOR_FAILURE
The HTTP status code in the
HarResponse for failed requests. |
static java.lang.String |
HTTP_VERSION_STRING_FOR_FAILURE
The HTTP version string in the
HarResponse for failed requests. |
| Constructor and Description |
|---|
HarCaptureUtil() |
| Modifier and Type | Method and Description |
|---|---|
static HarResponse |
createHarResponseForFailure()
Creates a HarResponse object for failed requests.
|
static java.lang.String |
getConnectionFailedErrorMessage()
Returns the error message for the HAR response when the connection fails.
|
static java.lang.String |
getNoResponseReceivedErrorMessage()
Returns the error message for the HAR response when no response was received from the server (e.g.
|
static java.lang.String |
getResolutionFailedErrorMessage(java.lang.String hostAndPort)
Returns the error message for the HAR response when DNS resolution fails.
|
static java.lang.String |
getResponseTimedOutErrorMessage()
Returns the error message for the HAR response when the response from the server times out.
|
public static final java.lang.String HTTP_VERSION_STRING_FOR_FAILURE
HarResponse for failed requests.public static final int HTTP_STATUS_CODE_FOR_FAILURE
HarResponse for failed requests.public static final java.lang.String HTTP_REASON_PHRASE_FOR_FAILURE
HarResponse for failed requests.public static HarResponse createHarResponseForFailure()
public static java.lang.String getResolutionFailedErrorMessage(java.lang.String hostAndPort)
hostAndPort - the host and port of the address lookup that failedpublic static java.lang.String getConnectionFailedErrorMessage()
public static java.lang.String getResponseTimedOutErrorMessage()
public static java.lang.String getNoResponseReceivedErrorMessage()