|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.service.CallRequest org.xins.common.http.HTTPCallRequest
A request towards an HTTP service.
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 FormConstructor Summary | |
HTTPCallRequest()
Constructs a new HTTPCallRequest with no parameters.
|
|
HTTPCallRequest(HTTPMethod method)
Constructs a new HTTPCallRequest with the specified HTTP
method. |
|
HTTPCallRequest(HTTPMethod method,
PropertyReader parameters)
Constructs a new HTTPCallRequest with the specified HTTP
method and parameters.
|
|
HTTPCallRequest(HTTPMethod method,
PropertyReader 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(PropertyReader parameters)
Constructs a new HTTPCallRequest with the specified
parameters.
|
|
HTTPCallRequest(PropertyReader parameters,
HTTPStatusCodeVerifier statusCodeVerifier)
Constructs a new HTTPCallRequest with the specified
parameters and status code verifier. |
Method Summary | |
String |
describe()
Describes this request. |
HTTPCallConfig |
getHTTPCallConfig()
Returns the HTTP call configuration. |
HTTPMethod |
getMethod()
Returns the HTTP method associated with this call request. |
PropertyReader |
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. |
Methods inherited from class org.xins.common.service.CallRequest |
getCallConfig, setCallConfig, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTTPCallRequest(PropertyReader 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(PropertyReader 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, PropertyReader 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, PropertyReader 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.Method Detail |
public String describe()
describe
in class CallRequest
null
.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 PropertyReader getParameters()
Since XINS 1.1.0, this method will never return null
.
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
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |