|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.wsf.spi.tools.WSContractConsumer
public abstract class WSContractConsumer
WSContractConsumer is responsible for generating JAX-WS client and server artifacts from the specified WSDL file. To implement a client, one would use the generated ___Service.java file. For a server, one only needs to provide an implementation class that implements the generated service endpoint interface.
Field Summary | |
---|---|
static java.lang.String |
PROVIDER_PROPERTY
|
Constructor Summary | |
---|---|
WSContractConsumer()
|
Method Summary | |
---|---|
void |
consume(java.lang.String wsdl)
Generate the required artifacts using the specified WSDL. |
abstract void |
consume(java.net.URL wsdl)
Generate the required artifacts using the specified WSDL URL. |
static WSContractConsumer |
newInstance()
Obtain a new instance of a WSContractConsumer. |
static WSContractConsumer |
newInstance(java.lang.ClassLoader loader)
Obtain a new instance of a WSContractConsumer. |
abstract void |
setAdditionalCompilerClassPath(java.util.List<java.lang.String> classPath)
Sets the additional classpath to use if/when invoking the Java compiler. |
abstract void |
setBindingFiles(java.util.List<java.io.File> bindingFiles)
Specifies the JAX-WS and JAXB binding files to use on import operations. |
abstract void |
setCatalog(java.io.File catalog)
Sets the OASIS XML Catalog file to use for entity resolution. |
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(java.io.PrintStream messageStream)
Sets the PrintStream to use for status feedback. |
abstract void |
setNoCompile(boolean nocompile)
Enables/Disables Java source compilation. |
abstract void |
setOutputDirectory(java.io.File directory)
Sets the main output directory. |
abstract void |
setSourceDirectory(java.io.File directory)
Sets the source directory. |
abstract void |
setTarget(java.lang.String target)
Set the target JAX-WS specification target. |
abstract void |
setTargetPackage(java.lang.String targetPackage)
Sets the target package for generated source. |
abstract void |
setWsdlLocation(java.lang.String wsdlLocation)
Sets the @@WebService.wsdlLocation and @@WebServiceClient.wsdlLocation attributes to a custom value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROVIDER_PROPERTY
Constructor Detail |
---|
public WSContractConsumer()
Method Detail |
---|
public static WSContractConsumer newInstance()
public static WSContractConsumer newInstance(java.lang.ClassLoader loader)
loader
- the ClassLoader to use
public abstract void setBindingFiles(java.util.List<java.io.File> bindingFiles)
bindingFiles
- list of JAX-WS or JAXB binding filespublic abstract void setCatalog(java.io.File catalog)
catalog
- the OASIS XML Catalog filepublic abstract void setOutputDirectory(java.io.File directory)
directory
- the root directory for generated filespublic abstract void setSourceDirectory(java.io.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(java.lang.String targetPackage)
targetPackage
- the target package for generated sourcepublic abstract void setWsdlLocation(java.lang.String wsdlLocation)
wsdlLocation
- the custom WSDL location to use in generated sourcepublic abstract void setMessageStream(java.io.PrintStream messageStream)
messageStream
- the stream to use for status messages:public abstract void setAdditionalCompilerClassPath(java.util.List<java.lang.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 setTarget(java.lang.String target)
2.0
target
- the JAX-WS specification version. Allowed values are 2.0, 2.1public abstract void consume(java.net.URL wsdl)
wsdl
- the URL of the WSDLpublic void consume(java.lang.String wsdl) throws java.net.MalformedURLException
wsdl
- a URL or local file path
java.net.MalformedURLException
- if wsdl is not a legal URL or local file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |