public static enum HttpResponseHandler.Strategy extends Enum<HttpResponseHandler.Strategy>
WebServiceResponse.| Enum Constant and Description |
|---|
GET_RESPONSE
A function that returns the HTTP response body as string, given a
WebServiceResponse object returned by the http() function |
GET_STATUS_CODE
A function that returns the HTTP status code, given a
WebServiceResponse object
returned by the http() function |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(WebServiceResponse webServiceResponse) |
static HttpResponseHandler.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpResponseHandler.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpResponseHandler.Strategy GET_STATUS_CODE
WebServiceResponse object
returned by the http() functionpublic static final HttpResponseHandler.Strategy GET_RESPONSE
WebServiceResponse object returned by the http() functionpublic static HttpResponseHandler.Strategy[] values()
for (HttpResponseHandler.Strategy c : HttpResponseHandler.Strategy.values()) System.out.println(c);
public static HttpResponseHandler.Strategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Object execute(WebServiceResponse webServiceResponse)
Copyright © 2021. All rights reserved.