public class WSSimulation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
badRequestResponseCode
sets the response code when the data is not valid;
|
java.lang.String |
consumes
Mediatype the service will consume.
|
HttpMethod |
httpMethod
The paths corresponding httpmethod
|
java.lang.String |
path
The path of this service
|
java.lang.String |
requestStructure
Validate the structure of the request.
|
double |
resilience
Resilience of this server (0 to 1); 1 meaning it never fails and 0 meaning it always will fail.
|
int |
resilienceFailureCode
failure code to pass back to the client when the server fails
|
java.lang.String |
response
Default Response
|
int |
successResponseCode
sets the successful response code to send back to the server
|
| Constructor and Description |
|---|
WSSimulation() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
public HttpMethod httpMethod
HttpMethodpublic java.lang.String path
public java.lang.String consumes
public java.lang.String response
public java.lang.String requestStructure
public int successResponseCode
public int badRequestResponseCode
public double resilience
public int resilienceFailureCode