public class WsimportOptions extends Options
Options.Target, Options.WeAreDone
Modifier and Type | Field and Description |
---|---|
List<Plugin> |
activePlugins
Plugin s that are enabled in this compilation. |
boolean |
additionalHeaders
-XadditionalHeaders
|
File |
authFile
Authentication file
|
String |
clientjar
The -clientjar option to package client artifacts as jar
|
List<String> |
cmdlineJars
This captures jars passed on the commandline and passes them to XJC and puts them in the classpath for compilation
|
static String |
defaultAuthfile |
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.
|
EntityResolver |
entityResolver
Actually stores
com.sun.org.apache.xml.internal.resolver.tools.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. |
HashMap<String,String> |
extensionOptions
Additional arguments
|
File |
implDestDir
The option indicates the dir where the jwsImpl will be generated.
|
String |
implPortName
optional, generated impl file only for the ordered portName
Note: It is a QName string, formatted as: "{" + Namespace URI + "}" + local part
|
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.
|
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.
|
String |
wsdlLocation
-wsdlLocation
|
Constructor and Description |
---|
WsimportOptions() |
Modifier and Type | Method and Description |
---|---|
void |
addBindings(String name) |
protected void |
addFile(String arg)
Adds a file from the argume
|
void |
addGrammarRecursive(File dir)
Recursively scan directories and add all XSD files in it.
|
void |
addHandlerChainConfiguration(Element config) |
void |
addSchema(File source) |
void |
addSchema(InputSource is) |
void |
addSchemmaBindFile(InputSource is) |
void |
addWSDL(File source) |
void |
addWSDL(InputSource is) |
void |
addWSDLBindFile(InputSource is)
Adds a new input schema.
|
protected void |
disableXmlSecurity() |
List<Plugin> |
getAllPlugins()
Gets all the
Plugin s discovered so far. |
com.sun.codemodel.JCodeModel |
getCodeModel() |
String |
getExtensionOption(String argument)
Get extension argument
|
Element |
getHandlerChainConfiguration()
There is supposed to be one handler chain per generated SEI.
|
InputSource[] |
getSchemaBindings() |
com.sun.tools.xjc.api.SchemaCompiler |
getSchemaCompiler() |
InputSource[] |
getSchemas() |
InputSource[] |
getWSDLBindings() |
InputSource[] |
getWSDLs() |
void |
parseArguments(String[] args)
Parses arguments and fill fields of this object.
|
int |
parseArguments(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() |
addGeneratedFile, deleteGeneratedFiles, fileToURL, getClassLoader, getGeneratedFiles, isExtensionMode, pathToURLs, removeGeneratedFiles, requireArgument
public String wsdlLocation
public EntityResolver entityResolver
com.sun.org.apache.xml.internal.resolver.tools.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 String defaultPackage
public String clientjar
public boolean additionalHeaders
public File implDestDir
public String implServiceName
public String implPortName
public boolean isGenerateJWS
public boolean disableSSLHostnameVerification
public boolean useBaseResourceAndURLToLoadWSDL
public File authFile
public static final String defaultAuthfile
public boolean disableAuthenticator
public String proxyAuth
public List<String> cmdlineJars
public boolean noAddressingBbinding
public com.sun.codemodel.JCodeModel getCodeModel()
public com.sun.tools.xjc.api.SchemaCompiler getSchemaCompiler()
public void setCodeModel(com.sun.codemodel.JCodeModel codeModel)
public 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(String[] args) throws BadCommandLineException
parseArguments
in class Options
BadCommandLineException
- thrown when there's a problem in the command-line argumentspublic int parseArguments(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(String arg) throws BadCommandLineException
Options
addFile
in class Options
arg
- a file, could be a wsdl or xsd or a ClassBadCommandLineException
public Element getHandlerChainConfiguration()
public void addHandlerChainConfiguration(Element config)
public InputSource[] getWSDLs()
public InputSource[] getSchemas()
public InputSource[] getWSDLBindings()
public InputSource[] getSchemaBindings()
public void addWSDL(File source)
public void addWSDL(InputSource is)
public void addSchema(File source)
public void addSchema(InputSource is)
public void addGrammarRecursive(File dir)
public void addWSDLBindFile(InputSource is)
public void addSchemmaBindFile(InputSource is)
public void addBindings(String name) throws BadCommandLineException
BadCommandLineException
public final void parseBindings(ErrorReceiver receiver)
JAXBModelBuilder
receiver
- ErrorReceiver
protected void disableXmlSecurity()
disableXmlSecurity
in class Options
Copyright © 2016 Oracle Corporation. All rights reserved.