Package org.jboss.wsf.stack.cxf.tools
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
-
-
Field Summary
-
Fields inherited from class org.jboss.ws.api.tools.WSContractConsumer
PROVIDER_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description CXFConsumerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(URL wsdl)Generate the required artifacts using the specified WSDL URL.protected static intgetJVMMajorVersion()voidsetAdditionalCompilerClassPath(List<String> additionalCompilerClassPath)Sets the additional classpath to use if/when invoking the Java compiler.voidsetAdditionalHeaders(boolean additionalHeaders)Enables or disables processing of implicit SOAP headers (i.e.voidsetBindingFiles(List<File> bindingFiles)Specifies the JAX-WS and JAXB binding files to use on import operations.voidsetCatalog(File catalog)Sets the OASIS XML Catalog file to use for entity resolution.voidsetClientJar(File clientJar)Set the clientjar file namevoidsetEncoding(String encoding)Sets the charset encoding to be used for generating sourcesvoidsetExtension(boolean extension)Enables/Disables SOAP 1.2 binding extensionvoidsetGenerateSource(boolean generateSource)Enables/Disables Java source generation.voidsetMessageStream(PrintStream messageStream)Sets the PrintStream to use for status feedback.voidsetNoCompile(boolean nocompile)Enables/Disables Java source compilation.voidsetOutputDirectory(File directory)Sets the main output directory.voidsetSourceDirectory(File directory)Sets the source directory.voidsetTarget(String target)Set the target JAX-WS specification target.voidsetTargetPackage(String targetPackage)Sets the target package for generated source.voidsetWsdlLocation(String wsdlLocation)Sets the @@WebService.wsdlLocation and @@WebServiceClient.wsdlLocation attributes to a custom value.-
Methods inherited from class org.jboss.ws.api.tools.WSContractConsumer
consume, newInstance, newInstance
-
-
-
-
Method Detail
-
setBindingFiles
public void setBindingFiles(List<File> bindingFiles)
Description copied from class:WSContractConsumerSpecifies the JAX-WS and JAXB binding files to use on import operations.- Specified by:
setBindingFilesin classWSContractConsumer- Parameters:
bindingFiles- list of JAX-WS or JAXB binding files
-
setCatalog
public void setCatalog(File catalog)
Description copied from class:WSContractConsumerSets the OASIS XML Catalog file to use for entity resolution.- Specified by:
setCatalogin classWSContractConsumer- Parameters:
catalog- the OASIS XML Catalog file
-
setExtension
public void setExtension(boolean extension)
Description copied from class:WSContractConsumerEnables/Disables SOAP 1.2 binding extension- Specified by:
setExtensionin classWSContractConsumer- Parameters:
extension- whether or not to enable SOAP 1.2 binding extension
-
setGenerateSource
public void setGenerateSource(boolean generateSource)
Description copied from class:WSContractConsumerEnables/Disables Java source generation.- Specified by:
setGenerateSourcein classWSContractConsumer- Parameters:
generateSource- whether or not to generate Java source.
-
setMessageStream
public void setMessageStream(PrintStream messageStream)
Description copied from class:WSContractConsumerSets the PrintStream to use for status feedback. The simplest example would be to use System.out.- Specified by:
setMessageStreamin classWSContractConsumer- Parameters:
messageStream- the stream to use for status messages:
-
setOutputDirectory
public void setOutputDirectory(File directory)
Description copied from class:WSContractConsumerSets the main output directory. If the directory does not exist, it will be created.- Specified by:
setOutputDirectoryin classWSContractConsumer- Parameters:
directory- the root directory for generated files
-
setSourceDirectory
public void setSourceDirectory(File directory)
Description copied from class:WSContractConsumerSets 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:
setSourceDirectoryin classWSContractConsumer- Parameters:
directory- the root directory for generated source code
-
setTargetPackage
public void setTargetPackage(String targetPackage)
Description copied from class:WSContractConsumerSets the target package for generated source. If not specified the default is based off of the XML namespace.- Specified by:
setTargetPackagein classWSContractConsumer- Parameters:
targetPackage- the target package for generated source
-
setWsdlLocation
public void setWsdlLocation(String wsdlLocation)
Description copied from class:WSContractConsumerSets the @@WebService.wsdlLocation and @@WebServiceClient.wsdlLocation attributes to a custom value.- Specified by:
setWsdlLocationin classWSContractConsumer- Parameters:
wsdlLocation- the custom WSDL location to use in generated source
-
setEncoding
public void setEncoding(String encoding)
Description copied from class:WSContractConsumerSets the charset encoding to be used for generating sources- Specified by:
setEncodingin classWSContractConsumer- Parameters:
encoding- the charset encoding to be used for generating sources
-
setAdditionalCompilerClassPath
public void setAdditionalCompilerClassPath(List<String> additionalCompilerClassPath)
Description copied from class:WSContractConsumerSets the additional classpath to use if/when invoking the Java compiler. Typically an implementation will use the systemjava.class.pathproperty. 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:
setAdditionalCompilerClassPathin classWSContractConsumer- 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:WSContractConsumerEnables 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:
setAdditionalHeadersin classWSContractConsumer- Parameters:
additionalHeaders- a boolean enabling processing of implicit SOAP headers
-
setTarget
public void setTarget(String target)
Description copied from class:WSContractConsumerSet the target JAX-WS specification target. Allowed values are 2.0, 2.1 and 2.2- Specified by:
setTargetin classWSContractConsumer- Parameters:
target- the JAX-WS specification version.
-
setNoCompile
public void setNoCompile(boolean nocompile)
Description copied from class:WSContractConsumerEnables/Disables Java source compilation.- Specified by:
setNoCompilein classWSContractConsumer- Parameters:
nocompile- whether or not to compile Java source.
-
setClientJar
public void setClientJar(File clientJar)
Description copied from class:WSContractConsumerSet the clientjar file name- Specified by:
setClientJarin classWSContractConsumer- Parameters:
clientJar- client Jar file name
-
consume
public void consume(URL wsdl)
Description copied from class:WSContractConsumerGenerate the required artifacts using the specified WSDL URL. This method may be called more than once, although this is probably not desireable- Specified by:
consumein classWSContractConsumer- Parameters:
wsdl- the URL of the WSDL
-
getJVMMajorVersion
protected static int getJVMMajorVersion()
-
-