org.apache.axis2.om
Class OMAbstractFactory

java.lang.Object
  extended byorg.apache.axis2.om.OMAbstractFactory

public class OMAbstractFactory
extends Object


Field Summary
static String OM_FACTORY_NAME_PROPERTY
           
static String SOAP_FACTORY_NAME_PROPERTY
           
static String SOAP11_FACTORY_NAME_PROPERTY
           
static String SOAP12_FACTORY_NAME_PROPERTY
           
 
Constructor Summary
OMAbstractFactory()
           
 
Method Summary
static SOAPFactory getDefaultSOAPFactory()
          WARNING - DO NOT USE THIS METHOD !!!!!.
static OMFactory getOMFactory()
          Picks up the default factory implementation from the classpath.
static OMFactory getOMFactory(ClassLoader classLoader)
          If user needs to provide his own factory implementation, provide the Class Loader here.
static SOAPFactory getSOAP11Factory()
          Gets the default factory implementation from the classpath.
static SOAPFactory getSOAP11Factory(ClassLoader classLoader)
          If user needs to provide his own factory implementation, provide the Class Loader here.
static SOAPFactory getSOAP12Factory()
          Gets the default factory implementation from the classpath.
static SOAPFactory getSOAP12Factory(ClassLoader classLoader)
          If user needs to provide his own factory implementation, provide the Class Loader here.
static SOAPFactory getSOAPFactory(ClassLoader classLoader, String soapFactory)
          Gets the soapFactory factory implementation using the provided classLoader
static SOAPFactory getSOAPFactory(String soapFactory)
          Gets the soapFactory factory implementation from the classpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OM_FACTORY_NAME_PROPERTY

public static final String OM_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values

SOAP11_FACTORY_NAME_PROPERTY

public static final String SOAP11_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values

SOAP12_FACTORY_NAME_PROPERTY

public static final String SOAP12_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values

SOAP_FACTORY_NAME_PROPERTY

public static final String SOAP_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values
Constructor Detail

OMAbstractFactory

public OMAbstractFactory()
Method Detail

getOMFactory

public static OMFactory getOMFactory()
Picks up the default factory implementation from the classpath.

Returns:
Returns OMFactory.

getOMFactory

public static OMFactory getOMFactory(ClassLoader classLoader)
If user needs to provide his own factory implementation, provide the Class Loader here.

Parameters:
classLoader -
Returns:
Returns OMFactory.

getSOAPFactory

public static SOAPFactory getSOAPFactory(String soapFactory)
Gets the soapFactory factory implementation from the classpath

Parameters:
soapFactory - Fully qualified SOAP 1.1 or SOAP 1.2 Factory implementation class name
Returns:
Returns the SOAP 1.1 or 1.2 Factory implementation instance corresponding to soapFactory

getSOAPFactory

public static SOAPFactory getSOAPFactory(ClassLoader classLoader,
                                         String soapFactory)
Gets the soapFactory factory implementation using the provided classLoader

Parameters:
classLoader -
soapFactory - Fully qualified SOAP 1.1 or SOAP 1.2 Factory implementation class name
Returns:
Returns the SOAP 1.1 or 1.2 Factory implementation instance corresponding to soapFactory

getSOAP11Factory

public static SOAPFactory getSOAP11Factory()
Gets the default factory implementation from the classpath.

Returns:
Returns SOAPFactory.

getSOAP11Factory

public static SOAPFactory getSOAP11Factory(ClassLoader classLoader)
If user needs to provide his own factory implementation, provide the Class Loader here.

Parameters:
classLoader -
Returns:
Returns SOAPFactory.

getSOAP12Factory

public static SOAPFactory getSOAP12Factory()
Gets the default factory implementation from the classpath.

Returns:
Returns SOAPFactory.

getSOAP12Factory

public static SOAPFactory getSOAP12Factory(ClassLoader classLoader)
If user needs to provide his own factory implementation, provide the Class Loader here.

Parameters:
classLoader -
Returns:
Returns SOAPFactory.

getDefaultSOAPFactory

public static SOAPFactory getDefaultSOAPFactory()
WARNING - DO NOT USE THIS METHOD !!!!!. This method is used in the case where we do not know the correct SOAP version to be used. We can do some operation using the factory returned from this, without knowing the SOAP version. But most of the methods have not been implemented. We use this in the builder, where we want to first create the SOAP envelope to get the SOAP version. So this method is to solve the chicken and egg problem, we have. If you do not know the SOAP version to be used to process a particluar SOAP message you have recd, use this method to buid the SOAP envelope, and then extract the SOAP version from that envlope and switch to the proper factory using that.