public class Java2WsdlAntTask
extends org.apache.tools.ant.Task
Constructor and Description |
---|
Java2WsdlAntTask() |
Modifier and Type | Method and Description |
---|---|
void |
addComplexType(ComplexType ct)
Nested element for Complex Types.
|
void |
addMapping(NamespaceMapping mapping)
add a mapping of namespaces to packages
|
void |
addMappingSet(MappingSet mappingset)
add a mapping of namespaces to packages
|
void |
addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
Adds a system property that tests can access.
|
org.apache.tools.ant.types.Path |
createClasspath()
Set the optional classpath
|
void |
execute()
execute the task
|
protected void |
generateServerSide(Emitter j2w,
String wsdlFileName)
Generate the server side artifacts from the generated WSDL
|
void |
setBindingName(String parameter)
The name to use use for the binding element.
|
void |
setClassName(String parameter)
the class name to import, eg. org.example.Foo.
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the optional classpath
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Set the reference to an optional classpath
|
void |
setDeploy(boolean deploy)
Sets the deploy flag
|
void |
setExclude(String exclude)
Comma separated list of methods to exclude from the wsdl file.
|
void |
setExtraClasses(String extraClasses)
A comma separated list of classes to add to the classpath.
|
void |
setImplClass(String parameter)
Sometimes extra information is available in the implementation class
file.
|
void |
setImportSchema(File parameter)
Option attribute that indicates the name of an XML Schema file that
should be physically imported into the generated WSDL.
|
void |
setInput(File parameter)
Optional attribute that indicates the name of the input wsdl file.
|
void |
setLocation(String parameter)
The url of the location of the service.
|
void |
setLocationImport(String parameter)
the location of the interface WSDL when generating an implementation WSDL
Required when outputImpl is set
|
void |
setMethods(String methods)
If this option is specified, only the indicated methods in your
interface class will be exported into the WSDL file.
|
void |
setNamespace(String parameter)
the target namespace.
|
void |
setNamespaceImpl(String parameter)
Namespace of the implementation WSDL.
|
void |
setOutput(File parameter)
The name of the output WSDL file.
|
void |
setOutputImpl(File parameter)
Use this option to indicate the name of the output implementation WSDL
file.
|
void |
setPortTypeName(String parameter)
Indicates the name to use use for the portType element.
|
void |
setServiceElementName(String serviceElementName)
the name of the service element.
|
void |
setServicePortName(String parameter)
service port name (obtained from location if not specified)
|
void |
setSoapAction(String soapAction)
The setter for the "soapAction" attribute
|
void |
setStopClasses(String stopClasses)
Comma separated list of classes which stop the Java2WSDL
inheritance search.
|
void |
setStyle(String style)
The style of the WSDL document: RPC, DOCUMENT or WRAPPED.
|
void |
setTypeMappingVersion(TypeMappingVersionEnum parameter)
the default type mapping registry to use.
|
void |
setUse(String use)
Set the use option
|
void |
setUseInheritedMethods(boolean parameter)
should inherited methods be exported too?
|
void |
traceParams(int logLevel)
trace out parameters
|
protected void |
validate()
validation code
|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
public void traceParams(int logLevel)
logLevel
- to log atProject.log(java.lang.String)
protected void validate() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if validation failedpublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void setOutput(File parameter)
parameter
- public void setImportSchema(File parameter) throws org.apache.tools.ant.BuildException
parameter
- org.apache.tools.ant.BuildException
public void setInput(File parameter)
parameter
- filenamepublic void setOutputImpl(File parameter)
parameter
- public void setLocation(String parameter)
parameter
- a URLpublic void setLocationImport(String parameter)
parameter
- URL?public void setClassName(String parameter)
parameter
- fully qualified class namepublic void setImplClass(String parameter)
parameter
- public void setServicePortName(String parameter)
parameter
- portnamepublic void setPortTypeName(String parameter)
parameter
- public void setBindingName(String parameter)
parameter
- public void setNamespace(String parameter)
parameter
- public void setNamespaceImpl(String parameter)
parameter
- public void setUseInheritedMethods(boolean parameter)
parameter
- public void setExclude(String exclude)
exclude
- public void setStopClasses(String stopClasses)
stopClasses
- public void setStyle(String style)
style
- public void addMapping(NamespaceMapping mapping)
public void addMappingSet(MappingSet mappingset)
public void setTypeMappingVersion(TypeMappingVersionEnum parameter)
parameter
- new versionpublic void setMethods(String methods)
methods
- list of methodspublic void setUse(String use)
public void setServiceElementName(String serviceElementName)
serviceElementName
- public void setExtraClasses(String extraClasses)
public void setSoapAction(String soapAction)
public void addComplexType(ComplexType ct)
ct
- public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath
- the classpath to use when loading classpublic org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
r
- the id of the Ant path instance to act as the classpathpublic void addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
sysp
- environment variable to addpublic void setDeploy(boolean deploy)
deploy
- true if deploy modeCopyright © The Apache Software Foundation. All Rights Reserved.