Package org.apache.synapse.endpoints
Class AddressEndpoint
- java.lang.Object
-
- org.apache.synapse.FaultHandler
-
- org.apache.synapse.endpoints.AbstractEndpoint
-
- org.apache.synapse.endpoints.AddressEndpoint
-
- All Implemented Interfaces:
Endpoint,ManagedLifecycle,Nameable,PropertyInclude,SynapseArtifact
public class AddressEndpoint extends AbstractEndpoint
This class represents an actual endpoint to send the message. It is responsible for sending the message, performing retries if a failure occurred and informing the parent endpoint if a failure couldn't be recovered.
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.endpoints.AbstractEndpoint
anonymous, artifactContainerName, CHILDREN_JSON_ATT, errorHandler, fileName, initialized, isClusteringEnabled, log, NAME_JSON_ATT, trace, TYPE_JSON_ATT
-
-
Constructor Summary
Constructors Constructor Description AddressEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateJsonRepresentation()voidonFault(MessageContext synCtx)On a fault, propagate to parent if any, or call into the fault handlervoidonSuccess()The SynapseCallback Receiver notifies an endpoint, if a message was successfully processed to give it a chance to clear up or reset its state to activevoidsend(MessageContext synCtx)Sends the message context according to an endpoint specific behavior.-
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, init, isAnonymous, isInitialized, isLeafEndpoint, isRetry, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, logSetter, onChildEndpointFail, prepareForEndpointStatistics, readyToSend, 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
-
onFault
public void onFault(MessageContext synCtx)
Description copied from class:AbstractEndpointOn a fault, propagate to parent if any, or call into the fault handler- Overrides:
onFaultin classAbstractEndpoint- Parameters:
synCtx- the message at hand
-
onSuccess
public void onSuccess()
Description copied from class:AbstractEndpointThe SynapseCallback Receiver notifies an endpoint, if a message was successfully processed to give it a chance to clear up or reset its state to active- Specified by:
onSuccessin interfaceEndpoint- Overrides:
onSuccessin classAbstractEndpoint
-
createJsonRepresentation
protected void createJsonRepresentation()
- Specified by:
createJsonRepresentationin classAbstractEndpoint
-
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.
-
-