Package org.apache.synapse.endpoints
Class ClassEndpoint
- java.lang.Object
-
- org.apache.synapse.FaultHandler
-
- org.apache.synapse.endpoints.AbstractEndpoint
-
- org.apache.synapse.endpoints.ClassEndpoint
-
- All Implemented Interfaces:
Endpoint,ManagedLifecycle,Nameable,PropertyInclude,SynapseArtifact
public class ClassEndpoint extends AbstractEndpoint
Class which defines custom user defined endpoints. Custom Endpoint implementations must extend theAbstractEndpointclass. eg:XYZ *
-
-
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 ClassEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateJsonRepresentation()EndpointgetClassEndpoint()Map<String,String>getParameters()voidinit(SynapseEnvironment synapseEnvironment)Override theAbstractEndpoint.init()to load a custom synapse environment.voidsend(MessageContext synCtx)Sends the message context according to an endpoint specific behavior.voidsendMessage(MessageContext synMessageContext)Override theAbstractEndpoint.send()to have a custom message send out logic.voidsetClassEndpoint(Endpoint classEndpoint)voidsetParameters(String name, String value)-
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, 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
-
setClassEndpoint
public void setClassEndpoint(Endpoint classEndpoint)
-
getClassEndpoint
public Endpoint getClassEndpoint()
-
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
-
init
public void init(SynapseEnvironment synapseEnvironment)
Override theAbstractEndpoint.init()to load a custom synapse environment.- Specified by:
initin interfaceManagedLifecycle- Overrides:
initin classAbstractEndpoint- Parameters:
synapseEnvironment- SynapseEnvironment to be used for initialization
-
sendMessage
public void sendMessage(MessageContext synMessageContext)
Override theAbstractEndpoint.send()to have a custom message send out logic.
-
-