org.jboss.soa.esb.actions.soap.adapter
Class JBossWSFactory

java.lang.Object
  extended by org.jboss.soa.esb.actions.soap.adapter.JBossWSFactory
Direct Known Subclasses:
CXFFactory, NativeFactory

public abstract class JBossWSFactory
extends java.lang.Object

Factory for providing a common abstraction for all native/CXF functions.

Author:
Kevin Conner

Field Summary
static java.lang.String ESB_INTERNAL_URI
          The internal URI that should be returned as the WSDL location if a subsequent request should be make through the getWsdl method.
 
Constructor Summary
JBossWSFactory()
           
 
Method Summary
 java.lang.ClassLoader getClassLoader(org.jboss.wsf.spi.deployment.Endpoint endpoint)
          Get the context ClassLoader for the specified endpoint
static JBossWSFactory getFactory()
          Get the factory singleton.
abstract  SOAPProcessorFactory getSOAPProcessorFactory()
          Get the SOAP Processor factory for the specific implementation.
abstract  java.io.InputStream getWsdl(java.lang.String uri)
          Get the WSDL for the specified endpoint.
abstract  java.lang.String getWsdlLocation(org.jboss.wsf.spi.deployment.Endpoint endpoint, java.lang.String endpointName)
          Get the URI representing the WSDL location for the specified endpoint
abstract  javax.wsdl.Definition readWSDL(java.net.URL wsdlURL)
          Get the definition for the WSDL at the specific location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ESB_INTERNAL_URI

public static final java.lang.String ESB_INTERNAL_URI
The internal URI that should be returned as the WSDL location if a subsequent request should be make through the getWsdl method.

See Also:
Constant Field Values
Constructor Detail

JBossWSFactory

public JBossWSFactory()
Method Detail

getFactory

public static JBossWSFactory getFactory()
Get the factory singleton.

Returns:
The factory singleton.

getSOAPProcessorFactory

public abstract SOAPProcessorFactory getSOAPProcessorFactory()
Get the SOAP Processor factory for the specific implementation.

Returns:
The SOAP Processor factory.

getWsdlLocation

public abstract java.lang.String getWsdlLocation(org.jboss.wsf.spi.deployment.Endpoint endpoint,
                                                 java.lang.String endpointName)
Get the URI representing the WSDL location for the specified endpoint

Parameters:
endpoint - The specific endpoint.
Returns:
The WSDL location or null if unknown.

getWsdl

public abstract java.io.InputStream getWsdl(java.lang.String uri)
                                     throws java.io.IOException
Get the WSDL for the specified endpoint.

Parameters:
uri - The URI representing the endpoint.
Returns:
The WSDL or null if unknown.
Throws:
java.io.IOException - for errors creating the stream

readWSDL

public abstract javax.wsdl.Definition readWSDL(java.net.URL wsdlURL)
                                        throws javax.wsdl.WSDLException
Get the definition for the WSDL at the specific location.

Parameters:
wsdlURL - The WSDL URL.
Returns:
The definition.
Throws:
javax.wsdl.WSDLException - For errors parsing the WSDL.

getClassLoader

public java.lang.ClassLoader getClassLoader(org.jboss.wsf.spi.deployment.Endpoint endpoint)
Get the context ClassLoader for the specified endpoint

Parameters:
endpoint - The specific endpoint.
Returns:
The context ClassLoader.