Home » synapse-1.2-src » org.apache.synapse.endpoints » [javadoc | source]
public class: IndirectEndpoint [javadoc | source]

All Implemented Interfaces:

This class represents the endpoints referred by keys. It does not store the actual referred endpoint as a private variable as it could expire. Therefore, it only stores the key and gets the actual endpoint from the synapse configuration.

As this is also an instance of endpoint, this can be used any place, where a normal endpoint is used.
Method from org.apache.synapse.endpoints.IndirectEndpoint Summary:
auditWarn,   getKey,   getName,   isActive,   onChildEndpointFail,   onFault,   send,   setActive,   setKey,   setName,   setParentEndpoint,   shouldTrace
Methods from org.apache.synapse.FaultHandler:
getStackTrace,   handleFault,   handleFault,   onFault
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.endpoints.IndirectEndpoint Detail:
 protected  void auditWarn(String msg,
    MessageContext msgContext) 
 public String getKey() 
 public String getName() 
 public boolean isActive(MessageContext synMessageContext) 
    IndirectEndpoints are active if its referref endpoint is active and vise versa. Therefore, this returns if its referred endpoint is active or not.
 public  void onChildEndpointFail(Endpoint endpoint,
    MessageContext synMessageContext) 
 public  void onFault(MessageContext synMessageContext) 
 public  void send(MessageContext synMessageContext) 
 public  void setActive(boolean active,
    MessageContext synMessageContext) 
    Activating or deactivating an IndirectEndpoint is the activating or deactivating its referref endpoint. Therefore, this sets the active state of its referred endpoint.
 public  void setKey(String key) 
 public  void setName(String name) 
 public  void setParentEndpoint(Endpoint parentEndpoint) 
 public boolean shouldTrace(MessageContext synCtx)