com.sun.tools.ws.ant
Class WsImport2

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by com.sun.tools.ws.ant.WsTask2
                  extended by com.sun.tools.ws.ant.WsImport2
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

public class WsImport2
extends WsTask2

wscompile task for use with the JAXWS project.


Field Summary
protected  boolean xNoAddressingDatabinding
          -Xno-addressing-databinding
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
WsImport2()
           
 
Method Summary
 void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)
           
 void addConfiguredDepends(org.apache.tools.ant.types.FileSet fs)
          Nested <depends> element.
 void addConfiguredProduces(org.apache.tools.ant.types.FileSet fs)
          Nested <produces> element.
 void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog entityResolver)
           
 org.apache.tools.ant.types.Commandline.Argument createArg()
          Provides a way to directly pass wsimport commandline options through nested arg instead of a separate attribute for each option.
 org.apache.tools.ant.types.Commandline.Argument createXjcarg()
          Adds XJC argument.
 void execute()
          Called by the project to let the task do it's work
 java.io.File getCatalog()
           
 java.lang.String getClientjar()
          Gets the clientjar to output generated artifacts into a jar.
 java.io.File getImplDestDir()
           
 java.lang.String getImplPortName()
           
 java.lang.String getImplServiceName()
           
 java.lang.String getPackage()
           
 java.lang.String getWsdl()
           
 java.lang.String getWsdllocation()
           
 java.io.File getXauthfile()
           
 boolean getXdisableAuthenticator()
           
 boolean getxNoAddressingDatabinding()
           
 boolean isGenerateJWS()
           
 boolean isQuiet()
           
 boolean isXadditionalHeaders()
           
 boolean isXdebug()
           
 boolean isXUseBaseResourceAndURLToLoadWSDL()
           
protected  boolean runInVm(java.lang.String[] arguments, java.io.OutputStream out)
          Used to call the tool directly using API.
 void setBinding(java.lang.String binding)
           
 void setCatalog(java.io.File catalog)
          Adds a new catalog file.
 void setClientjar(java.lang.String clientjar)
          Sets the base directory to output generated class.
 void setdisableAuthenticator(boolean disableAuthenticator)
           
 void setGenerateJWS(boolean isGenerateJWS)
           
 void setImplDestDir(java.io.File base)
           
 void setImplPortName(java.lang.String base)
           
 void setImplServiceName(java.lang.String base)
           
 void setPackage(java.lang.String pkg)
           
 void setQuiet(boolean quiet)
           
 void setTarget(java.lang.String version)
           
protected  org.apache.tools.ant.types.CommandlineJava setupCommand()
          Set up command line to invoke.
 void setWsdl(java.lang.String wsdl)
           
 void setWsdllocation(java.lang.String wsdlLocation)
           
 void setXadditionalHeaders(boolean xadditionalHeaders)
           
 void setXauthfile(java.io.File xauthfile)
           
 void setXdebug(boolean xdebug)
           
 void setxNoAddressingDatabinding(boolean xNoAddressingDatabinding)
           
 void setXUseBaseResourceAndURLToLoadWSDL(boolean xuseBaseResourceAndURLToLoadWSDL)
           
 
Methods inherited from class com.sun.tools.ws.ant.WsTask2
createJavacarg, createJvmarg, execute, getDebug, getDestdir, getEncoding, getExtension, getFork, getIncludeantruntime, getIncludejavaruntime, getJavacargs, getKeep, getSourcedestdir, getVerbose, isFailonerror, isXendorsed, isXnocompile, setDebug, setDestdir, setEncoding, setExtension, setFailonerror, setFork, setIncludeantruntime, setIncludejavaruntime, setKeep, setSourcedestdir, setVerbose, setXendorsed, setXnocompile
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xNoAddressingDatabinding

protected boolean xNoAddressingDatabinding
-Xno-addressing-databinding

Constructor Detail

WsImport2

public WsImport2()
Method Detail

isXdebug

public boolean isXdebug()

setXdebug

public void setXdebug(boolean xdebug)

setXUseBaseResourceAndURLToLoadWSDL

public void setXUseBaseResourceAndURLToLoadWSDL(boolean xuseBaseResourceAndURLToLoadWSDL)

isXUseBaseResourceAndURLToLoadWSDL

public boolean isXUseBaseResourceAndURLToLoadWSDL()

isGenerateJWS

public boolean isGenerateJWS()

setGenerateJWS

public void setGenerateJWS(boolean isGenerateJWS)

getImplDestDir

public java.io.File getImplDestDir()

setImplDestDir

public void setImplDestDir(java.io.File base)

getImplServiceName

public java.lang.String getImplServiceName()

setImplServiceName

public void setImplServiceName(java.lang.String base)

getImplPortName

public java.lang.String getImplPortName()

setImplPortName

public void setImplPortName(java.lang.String base)

createArg

public org.apache.tools.ant.types.Commandline.Argument createArg()
Provides a way to directly pass wsimport commandline options through nested arg instead of a separate attribute for each option.

Returns:
argument created

isXadditionalHeaders

public boolean isXadditionalHeaders()

setXadditionalHeaders

public void setXadditionalHeaders(boolean xadditionalHeaders)

getClientjar

public java.lang.String getClientjar()
Gets the clientjar to output generated artifacts into a jar.

Returns:
jar file where to put generated artifacts.

setClientjar

public void setClientjar(java.lang.String clientjar)
Sets the base directory to output generated class.

Parameters:
clientjar - jar file where to put generated artifacts.

getWsdllocation

public java.lang.String getWsdllocation()

setWsdllocation

public void setWsdllocation(java.lang.String wsdlLocation)

addConfiguredXMLCatalog

public void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog entityResolver)

setPackage

public void setPackage(java.lang.String pkg)

getPackage

public java.lang.String getPackage()

createXjcarg

public org.apache.tools.ant.types.Commandline.Argument createXjcarg()
Adds XJC argument.

Returns:
XJC argument created.
Since:
2.1

getxNoAddressingDatabinding

public boolean getxNoAddressingDatabinding()

setxNoAddressingDatabinding

public void setxNoAddressingDatabinding(boolean xNoAddressingDatabinding)

isQuiet

public boolean isQuiet()

setQuiet

public void setQuiet(boolean quiet)

setTarget

public void setTarget(java.lang.String version)

addConfiguredDepends

public void addConfiguredDepends(org.apache.tools.ant.types.FileSet fs)
Nested <depends> element.

Parameters:
fs - FileSet to check for modifications.

addConfiguredProduces

public void addConfiguredProduces(org.apache.tools.ant.types.FileSet fs)
Nested <produces> element.

Parameters:
fs - FileSet to check for modifications.

setBinding

public void setBinding(java.lang.String binding)
Parameters:
binding - The external binding to set.

setCatalog

public void setCatalog(java.io.File catalog)
Adds a new catalog file.

Parameters:
catalog - catalog file to use.

getCatalog

public java.io.File getCatalog()

getWsdl

public java.lang.String getWsdl()
Returns:
Returns the wsdl.

setWsdl

public void setWsdl(java.lang.String wsdl)
Parameters:
wsdl - The wsdl to set.

getXauthfile

public java.io.File getXauthfile()

setXauthfile

public void setXauthfile(java.io.File xauthfile)

getXdisableAuthenticator

public boolean getXdisableAuthenticator()

setdisableAuthenticator

public void setdisableAuthenticator(boolean disableAuthenticator)

addConfiguredBinding

public void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)

setupCommand

protected org.apache.tools.ant.types.CommandlineJava setupCommand()
Description copied from class: WsTask2
Set up command line to invoke.

Overrides:
setupCommand in class WsTask2
Returns:
ready to run command line

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Called by the project to let the task do it's work

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

runInVm

protected boolean runInVm(java.lang.String[] arguments,
                          java.io.OutputStream out)
Description copied from class: WsTask2
Used to call the tool directly using API.

Specified by:
runInVm in class WsTask2
Parameters:
arguments - arguments to be passed to the tool
out - output for the tool
Returns:
true if tool succeed


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.