public class BasicHttpResponseValidator extends java.lang.Object implements HttpServiceProcessor
| Modifier | Constructor and Description |
|---|---|
protected |
BasicHttpResponseValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecute(HttpService httpService,
HttpResponseWrapper httpResponse)
Validate the response generated by the server.
|
void |
beforeExecute(HttpService httpService) |
static BasicHttpResponseValidator |
get() |
protected void |
onClientError(HttpResponseWrapper httpResponse,
java.lang.String message) |
void |
onInit(HttpService httpService)
The logic to be executed when this processor is added to the HttpService.
|
protected void |
onServerError(HttpResponseWrapper httpResponse,
java.lang.String message) |
protected void |
onSuccess(HttpResponseWrapper httpResponse,
java.lang.String message) |
public static BasicHttpResponseValidator get()
public void onInit(HttpService httpService)
HttpServiceProcessoronInit in interface HttpServiceProcessorhttpService - The HttpService where the processor is executedpublic void beforeExecute(HttpService httpService)
beforeExecute in interface HttpServiceProcessorpublic void afterExecute(HttpService httpService, HttpResponseWrapper httpResponse)
afterExecute in interface HttpServiceProcessorprotected void onSuccess(HttpResponseWrapper httpResponse, java.lang.String message)
protected void onClientError(HttpResponseWrapper httpResponse, java.lang.String message)
protected void onServerError(HttpResponseWrapper httpResponse, java.lang.String message)