public class CXFConsumerImpl extends WSContractConsumer
PROVIDER_PROPERTY
Constructor and Description |
---|
CXFConsumerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
consume(URL wsdl)
Generate the required artifacts using the specified WSDL URL.
|
protected static int |
getJVMMajorVersion() |
void |
setAdditionalCompilerClassPath(List<String> additionalCompilerClassPath)
Sets the additional classpath to use if/when invoking the Java compiler.
|
void |
setAdditionalHeaders(boolean additionalHeaders)
Enables or disables processing of implicit SOAP headers (i.e.
|
void |
setBindingFiles(List<File> bindingFiles)
Specifies the JAX-WS and JAXB binding files to use on import operations.
|
void |
setCatalog(File catalog)
Sets the OASIS XML Catalog file to use for entity resolution.
|
void |
setClientJar(File clientJar)
Set the clientjar file name
|
void |
setEncoding(String encoding)
Sets the charset encoding to be used for generating sources
|
void |
setExtension(boolean extension)
Enables/Disables SOAP 1.2 binding extension
|
void |
setGenerateSource(boolean generateSource)
Enables/Disables Java source generation.
|
void |
setMessageStream(PrintStream messageStream)
Sets the PrintStream to use for status feedback.
|
void |
setNoCompile(boolean nocompile)
Enables/Disables Java source compilation.
|
void |
setOutputDirectory(File directory)
Sets the main output directory.
|
void |
setSourceDirectory(File directory)
Sets the source directory.
|
void |
setTarget(String target)
Set the target JAX-WS specification target.
|
void |
setTargetPackage(String targetPackage)
Sets the target package for generated source.
|
void |
setWsdlLocation(String wsdlLocation)
Sets the @@WebService.wsdlLocation and @@WebServiceClient.wsdlLocation attributes to a custom value.
|
consume, newInstance, newInstance
public void setBindingFiles(List<File> bindingFiles)
WSContractConsumer
setBindingFiles
in class WSContractConsumer
bindingFiles
- list of JAX-WS or JAXB binding filespublic void setCatalog(File catalog)
WSContractConsumer
setCatalog
in class WSContractConsumer
catalog
- the OASIS XML Catalog filepublic void setExtension(boolean extension)
WSContractConsumer
setExtension
in class WSContractConsumer
extension
- whether or not to enable SOAP 1.2 binding extensionpublic void setGenerateSource(boolean generateSource)
WSContractConsumer
setGenerateSource
in class WSContractConsumer
generateSource
- whether or not to generate Java source.public void setMessageStream(PrintStream messageStream)
WSContractConsumer
setMessageStream
in class WSContractConsumer
messageStream
- the stream to use for status messages:public void setOutputDirectory(File directory)
WSContractConsumer
setOutputDirectory
in class WSContractConsumer
directory
- the root directory for generated filespublic void setSourceDirectory(File directory)
WSContractConsumer
setSourceDirectory
in class WSContractConsumer
directory
- the root directory for generated source codepublic void setTargetPackage(String targetPackage)
WSContractConsumer
setTargetPackage
in class WSContractConsumer
targetPackage
- the target package for generated sourcepublic void setWsdlLocation(String wsdlLocation)
WSContractConsumer
setWsdlLocation
in class WSContractConsumer
wsdlLocation
- the custom WSDL location to use in generated sourcepublic void setEncoding(String encoding)
WSContractConsumer
setEncoding
in class WSContractConsumer
encoding
- the charset encoding to be used for generating sourcespublic void setAdditionalCompilerClassPath(List<String> additionalCompilerClassPath)
WSContractConsumer
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.setAdditionalCompilerClassPath
in class WSContractConsumer
additionalCompilerClassPath
- a list of strings where each entry references a
single jar or directorypublic void setAdditionalHeaders(boolean additionalHeaders)
WSContractConsumer
setAdditionalHeaders
in class WSContractConsumer
additionalHeaders
- a boolean enabling processing of implicit SOAP headerspublic void setTarget(String target)
WSContractConsumer
setTarget
in class WSContractConsumer
target
- the JAX-WS specification version.public void setNoCompile(boolean nocompile)
WSContractConsumer
setNoCompile
in class WSContractConsumer
nocompile
- whether or not to compile Java source.public void setClientJar(File clientJar)
WSContractConsumer
setClientJar
in class WSContractConsumer
clientJar
- client Jar file namepublic void consume(URL wsdl)
WSContractConsumer
consume
in class WSContractConsumer
wsdl
- the URL of the WSDLprotected static int getJVMMajorVersion()
Copyright © 2021 JBoss by Red Hat. All rights reserved.