|
|||||||||||
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)
Deprecated. Deprecated since XINS 1.1.0. Use HTTPCallRequest(PropertyReader)
instead, in combination with
setHTTPCallConfig(HTTPCallConfig) .
This constructor is guaranteed not to be removed before XINS 2.0.0. |
|
HTTPCallRequest(HTTPMethod method,
PropertyReader parameters)
Deprecated. Deprecated since XINS 1.1.0. Use HTTPCallRequest(PropertyReader)
instead, in combination with
setHTTPCallConfig(HTTPCallConfig) .
This constructor is guaranteed not to be removed before XINS 2.0.0. |
|
HTTPCallRequest(HTTPMethod method,
PropertyReader parameters,
boolean failOverAllowed,
HTTPStatusCodeVerifier statusCodeVerifier)
Deprecated. Deprecated since XINS 1.1.0. Use HTTPCallRequest(PropertyReader,HTTPStatusCodeVerifier)
instead, in combination with
setHTTPCallConfig(HTTPCallConfig) .
This constructor is guaranteed not to be removed before XINS 2.0.0. |
|
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()
Deprecated. Deprecated since XINS 1.1.0. Use getHTTPCallConfig() instead.
This method is guaranteed not to be removed before XINS 2.0.0. |
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.
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.
parameters
- the parameters for the HTTP call, can be null
if there
are none to pass down.public HTTPCallRequest()
HTTPCallRequest
with no parameters.
public HTTPCallRequest(HTTPMethod method)
HTTPCallRequest(PropertyReader)
instead, in combination with
setHTTPCallConfig(HTTPCallConfig)
.
This constructor is guaranteed not to be removed before XINS 2.0.0.
HTTPCallRequest
with the specified HTTP
method. No arguments are be passed to the URL. Fail-over is disallowed,
unless the request was definitely not processed by the other end.
method
- the HTTP method to use, or null
if the method should be
determined when the call is made
(since XINS 1.1.0 this argument can be null).public HTTPCallRequest(HTTPMethod method, PropertyReader parameters)
HTTPCallRequest(PropertyReader)
instead, in combination with
setHTTPCallConfig(HTTPCallConfig)
.
This constructor is guaranteed not to be removed before XINS 2.0.0.
HTTPCallRequest
with the specified HTTP
method and parameters. Fail-over is disallowed, unless the request was
definitely not processed by the other end.
method
- the HTTP method to use, or null
if the method should be
determined when the call is made
(since XINS 1.1.0 this argument can be null).parameters
- the parameters for the HTTP call, can be null
.public HTTPCallRequest(HTTPMethod method, PropertyReader parameters, boolean failOverAllowed, HTTPStatusCodeVerifier statusCodeVerifier)
HTTPCallRequest(PropertyReader,HTTPStatusCodeVerifier)
instead, in combination with
setHTTPCallConfig(HTTPCallConfig)
.
This constructor is guaranteed not to be removed before XINS 2.0.0.
HTTPCallRequest
with the specified HTTP
method, parameters and status code verifier, optionally allowing
fail-over in all cases.
method
- the HTTP method to use, or null
if the method should be
determined when the call is made
(since XINS 1.1.0 this argument can be null).parameters
- the parameters for the HTTP call, can be null
.failOverAllowed
- flag that indicates whether fail-over is in principle allowed, even
if the request was already sent to the other end.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()
instead.
This method is guaranteed not to be removed before XINS 2.0.0.
Since XINS 1.1.0, this method may return null
.
null
.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 |