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