org.apache.synapse.config.xml.endpoints
Class EndpointSerializer
java.lang.Object
org.apache.synapse.config.xml.endpoints.EndpointSerializer
- Direct Known Subclasses:
- DefaultEndpointSerializer, DynamicLoadbalanceEndpointSerializer, FailoverEndpointSerializer, IndirectEndpointSerializer, LoadbalanceEndpointSerializer, RecipientListEndpointSerializer, ResolvingEndpointSerializer, SALoadbalanceEndpointSerializer, 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fac
protected OMFactory fac
EndpointSerializer
protected EndpointSerializer()
getElementFromEndpoint
public static OMElement getElementFromEndpoint(Endpoint endpoint)
- Core method which is exposed to the external use, and serializes the
Endpoint
to the
XML format
- Parameters:
endpoint
- to be serialized
- Returns:
- XML format of the serialized endpoint
serializeEndpoint
protected abstract 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,
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 implementation.
- Returns:
- EndpointSerializer implementation.
serializeCommonAttributes
protected void serializeCommonAttributes(Endpoint endpoint,
OMElement element)
serializeProperties
protected void serializeProperties(PropertyInclude endpoint,
OMElement element)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.