Class CXFConsumerImpl

java.lang.Object
org.jboss.ws.api.tools.WSContractConsumer
org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl

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

    • CXFConsumerImpl

      public CXFConsumerImpl()
  • Method Details

    • setBindingFiles

      public void setBindingFiles(List<File> bindingFiles)
      Description copied from class: WSContractConsumer
      Specifies the JAX-WS and JAXB binding files to use on import operations.
      Specified by:
      setBindingFiles in class WSContractConsumer
      Parameters:
      bindingFiles - list of JAX-WS or JAXB binding files
    • setCatalog

      public void setCatalog(File catalog)
      Description copied from class: WSContractConsumer
      Sets the OASIS XML Catalog file to use for entity resolution.
      Specified by:
      setCatalog in class WSContractConsumer
      Parameters:
      catalog - the OASIS XML Catalog file
    • setExtension

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

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

      public void setMessageStream(PrintStream messageStream)
      Description copied from class: WSContractConsumer
      Sets the PrintStream to use for status feedback. The simplest example would be to use System.out.
      Specified by:
      setMessageStream in class WSContractConsumer
      Parameters:
      messageStream - the stream to use for status messages:
    • setOutputDirectory

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

      public void setSourceDirectory(File directory)
      Description copied from class: WSContractConsumer
      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 WSContractConsumer
      Parameters:
      directory - the root directory for generated source code
    • setTargetPackage

      public void setTargetPackage(String targetPackage)
      Description copied from class: WSContractConsumer
      Sets the target package for generated source. If not specified the default is based off of the XML namespace.
      Specified by:
      setTargetPackage in class WSContractConsumer
      Parameters:
      targetPackage - the target package for generated source
    • setWsdlLocation

      public void setWsdlLocation(String wsdlLocation)
      Description copied from class: WSContractConsumer
      Sets the @@WebService.wsdlLocation and @@WebServiceClient.wsdlLocation attributes to a custom value.
      Specified by:
      setWsdlLocation in class WSContractConsumer
      Parameters:
      wsdlLocation - the custom WSDL location to use in generated source
    • setEncoding

      public void setEncoding(String encoding)
      Description copied from class: WSContractConsumer
      Sets the charset encoding to be used for generating sources
      Specified by:
      setEncoding in class WSContractConsumer
      Parameters:
      encoding - the charset encoding to be used for generating sources
    • setAdditionalCompilerClassPath

      public void setAdditionalCompilerClassPath(List<String> additionalCompilerClassPath)
      Description copied from class: WSContractConsumer
      Sets the additional classpath to use if/when invoking the Java compiler. Typically an implementation will use the system java.class.path property. So for most normal applications this method is not needed. However, if this API is being used from an isolated classloader, then it needs to be called in order to reference all jars that are required by the implementation.
      Specified by:
      setAdditionalCompilerClassPath in class WSContractConsumer
      Parameters:
      additionalCompilerClassPath - a list of strings where each entry references a single jar or directory
    • setAdditionalHeaders

      public void setAdditionalHeaders(boolean additionalHeaders)
      Description copied from class: WSContractConsumer
      Enables or disables processing of implicit SOAP headers (i.e. SOAP headers defined in the wsdl:binding but not wsdl:portType section.) Default is false.
      Specified by:
      setAdditionalHeaders in class WSContractConsumer
      Parameters:
      additionalHeaders - a boolean enabling processing of implicit SOAP headers
    • setTarget

      public void setTarget(String target)
      Description copied from class: WSContractConsumer
      Set the target JAX-WS specification target. Allowed values are 2.0, 2.1 and 2.2
      Specified by:
      setTarget in class WSContractConsumer
      Parameters:
      target - the JAX-WS specification version.
    • setNoCompile

      public void setNoCompile(boolean nocompile)
      Description copied from class: WSContractConsumer
      Enables/Disables Java source compilation.
      Specified by:
      setNoCompile in class WSContractConsumer
      Parameters:
      nocompile - whether or not to compile Java source.
    • setClientJar

      public void setClientJar(File clientJar)
      Description copied from class: WSContractConsumer
      Set the clientjar file name
      Specified by:
      setClientJar in class WSContractConsumer
      Parameters:
      clientJar - client Jar file name
    • consume

      public void consume(URL wsdl)
      Description copied from class: WSContractConsumer
      Generate the required artifacts using the specified WSDL URL. This method may be called more than once, although this is probably not desireable
      Specified by:
      consume in class WSContractConsumer
      Parameters:
      wsdl - the URL of the WSDL
    • getJVMMajorVersion

      protected static int getJVMMajorVersion()