public abstract class EndpointFactory extends Object implements XMLToObjectMapper
XMLToObjectMapper
implementation for specific endpoint
implementations. If the endpoint type is not known use XMLToEndpointMapper
as the
generic XMLToObjectMapper
for all endpoints.Modifier and Type | Field and Description |
---|---|
static QName |
ON_FAULT_Q |
Modifier | Constructor and Description |
---|---|
protected |
EndpointFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract Endpoint |
createEndpoint(org.apache.axiom.om.OMElement epConfig,
boolean anonymousEndpoint,
Properties properties)
Creates the Endpoint implementation for the given XML endpoint configuration.
|
protected void |
extractSpecificEndpointProperties(EndpointDefinition definition,
org.apache.axiom.om.OMElement elem) |
DefinitionFactory |
getEndpointDefinitionFactory()
return current factory for building this endpoint definition
|
static Endpoint |
getEndpointFromElement(org.apache.axiom.om.OMElement elem,
boolean isAnonymous,
Properties properties)
Core method which is exposed for the external use, and this will find the proper
EndpointFactory and create the endpoint which is of the format Endpoint . |
static Endpoint |
getEndpointFromElement(org.apache.axiom.om.OMElement elem,
DefinitionFactory factory,
boolean isAnonymous,
Properties properties)
Core method which is exposed for the external use, and this will find the proper
EndpointFactory and create the endpoint which is of the format Endpoint .However
definition for this endpoint will be built using a custom Endpoint Defn factory. |
protected ArrayList<Endpoint> |
getEndpoints(org.apache.axiom.om.OMElement listEndpointElement,
Endpoint parent,
Properties properties)
Helper method to construct children endpoints
|
Object |
getObjectFromOMNode(org.apache.axiom.om.OMNode om,
Properties properties)
Creates the
Endpoint object from the provided OMNode |
protected static void |
handleException(String msg) |
protected static void |
handleException(String msg,
Exception e) |
protected void |
processProperties(PropertyInclude endpoint,
org.apache.axiom.om.OMElement endpointElement)
Helper method to extract endpoint properties.
|
void |
setEndpointDefinitionFactory(DefinitionFactory factory)
provide a custom Endpoint definition factory
|
public static final QName ON_FAULT_Q
public static Endpoint getEndpointFromElement(org.apache.axiom.om.OMElement elem, boolean isAnonymous, Properties properties)
EndpointFactory
and create the endpoint which is of the format Endpoint
.elem
- XML from which the endpoint will be builtisAnonymous
- whether this is an anonymous endpoint or notproperties
- bag of properties to pass in any information to the factorypublic static Endpoint getEndpointFromElement(org.apache.axiom.om.OMElement elem, DefinitionFactory factory, boolean isAnonymous, Properties properties)
EndpointFactory
and create the endpoint which is of the format Endpoint
.However
definition for this endpoint will be built using a custom Endpoint Defn factory.elem
- XML from which the endpoint will be builtfactory
- custom definition factory which this endpoint will be used to buildisAnonymous
- whether this is an anonymous endpoint or notproperties
- bag of properties to pass in any information to the factorypublic Object getObjectFromOMNode(org.apache.axiom.om.OMNode om, Properties properties)
Endpoint
object from the provided OMNode
getObjectFromOMNode
in interface XMLToObjectMapper
om
- XML node from which the endpoint will be builtproperties
- bag of properties to pass in any information to the factoryObject
protected abstract Endpoint createEndpoint(org.apache.axiom.om.OMElement epConfig, boolean anonymousEndpoint, Properties properties)
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 factoryprotected void extractSpecificEndpointProperties(EndpointDefinition definition, org.apache.axiom.om.OMElement elem)
protected ArrayList<Endpoint> getEndpoints(org.apache.axiom.om.OMElement listEndpointElement, Endpoint parent, Properties properties)
listEndpointElement
- OMElement representing the children endpointsparent
- Parent endpointproperties
- bag of properties to pass in any information to the factorypublic void setEndpointDefinitionFactory(DefinitionFactory factory)
factory
- public DefinitionFactory getEndpointDefinitionFactory()
protected void processProperties(PropertyInclude endpoint, org.apache.axiom.om.OMElement endpointElement)
endpoint
- actual endpoint to set the propertiesendpointElement
- actual endpoint elementprotected static void handleException(String msg)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.