org.xins.common.service
Class CallConfig

java.lang.Object
  extended byorg.xins.common.service.CallConfig
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HTTPCallConfig, XINSCallConfig

public class CallConfig
extends Object
implements Serializable

Configuration for a service call. Objects of this type specify certain aspects of how a call is executed. For example, for an HTTP service caller, a CallConfig object could specify what HTTP method (GET, POST, etc.) to use.

This base class only specifies the property failOverAllowed, which indicates whether fail-over is unconditionally allowed, even if the request was already received or even processed by the other end.

This class is not thread safe

Since:
XINS 1.1.0
Version:
$Revision: 1.28 $ $Date: 2007/09/18 08:45:14 $
Author:
Ernst de Haan, Anthony Goubard
See Also:
ServiceCaller, CallRequest, Serialized Form

Constructor Summary
CallConfig()
           
 
Method Summary
 String describe()
          Describes this configuration.
 boolean isFailOverAllowed()
          Determines whether fail-over is unconditionally allowed.
 void setFailOverAllowed(boolean allowed)
          Configures whether fail-over is unconditionally allowed.
 String toString()
          Returns a textual presentation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallConfig

public CallConfig()
Method Detail

describe

public String describe()
Describes this configuration.

The implementation of this method in class CallConfig returns a descriptive string that contains the failOverAllowed setting.

Returns:
the description of this configuration, should never be null.

toString

public final String toString()
Returns a textual presentation of this object.

The implementation of this method in class CallRequest returns describe().

Returns:
a textual presentation of this object, should never be null.

isFailOverAllowed

public final boolean isFailOverAllowed()
Determines whether fail-over is unconditionally allowed.

Returns:
true if fail-over is unconditionally allowed, even if the request was already received or even processed by the other end, false otherwise.

setFailOverAllowed

public final void setFailOverAllowed(boolean allowed)
Configures whether fail-over is unconditionally allowed.

Parameters:
allowed - true if fail-over is unconditionally allowed, even if the request was already received or even processed by the other end, false otherwise.


See http://www.xins.org/.