|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.config.xml.endpoints.EndpointFactory
public abstract class EndpointFactory
All endpoint factories should extend from this abstract class. Use EndpointFactory to obtain the correct endpoint for particular endpoint configuration. As endpoints can be nested inside each other, EndpointFactory implementations may call other EndpointFactory implementations recursively to obtain the required endpoint hierarchy.
This also serves as theXMLToObjectMapper implementation for specific endpoint
implementations. If the endpoint type is not known use XMLToEndpointMapper as the
generic XMLToObjectMapper for all endpoints.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
protected |
EndpointFactory()
|
| Method Summary | |
|---|---|
protected abstract Endpoint |
createEndpoint(OMElement epConfig,
boolean anonymousEndpoint)
Creates the Endpoint implementation for the given XML endpoint configuration. |
protected void |
extractCommonEndpointProperties(EndpointDefinition definition,
OMElement elem)
Extracts the QoS information from the XML which represents a WSDL/Address/Default endpoints |
protected void |
extractSpecificEndpointProperties(EndpointDefinition definition,
OMElement elem)
|
static Endpoint |
getEndpointFromElement(OMElement elem,
boolean isAnonymous)
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. |
protected ArrayList<Endpoint> |
getEndpoints(OMElement listEndpointElement,
Endpoint parent)
Helper method to construct children endpoints |
Object |
getObjectFromOMNode(OMNode om)
Creates the Endpoint object from the provided OMNode |
protected static void |
handleException(String msg)
|
protected static void |
handleException(String msg,
Exception e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
protected EndpointFactory()
| Method Detail |
|---|
public static Endpoint getEndpointFromElement(OMElement elem,
boolean isAnonymous)
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 not
public Object getObjectFromOMNode(OMNode om)
Endpoint object from the provided OMNode
getObjectFromOMNode in interface XMLToObjectMapperom - XML node from which the endpoint will be built
Object
protected abstract Endpoint createEndpoint(OMElement epConfig,
boolean anonymousEndpoint)
epConfig - OMElement conatining the endpoint configuration.anonymousEndpoint - false if the endpoint has a name. true otherwise.
protected void extractCommonEndpointProperties(EndpointDefinition definition,
OMElement elem)
definition - to be filled with the extracted informationelem - XML which represents the endpoint with QoS information
protected void extractSpecificEndpointProperties(EndpointDefinition definition,
OMElement elem)
protected ArrayList<Endpoint> getEndpoints(OMElement listEndpointElement,
Endpoint parent)
listEndpointElement - OMElement representing the children endpointsparent - Parent endpoint
protected static void handleException(String msg)
protected static void handleException(String msg,
Exception e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||