| java.lang.Object org.apache.synapse.endpoints.IndirectEndpoint
IndirectEndpoint | public class IndirectEndpoint implements Endpoint(Code) | | 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.
|
isActive | public boolean isActive(MessageContext synMessageContext)(Code) | | IndirectEndpoints are active if its referref endpoint is active and vise versa. Therefore,
this returns if its referred endpoint is active or not.
Parameters: synMessageContext - MessageContext of the current message. true if the referred endpoint is active. false otherwise. |
setActive | public void setActive(boolean active, MessageContext synMessageContext)(Code) | | Activating or deactivating an IndirectEndpoint is the activating or deactivating its
referref endpoint. Therefore, this sets the active state of its referred endpoint.
Parameters: active - true if active. false otherwise. Parameters: synMessageContext - MessageContext of the current message. |
setParentEndpoint | public void setParentEndpoint(Endpoint parentEndpoint)(Code) | | |
|
|