Class CXFProviderImpl

java.lang.Object
org.jboss.ws.api.tools.WSContractProvider
org.jboss.wsf.stack.cxf.tools.CXFProviderImpl

public class CXFProviderImpl extends WSContractProvider
A WSContractProvider for the CXF stack
Since:
01-Feb-2009
Author:
alessio.soldano@jboss.com
  • Constructor Details

    • CXFProviderImpl

      public CXFProviderImpl()
  • Method Details

    • setGenerateWsdl

      public void setGenerateWsdl(boolean generateWsdl)
      Description copied from class: WSContractProvider
      Enables/Disables WSDL generation.
      Specified by:
      setGenerateWsdl in class WSContractProvider
      Parameters:
      generateWsdl - whether or not to generate WSDL
    • setExtension

      public void setExtension(boolean extension)
      Description copied from class: WSContractProvider
      Enables/Disables SOAP 1.2 binding extension
      Specified by:
      setExtension in class WSContractProvider
      Parameters:
      extension - whether or not to enable SOAP 1.2 binding extension
    • setGenerateSource

      public void setGenerateSource(boolean generateSource)
      Description copied from class: WSContractProvider
      Enables/Disables Java source generation.
      Specified by:
      setGenerateSource in class WSContractProvider
      Parameters:
      generateSource - whether or not to generate Java source.
    • setOutputDirectory

      public void setOutputDirectory(File directory)
      Description copied from class: WSContractProvider
      Sets the main output directory. If the directory does not exist, it will be created.
      Specified by:
      setOutputDirectory in class WSContractProvider
      Parameters:
      directory - the root directory for generated files
    • setResourceDirectory

      public void setResourceDirectory(File directory)
      Description copied from class: WSContractProvider
      Sets the resource directory. This directory will contain any generated WSDL and XSD files. If the directory does not exist, it will be created. If not specified, the output directory will be used instead.
      Specified by:
      setResourceDirectory in class WSContractProvider
      Parameters:
      directory - the root directory for generated resource files
    • setSourceDirectory

      public void setSourceDirectory(File directory)
      Description copied from class: WSContractProvider
      Sets the source directory. This directory will contain any generated Java source. If the directory does not exist, it will be created. If not specified, the output directory will be used instead.
      Specified by:
      setSourceDirectory in class WSContractProvider
      Parameters:
      directory - the root directory for generated source code
    • setClassLoader

      public void setClassLoader(ClassLoader loader)
      Description copied from class: WSContractProvider
      Sets the ClassLoader used to discover types. This defaults to the one used in instantiation.
      Specified by:
      setClassLoader in class WSContractProvider
      Parameters:
      loader - the ClassLoader to use
    • setMessageStream

      public void setMessageStream(PrintStream messageStream)
      Description copied from class: WSContractProvider
      Sets the PrintStream to use for status feedback. The simplest example would be to use System.out.

      Example output:

       Generating WSDL: 
       TestMeService.wsdl 
       Writing Source:
       org/jboss/ws/tools/jaxws/TestMe.java
       org/jboss/ws/tools/jaxws/TestMeResponse.java 
       Writing Classes:
       org/jboss/ws/tools/jaxws/TestMe.class
       org/jboss/ws/tools/jaxws/TestMeResponse.class
       
      Specified by:
      setMessageStream in class WSContractProvider
      Parameters:
      messageStream - the stream to use for status messages:
    • setPortSoapAddress

      public void setPortSoapAddress(String address)
      Description copied from class: WSContractProvider
      Sets the soap:address to be used for the generated port in the wsdl. This is ignored if WSDL generation is disabled.
      Specified by:
      setPortSoapAddress in class WSContractProvider
      Parameters:
      address - soap address
    • provide

      public void provide(String endpointClass)
      Description copied from class: WSContractProvider
      Generates artifacts using the current settings. This method may be invoked more than once (e.g. multiple endpoints).
      Specified by:
      provide in class WSContractProvider
      Parameters:
      endpointClass - the name of the endpoint implementation bean
    • provide

      public void provide(Class<?> endpointClass)
      Description copied from class: WSContractProvider
      Generates artifacts using the current settings. This method may be invoked more than once (e.g. multiple endpoints).
      Specified by:
      provide in class WSContractProvider
      Parameters:
      endpointClass - the endpoint implementation bean