public final class HTTPCallRequest extends CallRequest
Since XINS 1.1.0, an HTTP method is not a mandatory property anymore. If
the HTTP method is not specified in a request, then it will from the
applicable HTTPCallConfig.
HTTPServiceCaller,
Serialized Form| Constructor and Description |
|---|
HTTPCallRequest()
Constructs a new
HTTPCallRequest with no parameters. |
HTTPCallRequest(HTTPMethod method)
Constructs a new
HTTPCallRequest with the specified HTTP
method. |
HTTPCallRequest(HTTPMethod method,
Map<String,String> parameters)
Constructs a new
HTTPCallRequest with the specified HTTP
method and parameters. |
HTTPCallRequest(HTTPMethod method,
Map<String,String> parameters,
boolean failOverAllowed,
HTTPStatusCodeVerifier statusCodeVerifier)
Constructs a new
HTTPCallRequest with the specified HTTP
method, parameters and status code verifier, optionally allowing
unconditional fail-over. |
HTTPCallRequest(Map<String,String> parameters)
Constructs a new
HTTPCallRequest with the specified
parameters. |
HTTPCallRequest(Map<String,String> parameters,
HTTPStatusCodeVerifier statusCodeVerifier)
Constructs a new
HTTPCallRequest with the specified
parameters and status code verifier. |
| Modifier and Type | Method and Description |
|---|---|
String |
describe()
Describes this request.
|
HTTPCallConfig |
getHTTPCallConfig()
Returns the HTTP call configuration.
|
HTTPMethod |
getMethod()
Returns the HTTP method associated with this call request.
|
Map<String,String> |
getParameters()
Returns the parameters associated with this call request.
|
HTTPStatusCodeVerifier |
getStatusCodeVerifier()
Returns the HTTP status code verifier.
|
boolean |
isFailOverAllowed()
Determines whether fail-over is in principle allowed, even if the
request was already sent to the other end.
|
void |
setHTTPCallConfig(HTTPCallConfig callConfig)
Sets the associated HTTP call configuration.
|
getCallConfig, setCallConfig, toStringpublic HTTPCallRequest(Map<String,String> parameters, HTTPStatusCodeVerifier statusCodeVerifier)
HTTPCallRequest with the specified
parameters and status code verifier. Fail-over is not unconditionally
allowed.parameters - the parameters for the HTTP call, can be null if there
are none to pass down.statusCodeVerifier - the HTTP status code verifier, or null if all HTTP
status codes are allowed.public HTTPCallRequest(Map<String,String> parameters)
HTTPCallRequest with the specified
parameters.
Unconditional fail-over is disabled.parameters - the parameters for the HTTP call, can be null if there
are none to pass down.public HTTPCallRequest()
HTTPCallRequest with no parameters.
Unconditional fail-over is disabled.public HTTPCallRequest(HTTPMethod method)
HTTPCallRequest with the specified HTTP
method. No arguments are passed to the URL.
Unconditional fail-over is disabled.method - the HTTP method to use, or null if the method should be
determined when the call is made.public HTTPCallRequest(HTTPMethod method, Map<String,String> parameters)
HTTPCallRequest with the specified HTTP
method and parameters.
Unconditional fail-over is disabled.method - the HTTP method to use, or null if the method should be
determined when the call is made.parameters - the parameters for the HTTP call, can be null.public HTTPCallRequest(HTTPMethod method, Map<String,String> parameters, boolean failOverAllowed, HTTPStatusCodeVerifier statusCodeVerifier)
HTTPCallRequest with the specified HTTP
method, parameters and status code verifier, optionally allowing
unconditional fail-over.method - the HTTP method to use, or null if the method should be
determined when the call is made.parameters - the parameters for the HTTP call, can be null.failOverAllowed - flag that indicates whether fail-over is unconditionally allowed.statusCodeVerifier - the HTTP status code verifier, or null if all HTTP
status codes are allowed.public String describe()
describe in class CallRequestnull.public HTTPCallConfig getHTTPCallConfig()
null.public void setHTTPCallConfig(HTTPCallConfig callConfig)
callConfig - the HTTP call configuration object to associate with this request, or
null.public HTTPMethod getMethod()
getHTTPCallConfig(). If the associated call config is
null, then null is returned.null if none is set for the call
configuration associated with this request.public Map<String,String> getParameters()
null.public boolean isFailOverAllowed()
true if fail-over is in principle allowed, even if the
request was already sent to the other end, false
otherwise.public HTTPStatusCodeVerifier getStatusCodeVerifier()
null is returned.null.See http://www.xins.org/.