org.apache.synapse.config.xml.endpoints
Class AddressEndpointFactory

java.lang.Object
  extended by org.apache.synapse.config.xml.endpoints.EndpointFactory
      extended by org.apache.synapse.config.xml.endpoints.DefaultEndpointFactory
          extended by org.apache.synapse.config.xml.endpoints.AddressEndpointFactory
All Implemented Interfaces:
XMLToObjectMapper

public class AddressEndpointFactory
extends DefaultEndpointFactory

Creates AddressEndpoint using a XML configuration.

Configuration syntax:

 <endpoint [name="name"]>
   <address uri="endpoint address" [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
            [encoding="charset encoding"]
            [statistics="enable|disable"] [trace="enable|disable"]>
     .. extensibility ..

     <enableRM [policy="key"]/>?
     <enableSec [policy="key"]/>?
     <enableAddressing [version="final|submission"] [separateListener="true|false"]/>?

     <timeout>
       <duration>timeout duration in seconds</duration>
       <action>discard|fault</action>
     </timeout>?

     <suspendDurationOnFailure>
       suspend duration in seconds
     </suspendDurationOnFailure>?
   </address>
 </endpoint>
 


Method Summary
protected  Endpoint createEndpoint(OMElement epConfig, boolean anonymousEndpoint)
          Creates the Endpoint implementation for the given XML endpoint configuration.
 EndpointDefinition createEndpointDefinition(OMElement elem)
          Creates an EndpointDefinition instance using the XML fragment specification.
static AddressEndpointFactory getInstance()
           
 
Methods inherited from class org.apache.synapse.config.xml.endpoints.DefaultEndpointFactory
extractSpecificEndpointProperties
 
Methods inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
extractCommonEndpointProperties, getEndpointFromElement, getEndpoints, getObjectFromOMNode, handleException, handleException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AddressEndpointFactory getInstance()

createEndpoint

protected Endpoint createEndpoint(OMElement epConfig,
                                  boolean anonymousEndpoint)
Description copied from class: EndpointFactory
Creates the Endpoint implementation for the given XML endpoint configuration. If the endpoint configuration is an inline one, it should be an anonymous endpoint. If it is defined as an immediate child element of the definitions tag it should have a name, which is used as the key in local registry.

Overrides:
createEndpoint in class DefaultEndpointFactory
Parameters:
epConfig - OMElement conatining the endpoint configuration.
anonymousEndpoint - false if the endpoint has a name. true otherwise.
Returns:
Endpoint implementation for the given configuration.

createEndpointDefinition

public EndpointDefinition createEndpointDefinition(OMElement elem)
Creates an EndpointDefinition instance using the XML fragment specification. Configuration for EndpointDefinition always resides inside a configuration of an AddressEndpoint. This factory extracts the details related to the EPR provided for address endpoint.

Overrides:
createEndpointDefinition in class DefaultEndpointFactory
Parameters:
elem - XML configuration element
Returns:
EndpointDefinition object containing the endpoint details.


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.