org.apache.axis2.wsdl.builder.wsdl4j
Class WSDL1ToWOMBuilder

java.lang.Object
  extended byorg.apache.axis2.wsdl.builder.wsdl4j.WSDL1ToWOMBuilder
All Implemented Interfaces:
WOMBuilder

public class WSDL1ToWOMBuilder
extends Object
implements WOMBuilder


Constructor Summary
WSDL1ToWOMBuilder()
           
 
Method Summary
 WSDLVersionWrapper build(InputStream in)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(InputStream in, WSDLComponentFactory wsdlComponentFactory)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(String uri)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(String uri, WSDLComponentFactory wsdlComponentFactory)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDL1ToWOMBuilder

public WSDL1ToWOMBuilder()
Method Detail

build

public WSDLVersionWrapper build(InputStream in)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.

Specified by:
build in interface WOMBuilder
Parameters:
in - InputStream from which the WSDL document can be read in.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException

build

public WSDLVersionWrapper build(InputStream in,
                                WSDLComponentFactory wsdlComponentFactory)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper. A WSDL Component Factory can be passed into the builder using which the WOM component can be built out of. For example: The Engine uses the WOM's components in the context hierarchy but those are extended components. (AxisService extends WSDLService.) So when deployment build the WOM it would prefer to get a AxisService built in place of a WSDLService. This can be achieved by passing the correct Component Factory that will instanciate the correct object for the WOM builder.

Specified by:
build in interface WOMBuilder
Parameters:
in - InputStream from which the WSDL document can be read in.
wsdlComponentFactory - The ComponentFactory that will be used to create the WOm components out of.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException

build

public WSDLVersionWrapper build(String uri)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.

Specified by:
build in interface WOMBuilder
Parameters:
uri - URI pointing to the WSDL document.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException

build

public WSDLVersionWrapper build(String uri,
                                WSDLComponentFactory wsdlComponentFactory)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper. A WSDL Component Factory can be passed into the builder using which the WOM component can be built. For example: The Engine uses the WOM's components in the context hierarchy but those are extended components. (AxisService extends WSDLService.) So when deployment build the WOM it would prefer to get a AxisService built in place of a WSDLService. This can be achieved by passing the correct Component Factory that will instanciate the correct object for the WOM builder.

Specified by:
build in interface WOMBuilder
Parameters:
uri - URI pointing to the WSDL document.
wsdlComponentFactory - The ComponentFactory that will be used to create the WOm components out of.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException