Class HTTPEndpointFactory
- java.lang.Object
-
- org.apache.synapse.config.xml.endpoints.EndpointFactory
-
- org.apache.synapse.config.xml.endpoints.DefaultEndpointFactory
-
- org.apache.synapse.config.xml.endpoints.HTTPEndpointFactory
-
- All Implemented Interfaces:
XMLToObjectMapper
public class HTTPEndpointFactory extends DefaultEndpointFactory
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
ON_FAULT_Q
-
-
Constructor Summary
Constructors Constructor Description HTTPEndpointFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Endpoint
createEndpoint(org.apache.axiom.om.OMElement epConfig, boolean anonymousEndpoint, Properties properties)
Creates the Endpoint implementation for the given XML endpoint configuration.EndpointDefinition
createEndpointDefinition(org.apache.axiom.om.OMElement elem)
Creates an EndpointDefinition instance using the XML fragment specification.static HTTPEndpointFactory
getInstance()
-
Methods inherited from class org.apache.synapse.config.xml.endpoints.DefaultEndpointFactory
extractSpecificEndpointProperties, processAuditStatus
-
Methods inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
getEndpointDefinitionFactory, getEndpointFromElement, getEndpointFromElement, getEndpoints, getObjectFromOMNode, handleException, handleException, processProperties, setEndpointDefinitionFactory
-
-
-
-
Method Detail
-
getInstance
public static HTTPEndpointFactory getInstance()
-
createEndpointDefinition
public EndpointDefinition createEndpointDefinition(org.apache.axiom.om.OMElement elem)
Description copied from class:DefaultEndpointFactory
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 classDefaultEndpointFactory
- Parameters:
elem
- XML configuration element- Returns:
- EndpointDefinition object containing the endpoint details.
-
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.- Overrides:
createEndpoint
in classDefaultEndpointFactory
- 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.
-
-