|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.ws.wscompile.Options
com.sun.tools.ws.wscompile.WsimportOptions
public class WsimportOptions
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.tools.ws.wscompile.Options |
---|
Options.Target, Options.WeAreDone |
Field Summary | |
---|---|
java.util.List<Plugin> |
activePlugins
Plugin s that are enabled in this compilation. |
boolean |
additionalHeaders
-XadditionalHeaders |
java.io.File |
authFile
Authentication file |
java.lang.String |
clientjar
The -clientjar option to package client artifacts as jar |
java.util.List<java.lang.String> |
cmdlineJars
This captures jars passed on the commandline and passes them to XJC and puts them in the classpath for compilation |
static java.lang.String |
defaultAuthfile
|
java.lang.String |
defaultPackage
The -p option that should control the default Java package that will contain the generated code. |
boolean |
disableAuthenticator
Setting disableAuthenticator to true disables the DefaultAuthenticator. |
boolean |
disableSSLHostnameVerification
Setting disableSSLHostVerification to true disables the SSL Hostname verification while fetching the wsdls. |
org.xml.sax.EntityResolver |
entityResolver
Actually stores CatalogResolver , but the field
type is made to EntityResolver so that XJC can be
used even if resolver.jar is not available in the classpath. |
java.util.HashMap<java.lang.String,java.lang.String> |
extensionOptions
Additional arguments |
java.io.File |
implDestDir
The option indicates the dir where the jwsImpl will be generated. |
java.lang.String |
implPortName
optional, generated impl file only for the ordered portName Note: It is a QName string, formatted as: "{" + Namespace URI + "}" + local part |
java.lang.String |
implServiceName
optional, generated impl file only for the ordered serviceName Note: It is a QName string, formatted as: "{" + Namespace URI + "}" + local part |
boolean |
isGenerateJWS
optional, if true JWS file is generated |
boolean |
noAddressingBbinding
-Xno-addressing-databinding option to disable addressing namespace data binding. |
java.lang.String |
proxyAuth
|
boolean |
useBaseResourceAndURLToLoadWSDL
Setting useBaseResourceAndURLToLoadWSDL to true causes generated Service classes to load the WSDL file from a URL generated from the base resource. |
java.lang.String |
wsdlLocation
-wsdlLocation |
Fields inherited from class com.sun.tools.ws.wscompile.Options |
---|
classpath, compatibilityMode, debug, debugMode, destDir, disableXmlSecurity, encoding, EXTENSION, filer, javacOptions, keep, nocompile, quiet, sourceDir, STRICT, target, verbose |
Constructor Summary | |
---|---|
WsimportOptions()
|
Method Summary | |
---|---|
void |
addBindings(java.lang.String name)
|
protected void |
addFile(java.lang.String arg)
Adds a file from the argume |
void |
addGrammarRecursive(java.io.File dir)
Recursively scan directories and add all XSD files in it. |
void |
addHandlerChainConfiguration(org.w3c.dom.Element config)
|
void |
addSchema(java.io.File source)
|
void |
addSchema(org.xml.sax.InputSource is)
|
void |
addSchemmaBindFile(org.xml.sax.InputSource is)
|
void |
addWSDL(java.io.File source)
|
void |
addWSDL(org.xml.sax.InputSource is)
|
void |
addWSDLBindFile(org.xml.sax.InputSource is)
Adds a new input schema. |
protected void |
disableXmlSecurity()
|
java.util.List<Plugin> |
getAllPlugins()
Gets all the Plugin s discovered so far. |
com.sun.codemodel.JCodeModel |
getCodeModel()
|
java.lang.String |
getExtensionOption(java.lang.String argument)
Get extension argument |
org.w3c.dom.Element |
getHandlerChainConfiguration()
There is supposed to be one handler chain per generated SEI. |
org.xml.sax.InputSource[] |
getSchemaBindings()
|
com.sun.tools.xjc.api.SchemaCompiler |
getSchemaCompiler()
|
org.xml.sax.InputSource[] |
getSchemas()
|
org.xml.sax.InputSource[] |
getWSDLBindings()
|
org.xml.sax.InputSource[] |
getWSDLs()
|
void |
parseArguments(java.lang.String[] args)
Parses arguments and fill fields of this object. |
int |
parseArguments(java.lang.String[] args,
int i)
Parses an option args[i] and return
the number of tokens consumed. |
void |
parseBindings(ErrorReceiver receiver)
Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. |
void |
setCodeModel(com.sun.codemodel.JCodeModel codeModel)
|
void |
validate()
|
Methods inherited from class com.sun.tools.ws.wscompile.Options |
---|
addGeneratedFile, deleteGeneratedFiles, fileToURL, getClassLoader, getGeneratedFiles, getJavacOptions, isExtensionMode, pathToURLs, removeGeneratedFiles, requireArgument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String wsdlLocation
public org.xml.sax.EntityResolver entityResolver
CatalogResolver
, but the field
type is made to EntityResolver
so that XJC can be
used even if resolver.jar is not available in the classpath.
public java.lang.String defaultPackage
public java.lang.String clientjar
public boolean additionalHeaders
public java.io.File implDestDir
public java.lang.String implServiceName
public java.lang.String implPortName
public boolean isGenerateJWS
public boolean disableSSLHostnameVerification
public boolean useBaseResourceAndURLToLoadWSDL
public java.io.File authFile
public static final java.lang.String defaultAuthfile
public boolean disableAuthenticator
public java.lang.String proxyAuth
public java.util.HashMap<java.lang.String,java.lang.String> extensionOptions
public final java.util.List<Plugin> activePlugins
Plugin
s that are enabled in this compilation.
public java.util.List<java.lang.String> cmdlineJars
public boolean noAddressingBbinding
Constructor Detail |
---|
public WsimportOptions()
Method Detail |
---|
public com.sun.codemodel.JCodeModel getCodeModel()
public com.sun.tools.xjc.api.SchemaCompiler getSchemaCompiler()
public void setCodeModel(com.sun.codemodel.JCodeModel codeModel)
public java.util.List<Plugin> getAllPlugins()
Plugin
s discovered so far.
A plugins are enumerated when this method is called for the first time,
by taking Options.classpath
into account. That means
"-cp plugin.jar" has to come before you specify options to enable it.
public final void parseArguments(java.lang.String[] args) throws BadCommandLineException
parseArguments
in class Options
BadCommandLineException
- thrown when there's a problem in the command-line argumentspublic int parseArguments(java.lang.String[] args, int i) throws BadCommandLineException
Options
args[i]
and return
the number of tokens consumed.
parseArguments
in class Options
BadCommandLineException
- If the callee wants to provide a custom message for an error.public void validate() throws BadCommandLineException
BadCommandLineException
protected void addFile(java.lang.String arg) throws BadCommandLineException
Options
addFile
in class Options
arg
- a file, could be a wsdl or xsd or a Class
BadCommandLineException
public org.w3c.dom.Element getHandlerChainConfiguration()
public void addHandlerChainConfiguration(org.w3c.dom.Element config)
public org.xml.sax.InputSource[] getWSDLs()
public org.xml.sax.InputSource[] getSchemas()
public org.xml.sax.InputSource[] getWSDLBindings()
public org.xml.sax.InputSource[] getSchemaBindings()
public void addWSDL(java.io.File source)
public void addWSDL(org.xml.sax.InputSource is)
public void addSchema(java.io.File source)
public void addSchema(org.xml.sax.InputSource is)
public void addGrammarRecursive(java.io.File dir)
public void addWSDLBindFile(org.xml.sax.InputSource is)
public void addSchemmaBindFile(org.xml.sax.InputSource is)
public void addBindings(java.lang.String name) throws BadCommandLineException
BadCommandLineException
public final void parseBindings(ErrorReceiver receiver)
JAXBModelBuilder
receiver
- ErrorReceiver
public java.lang.String getExtensionOption(java.lang.String argument)
protected void disableXmlSecurity()
disableXmlSecurity
in class Options
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |