Class DefaultEndpointFactory

  • All Implemented Interfaces:
    XMLToObjectMapper
    Direct Known Subclasses:
    AddressEndpointFactory, HTTPEndpointFactory, WSDLEndpointFactory

    public class DefaultEndpointFactory
    extends EndpointFactory
    Creates DefaultEndpoint using a XML configuration.

    Configuration syntax:

     <endpoint [name="name"]>
       <default [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
          [encoding="charset encoding"]
              [statistics="enable|disable"] [trace="enable|disable"]>
         .. extensibility ..
    
         <enableSec [policy="key"]/>?
         <enableAddressing [version="final|submission"] [separateListener="true|false"]/>?
    
         <timeout>
           <duration>timeout duration in seconds</duration>
           <responseAction>discard|fault</responseAction>
         </timeout>?
    
         <suspendDurationOnFailure>
           suspend duration in seconds
         </suspendDurationOnFailure>?
       </address>
     </endpoint>
     
    • Constructor Detail

      • DefaultEndpointFactory

        protected DefaultEndpointFactory()
    • Method Detail

      • createEndpoint

        protected Endpoint createEndpoint​(org.apache.axiom.om.OMElement epConfig,
                                          boolean anonymousEndpoint,
                                          Properties properties)
        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.
        Specified by:
        createEndpoint in class EndpointFactory
        Parameters:
        epConfig - OMElement containing the endpoint configuration.
        anonymousEndpoint - false if the endpoint has a name. true otherwise.
        properties - bag of properties to pass in any information to the factory
        Returns:
        Endpoint implementation for the given configuration.
      • createEndpointDefinition

        public EndpointDefinition createEndpointDefinition​(org.apache.axiom.om.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.
        Parameters:
        elem - XML configuration element
        Returns:
        EndpointDefinition object containing the endpoint details.
      • processAuditStatus

        protected void processAuditStatus​(EndpointDefinition definition,
                                          String name,
                                          org.apache.axiom.om.OMElement epOmElement)