public class ForcedErrorResponse extends Object
Constructor and Description |
---|
ForcedErrorResponse(String info)
Constructor
|
Modifier and Type | Method and Description |
---|---|
URI |
getResponseBody() |
int |
getStatus()
Returns the error response status that should be returned for the current
response.
|
String |
toString() |
public ForcedErrorResponse(String info) throws URISyntaxException
info
- String of the form <status> <count> <skip> <response>
where <status>
is required and is a number specifying
the HTTP response code that should be returned for the next request.
<count>
is optional and specifies
the number of times that the specified response status should be returned. If it
is not specified, then the response status will be returned only once.
skip
is optional and specifies the number of requests to process normally
before returning the specified response status.
<response text>
is optional and specifies the text that should be returned
in the response body. If it is not specified, then no response text is include.URISyntaxException
NumberFormatException
IllegalArgumentException
public int getStatus()
public URI getResponseBody()
Copyright © 2011-2015 IBM. All Rights Reserved.