org.apache.synapse.endpoints
Class TemplateEndpoint

java.lang.Object
  extended by org.apache.synapse.FaultHandler
      extended by org.apache.synapse.endpoints.AbstractEndpoint
          extended by org.apache.synapse.endpoints.TemplateEndpoint
All Implemented Interfaces:
Endpoint, ManagedLifecycle, Nameable, PropertyInclude, SynapseArtifact

public class TemplateEndpoint
extends AbstractEndpoint


Field Summary
 
Fields inherited from class org.apache.synapse.endpoints.AbstractEndpoint
anonymous, errorHandler, fileName, initialized, isClusteringEnabled, trace
 
Constructor Summary
TemplateEndpoint()
           
 
Method Summary
 void addParameter(String name, String value)
           
 String getAddress()
           
 Map<String,String> getParameters()
           
 String getParameterValue(String name)
           
 String getTemplate()
           
 void init(SynapseEnvironment synapseEnvironment)
          This method should implement the initialization of the implemented parts of the configuration.
 boolean readyToSend()
          Returns true to indicate that the endpoint is ready to service requests
 void send(MessageContext synCtx)
          Sends the message context according to an endpoint specific behavior.
 void setAddress(String address)
           
 void setTemplate(String template)
           
 
Methods inherited from class org.apache.synapse.endpoints.AbstractEndpoint
addProperties, addProperty, destroy, evaluateProperties, getChildren, getContext, getDefinition, getDescription, getErrorHandler, getFileName, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, handleException, handleException, informFailure, isAnonymous, isInitialized, isLeafEndpoint, isRetryDisabled, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, onChildEndpointFail, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAnonymous, setChildren, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setName, setParentEndpoint, toString, traceOrDebug
 
Methods inherited from class org.apache.synapse.FaultHandler
getStackTrace, handleFault, handleFault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateEndpoint

public TemplateEndpoint()
Method Detail

send

public void send(MessageContext synCtx)
Description copied from interface: Endpoint
Sends the message context according to an endpoint specific behavior.

Specified by:
send in interface Endpoint
Overrides:
send in class AbstractEndpoint
Parameters:
synCtx - MessageContext to be sent.

getParameters

public Map<String,String> getParameters()

getParameterValue

public String getParameterValue(String name)

addParameter

public void addParameter(String name,
                         String value)

getTemplate

public String getTemplate()

setTemplate

public void setTemplate(String template)

getAddress

public String getAddress()

setAddress

public void setAddress(String address)

init

public void init(SynapseEnvironment synapseEnvironment)
Description copied from interface: ManagedLifecycle
This method should implement the initialization of the implemented parts of the configuration.

Specified by:
init in interface ManagedLifecycle
Overrides:
init in class AbstractEndpoint
Parameters:
synapseEnvironment - SynapseEnvironment to be used for initialization

readyToSend

public boolean readyToSend()
Description copied from interface: Endpoint
Returns true to indicate that the endpoint is ready to service requests

Specified by:
readyToSend in interface Endpoint
Overrides:
readyToSend in class AbstractEndpoint
Returns:
true if endpoint is ready to service requests


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.