Package org.apache.synapse.endpoints
Class TemplateEndpoint
- java.lang.Object
-
- org.apache.synapse.FaultHandler
-
- org.apache.synapse.endpoints.AbstractEndpoint
-
- 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, artifactContainerName, CHILDREN_JSON_ATT, errorHandler, fileName, initialized, isClusteringEnabled, NAME_JSON_ATT, trace, TYPE_JSON_ATT
-
-
Constructor Summary
Constructors Constructor Description TemplateEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(String name, String value)protected voidcreateJsonRepresentation()StringgetAddress()Map<String,String>getParameters()StringgetParameterValue(String name)EndpointgetRealEndpoint()StringgetTemplate()voidinit(SynapseEnvironment synapseEnvironment)This method should implement the initialization of the implemented parts of the configuration.booleanreadyToSend()Returns true to indicate that the endpoint is ready to service requestsvoidsend(MessageContext synCtx)Sends the message context according to an endpoint specific behavior.voidsendMessage(MessageContext synCtx)voidsetAddress(String address)voidsetTemplate(String template)-
Methods inherited from class org.apache.synapse.endpoints.AbstractEndpoint
addProperties, addProperty, destroy, evaluateProperties, executeEpTypeSpecificFunctions, getArtifactContainerName, getChildren, getCommentsList, getContext, getDefinition, getDescription, getEndpointChildrenAsJson, getErrorHandler, getFileName, getIsEdited, getJsonRepresentation, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, getReportingName, getValue, handleException, handleException, handleException, informFailure, isAnonymous, isInitialized, isLeafEndpoint, isRetry, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, logSetter, onChildEndpointFail, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAdvancedProperties, setAnonymous, setArtifactContainerName, setChildren, setCommentsList, setComponentStatisticsId, setContentAware, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setForceBuildMC, setIsEdited, setName, setParentEndpoint, setValue, toString, traceOrDebug
-
Methods inherited from class org.apache.synapse.FaultHandler
executeExtendedSynapseHandlerOnFault, getStackTrace, handleFault, handleFault
-
-
-
-
Method Detail
-
send
public void send(MessageContext synCtx)
Description copied from interface:EndpointSends the message context according to an endpoint specific behavior.- Specified by:
sendin interfaceEndpoint- Overrides:
sendin classAbstractEndpoint- Parameters:
synCtx- MessageContext to be sent.
-
createJsonRepresentation
protected void createJsonRepresentation()
- Specified by:
createJsonRepresentationin classAbstractEndpoint
-
sendMessage
public void sendMessage(MessageContext synCtx)
-
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:ManagedLifecycleThis method should implement the initialization of the implemented parts of the configuration.- Specified by:
initin interfaceManagedLifecycle- Overrides:
initin classAbstractEndpoint- Parameters:
synapseEnvironment- SynapseEnvironment to be used for initialization
-
readyToSend
public boolean readyToSend()
Description copied from interface:EndpointReturns true to indicate that the endpoint is ready to service requests- Specified by:
readyToSendin interfaceEndpoint- Overrides:
readyToSendin classAbstractEndpoint- Returns:
- true if endpoint is ready to service requests
-
getRealEndpoint
public Endpoint getRealEndpoint()
-
-