Class EndpointSerializer

    • Field Detail

      • fac

        protected org.apache.axiom.om.OMFactory fac
    • Constructor Detail

      • EndpointSerializer

        protected EndpointSerializer()
    • Method Detail

      • getElementFromEndpoint

        public static org.apache.axiom.om.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 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)