Package org.apache.synapse.endpoints
Class WSDLEndpoint
- java.lang.Object
-
- org.apache.synapse.FaultHandler
-
- org.apache.synapse.endpoints.AbstractEndpoint
-
- org.apache.synapse.endpoints.WSDLEndpoint
-
- All Implemented Interfaces:
Endpoint
,ManagedLifecycle
,Nameable
,PropertyInclude
,SynapseArtifact
public class WSDLEndpoint extends AbstractEndpoint
WSDLEndpoint represents the endpoints built using a WSDL document. It stores the details about the endpoint in an EndpointDefinition object. Once the WSDLEndpoint object is constructed, it should not access the WSDL document at runtime to obtain endpoint information. If it is necessary to create an endpoint using a dynamic WSDL, store the endpoint configuration in the registry and create a dynamic WSDL endpoint using that registry key. TODO: This should allow various policies to be applied on fine grained level (e.g. operations).
-
-
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 WSDLEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createJsonRepresentation()
String
getPortName()
String
getServiceName()
org.apache.axiom.om.OMElement
getWsdlDoc()
String
getWsdlURI()
void
onFault(MessageContext synCtx)
On a fault, propagate to parent if any, or call into the fault handlervoid
onSuccess()
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 activevoid
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.void
setPortName(String portName)
void
setServiceName(String serviceName)
void
setWsdlDoc(org.apache.axiom.om.OMElement wsdlDoc)
void
setWsdlURI(String wsdlURI)
-
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:AbstractEndpoint
On a fault, propagate to parent if any, or call into the fault handler- Overrides:
onFault
in classAbstractEndpoint
- Parameters:
synCtx
- the message at hand
-
onSuccess
public void onSuccess()
Description copied from class:AbstractEndpoint
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 active- Specified by:
onSuccess
in interfaceEndpoint
- Overrides:
onSuccess
in classAbstractEndpoint
-
createJsonRepresentation
protected void createJsonRepresentation()
- Specified by:
createJsonRepresentation
in classAbstractEndpoint
-
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 interfaceEndpoint
- Overrides:
send
in classAbstractEndpoint
- Parameters:
synCtx
- MessageContext to be sent.
-
getWsdlURI
public String getWsdlURI()
-
setWsdlURI
public void setWsdlURI(String wsdlURI)
-
getWsdlDoc
public org.apache.axiom.om.OMElement getWsdlDoc()
-
setWsdlDoc
public void setWsdlDoc(org.apache.axiom.om.OMElement wsdlDoc)
-
getServiceName
public String getServiceName()
-
setServiceName
public void setServiceName(String serviceName)
-
getPortName
public String getPortName()
-
setPortName
public void setPortName(String portName)
-
-