Class EndpointSerializer
- java.lang.Object
-
- org.apache.synapse.config.xml.endpoints.EndpointSerializer
-
- Direct Known Subclasses:
ClassEndpointSerializer
,DefaultEndpointSerializer
,DynamicLoadbalanceEndpointSerializer
,FailoverEndpointSerializer
,IndirectEndpointSerializer
,LoadbalanceEndpointSerializer
,RecipientListEndpointSerializer
,ResolvingEndpointSerializer
,SALoadbalanceEndpointSerializer
,ServiceDynamicLoadbalanceEndpointSerializer
,TemplateEndpointSerializer
,WSDLEndpointSerializer
public abstract class EndpointSerializer extends Object
All endpoint serializers should implement this interface. Use EndpointSerializer to obtain the correct EndpointSerializer implementation for a particular endpoint. EndpointSerializer implementation may call other EndpointSerializer implementations to serialize nested endpoints.- See Also:
EndpointFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.axiom.om.OMFactory
fac
-
Constructor Summary
Constructors Modifier Constructor Description protected
EndpointSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static org.apache.axiom.om.OMElement
getElementFromEndpoint(Endpoint endpoint)
Core method which is exposed to the external use, and serializes theEndpoint
to the XML formatstatic EndpointSerializer
getEndpointSerializer(Endpoint endpoint)
Returns the EndpointSerializer implementation for the given endpoint.protected void
handleException(String message)
protected void
serializeCommonAttributes(Endpoint endpoint, org.apache.axiom.om.OMElement element)
protected abstract org.apache.axiom.om.OMElement
serializeEndpoint(Endpoint endpoint)
Serializes the given endpoint implementation to an XML object.protected void
serializeProperties(PropertyInclude endpoint, org.apache.axiom.om.OMElement element)
protected void
serializeSpecificEndpointProperties(EndpointDefinition endpointDefinition, org.apache.axiom.om.OMElement element)
-
-
-
Method Detail
-
getElementFromEndpoint
public static org.apache.axiom.om.OMElement getElementFromEndpoint(Endpoint endpoint)
Core method which is exposed to the external use, and serializes theEndpoint
to the XML format- Parameters:
endpoint
- to be serialized- Returns:
- XML format of the serialized endpoint
-
serializeEndpoint
protected abstract org.apache.axiom.om.OMElement serializeEndpoint(Endpoint endpoint)
Serializes the given endpoint implementation to an XML object.- Parameters:
endpoint
- Endpoint implementation to be serialized.- Returns:
- OMElement containing XML configuration.
-
serializeSpecificEndpointProperties
protected void serializeSpecificEndpointProperties(EndpointDefinition endpointDefinition, org.apache.axiom.om.OMElement element)
-
handleException
protected void handleException(String message)
-
getEndpointSerializer
public static EndpointSerializer getEndpointSerializer(Endpoint endpoint)
Returns the EndpointSerializer implementation for the given endpoint. Throws a SynapseException, if there is no serializer for the given endpoint type.- Parameters:
endpoint
- Endpoint implementaion.- Returns:
- EndpointSerializer implementation.
-
serializeCommonAttributes
protected void serializeCommonAttributes(Endpoint endpoint, org.apache.axiom.om.OMElement element)
-
serializeProperties
protected void serializeProperties(PropertyInclude endpoint, org.apache.axiom.om.OMElement element)
-
-