java.lang.Object
com.sun.tools.ws.wscompile.Options
com.sun.tools.ws.wscompile.WsimportOptions
- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.tools.ws.wscompile.Options
Options.Target, Options.WeAreDone
-
Field Summary
Modifier and TypeFieldDescriptionPlugin
s that are enabled in this compilation.boolean
-XadditionalHeadersAuthentication fileThe -clientjar option to package client artifacts as jarThis captures jars passed on the commandline and passes them to XJC and puts them in the classpath for compilationstatic final String
The -p option that should control the default Java package that will contain the generated code.boolean
Setting disableAuthenticator to true disables the DefaultAuthenticator.boolean
Setting disableSSLHostVerification to true disables the SSL Hostname verification while fetching the wsdls.Actually storescom.sun.org.apache.xml.internal.resolver.tools.CatalogResolver
, but the field type is made toEntityResolver
so that XJC can be used even if resolver.jar is not available in the classpath.Additional argumentsThe option indicates the dir where the jwsImpl will be generated.optional, generated impl file only for the ordered portName Note: It is a QName string, formatted as: "{" + Namespace URI + "}" + local partoptional, generated impl file only for the ordered serviceName Note: It is a QName string, formatted as: "{" + Namespace URI + "}" + local partboolean
optional, if true JWS file is generatedboolean
-Xno-addressing-databinding option to disable addressing namespace data binding.boolean
Setting useBaseResourceAndURLToLoadWSDL to true causes generated Service classes to load the WSDL file from a URL generated from the base resource.-wsdlLocation -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBindings
(String name) protected void
Adds a file from the argumevoid
addGrammarRecursive
(File dir) Recursively scan directories and add all XSD files in it.void
addHandlerChainConfiguration
(Element config) void
void
addSchema
(InputSource is) void
void
void
addWSDL
(InputSource is) void
Adds a new input schema.protected void
Gets all thePlugin
s discovered so far.com.sun.codemodel.JCodeModel
getExtensionOption
(String argument) Get extension argumentThere is supposed to be one handler chain per generated SEI.Gets Java module name option.com.sun.tools.xjc.api.SchemaCompiler
getWSDLs()
final void
parseArguments
(String[] args) Parses arguments and fill fields of this object.int
parseArguments
(String[] args, int i) Parses an optionargs[i]
and return the number of tokens consumed.final 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, addGeneratedFile, deleteGeneratedFiles, fileToURL, getClassLoader, getGeneratedFiles, getJavacOptions, isExtensionMode, pathToURLs, removeGeneratedFiles, requireArgument
-
Field Details
-
wsdlLocation
-wsdlLocation -
entityResolver
Actually storescom.sun.org.apache.xml.internal.resolver.tools.CatalogResolver
, but the field type is made toEntityResolver
so that XJC can be used even if resolver.jar is not available in the classpath. -
defaultPackage
The -p option that should control the default Java package that will contain the generated code. Null if unspecified. -
clientjar
The -clientjar option to package client artifacts as jar -
additionalHeaders
public boolean additionalHeaders-XadditionalHeaders -
implDestDir
The option indicates the dir where the jwsImpl will be generated. -
implServiceName
optional, generated impl file only for the ordered serviceName Note: It is a QName string, formatted as: "{" + Namespace URI + "}" + local part -
implPortName
optional, generated impl file only for the ordered portName Note: It is a QName string, formatted as: "{" + Namespace URI + "}" + local part -
isGenerateJWS
public boolean isGenerateJWSoptional, if true JWS file is generated -
disableSSLHostnameVerification
public boolean disableSSLHostnameVerificationSetting disableSSLHostVerification to true disables the SSL Hostname verification while fetching the wsdls. -XdisableSSLHostVerification -
useBaseResourceAndURLToLoadWSDL
public boolean useBaseResourceAndURLToLoadWSDLSetting useBaseResourceAndURLToLoadWSDL to true causes generated Service classes to load the WSDL file from a URL generated from the base resource. -XuseBaseResourceAndURLToLoadWSDL -
authFile
Authentication file -
defaultAuthfile
-
disableAuthenticator
public boolean disableAuthenticatorSetting disableAuthenticator to true disables the DefaultAuthenticator. -XdisableAuthenticator -
proxyAuth
-
extensionOptions
Additional arguments -
activePlugins
Plugin
s that are enabled in this compilation. -
cmdlineJars
This captures jars passed on the commandline and passes them to XJC and puts them in the classpath for compilation -
noAddressingBbinding
public boolean noAddressingBbinding-Xno-addressing-databinding option to disable addressing namespace data binding. This is experimental switch and will be working as a temporary workaround till jaxb can provide a better way to selelctively disable compiling of an schema component.
-
-
Constructor Details
-
WsimportOptions
public WsimportOptions()
-
-
Method Details
-
getCodeModel
public com.sun.codemodel.JCodeModel getCodeModel() -
getSchemaCompiler
public com.sun.tools.xjc.api.SchemaCompiler getSchemaCompiler() -
setCodeModel
public void setCodeModel(com.sun.codemodel.JCodeModel codeModel) -
getAllPlugins
Gets all thePlugin
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. -
getModuleName
Gets Java module name option.- Returns:
- Java module name option or
null
if this option was not set.
-
parseArguments
Parses arguments and fill fields of this object.- Overrides:
parseArguments
in classOptions
- Throws:
BadCommandLineException
- thrown when there's a problem in the command-line arguments
-
parseArguments
Description copied from class:Options
Parses an optionargs[i]
and return the number of tokens consumed.- Overrides:
parseArguments
in classOptions
- Returns:
- 0 if the argument is not understood. Returning 0 will let the caller report an error.
- Throws:
BadCommandLineException
- If the callee wants to provide a custom message for an error.
-
validate
- Throws:
BadCommandLineException
-
addFile
Description copied from class:Options
Adds a file from the argume- Overrides:
addFile
in classOptions
- Parameters:
arg
- a file, could be a wsdl or xsd or a Class- Throws:
BadCommandLineException
-
getHandlerChainConfiguration
There is supposed to be one handler chain per generated SEI. TODO: There is possible bug, how to associate a @HandlerChain with each port on the generated SEI. For now lets preserve the JAXWS 2.0 FCS behaviour and generate only one @HandlerChain on the SEI -
addHandlerChainConfiguration
-
getWSDLs
-
getSchemas
-
getWSDLBindings
-
getSchemaBindings
-
addWSDL
-
addWSDL
-
addSchema
-
addSchema
-
addGrammarRecursive
Recursively scan directories and add all XSD files in it. -
addWSDLBindFile
Adds a new input schema. -
addSchemmaBindFile
-
addBindings
- Throws:
BadCommandLineException
-
parseBindings
Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately to JAXB inJAXBModelBuilder
- Parameters:
receiver
-ErrorReceiver
-
getExtensionOption
Get extension argument -
disableXmlSecurity
protected void disableXmlSecurity()- Overrides:
disableXmlSecurity
in classOptions
-