org.apache.axis2.jaxws.description.builder
Class JAXWSRIWSDLGenerator

java.lang.Object
  extended by org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator
All Implemented Interfaces:
SchemaSupplier, WSDLSupplier

public class JAXWSRIWSDLGenerator
extends java.lang.Object
implements SchemaSupplier, WSDLSupplier

This class will implement an interface that is defined by the MDQ code. It will be registered within the MDQ framework, and the MDQ code will call this when it finds an application that was deployed without WSDL. This class will use the WsGen tool to generate a WSDL Definition based on the Java source for the application.


Constructor Summary
JAXWSRIWSDLGenerator(AxisService axisService)
           
 
Method Summary
static java.lang.String expandDirs(java.lang.String dirPaths)
          Expand a directory path or list of directory paths (File.pathSeparator delimited) into a list of file paths of all the jar files in those directories.
 void generateWsdl(java.lang.String className, java.lang.String bindingType)
          This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL.
 void generateWsdl(java.lang.String className, java.lang.String bindingType, JAXWSCatalogManager catalogManager)
          This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL.
static JAXWSCatalogManager getCatalogManager(AxisService service)
          Get the CatalogManager associated with an AxisService
 java.lang.String getDefaultClasspath(java.lang.String webBase)
          Get the default classpath from various thingies in the message context
 org.apache.ws.commons.schema.XmlSchema getSchema(AxisService service, java.lang.String xsd)
           
 javax.wsdl.Definition getWSDL(AxisService service)
           
static boolean isJar(java.io.InputStream is)
          Check if this inputstream is a jar/zip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXWSRIWSDLGenerator

public JAXWSRIWSDLGenerator(AxisService axisService)
Method Detail

generateWsdl

public void generateWsdl(java.lang.String className,
                         java.lang.String bindingType)
                  throws WebServiceException
This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL. We will then read this file in from disk and create a Definition. After we are done with the file we will remove it from disk.

Throws:
WebServiceException

generateWsdl

public void generateWsdl(java.lang.String className,
                         java.lang.String bindingType,
                         JAXWSCatalogManager catalogManager)
                  throws WebServiceException
This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL. We will then read this file in from disk and create a Definition. After we are done with the file we will remove it from disk. This method accepts a CatalogManager as a parameter for the eventual use in by an XMLSchemaCollection.

Throws:
WebServiceException

getWSDL

public javax.wsdl.Definition getWSDL(AxisService service)
                              throws AxisFault
Specified by:
getWSDL in interface WSDLSupplier
Throws:
AxisFault

getSchema

public org.apache.ws.commons.schema.XmlSchema getSchema(AxisService service,
                                                        java.lang.String xsd)
                                                 throws AxisFault
Specified by:
getSchema in interface SchemaSupplier
Throws:
AxisFault

expandDirs

public static java.lang.String expandDirs(java.lang.String dirPaths)
Expand a directory path or list of directory paths (File.pathSeparator delimited) into a list of file paths of all the jar files in those directories.

Parameters:
dirPaths - The string containing the directory path or list of directory paths.
Returns:
The file paths of the jar files in the directories. This is an empty string if no files were found, and is terminated by an additional pathSeparator in all other cases.

isJar

public static boolean isJar(java.io.InputStream is)
Check if this inputstream is a jar/zip

Parameters:
is -
Returns:
true if inputstream is a jar

getCatalogManager

public static JAXWSCatalogManager getCatalogManager(AxisService service)
Get the CatalogManager associated with an AxisService

Returns:
the CatalogManager in use for this AxisService

getDefaultClasspath

public java.lang.String getDefaultClasspath(java.lang.String webBase)
Get the default classpath from various thingies in the message context

Parameters:
msgContext -
Returns:
default classpath


Copyright © 2007 Apache Web Services Project. All Rights Reserved.