Interface CxfBuildTimeConfig.Wsdl2JavaParameterSet
-
- Enclosing interface:
- CxfBuildTimeConfig
public static interface CxfBuildTimeConfig.Wsdl2JavaParameterSet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<List<String>>additionalParams()A comma separated list of additional command line parameters that should be passed to CXFwsdl2javatool along with the files selected byincludes()andexcludes().Optional<List<String>>asyncMethods()A comma separated list of SEI methods for which asynchronous sibling methods should be generated; similar toenableAsyncMappingin a JAX-WS binding fileOptional<List<String>>bareMethods()A comma separated list of SEI methods for which wrapper style sibling methods should be generated; similar toenableWrapperStylein JAX-WS binding fileOptional<List<String>>bindings()A list of paths pointing at JAXWS or JAXB binding files or XMLBeans context files.StringexceptionSuper()A fully qualified class name to use as a superclass for fault beans generated fromwsdl:faultelementsOptional<List<String>>excludeNamespaceUris()A comma separated list of WSDL schema namespace URIs to ignore when generating Java code.Optional<List<String>>excludes()A comma separated list of path patterns for selecting WSDL files which should not be processed withwsdl2javatool.Optional<List<String>>includes()A comma separated list of glob patterns for selecting WSDL files which should be processed withwsdl2javatool.Optional<List<String>>mimeMethods()A comma separated list of SEI methods for whichmime:contentmapping should be enabled; similar toenableMIMEContentin JAX-WS binding fileOptional<List<String>>packageNames()A comma separated list of tokens; each token can be one of the following: A Java package under which the Java source files should be generated A string of the formnamespaceURI=packageName- in this case the entities coming from the given namespace URI will be generated under the given Java package.Optional<String>serviceName()The WSDL service name to use for the generated code.booleanvalidate()Iftrue, WSDLs are validated before processing; otherwise the WSDLs are not validated.Optional<String>wsdlLocation()Specifies the value of the@WebServiceClientannotation's wsdlLocation property.Optional<List<String>>xjc()A comma separated list of XJC extensions to enable.
-
-
-
Method Detail
-
includes
Optional<List<String>> includes()
A comma separated list of glob patterns for selecting WSDL files which should be processed withwsdl2javatool. The paths are relative tosrc/main/resourcesorsrc/test/resourcesdirectories of the current Maven or Gradle module. The glob syntax is specified inio.quarkus.util.GlobUtil.Examples:
calculator.wsdl,fruits.wsdlwill matchsrc/main/resources/calculator.wsdlandsrc/main/resources/fruits.wsdlunder the current Maven or Gradle module, but will not match anything likesrc/main/resources/subdir/calculator.wsdlmy-*-service.wsdlwill matchsrc/main/resources/my-foo-service.wsdlandsrc/main/resources/my-bar-service.wsdl**.wsdlwill match any of the above
wsdl2javaexecution for each of the matching WSDL files. If you need differentadditionalParams()for each WSDL file, you may want to define a separate named parameter set for each one of them. Here is an example:# Parameters for foo.wsdl quarkus.cxf.codegen.wsdl2java.foo-params.includes = wsdl/foo.wsdl quarkus.cxf.codegen.wsdl2java.foo-params.wsdl-location = wsdl/foo.wsdl # Parameters for bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.includes = wsdl/bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.wsdl-location = wsdl/bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.xjc = ts
Note that file extensions other than
.wsdlwill work during normal builds, but changes in the matching files may get overseen in Quarkus dev mode. Always using the.wsdlextension is thus recommended.There is no default value for this option, so
wsdl2javacode generation is disabled by default.Specifying
quarkus.cxf.codegen.wsdl2java.my-name.excludeswithout setting anyincludeswill cause a build time error.Make sure that the file sets selected by
quarkus.cxf.codegen.wsdl2java.includesandquarkus.cxf.codegen.wsdl2java.[whatever-name].includesdo not overlap. Otherwise a build time exception will be thrown.The files from
src/main/resourcesselected byincludesandexcludesare automatically included in native image and therefore you do not need to include them viaquarkus.cxf.wsdl-path(deprecated) orquarkus.native.resources.includes/excludes.
-
excludes
Optional<List<String>> excludes()
A comma separated list of path patterns for selecting WSDL files which should not be processed withwsdl2javatool. The paths are relative tosrc/main/resourcesorsrc/test/resourcesdirectories of the current Maven or Gradle module. Same syntax asincludes.
-
packageNames
@Wsdl2JavaParam(value="-p", collection=commaSeparated) Optional<List<String>> packageNames()
A comma separated list of tokens; each token can be one of the following:- A Java package under which the Java source files should be generated
- A string of the form
namespaceURI=packageName- in this case the entities coming from the given namespace URI will be generated under the given Java package.
This will be passed as option
-ptowsdl2java
-
excludeNamespaceUris
@Wsdl2JavaParam(value="-nexclude", collection=multiParam) Optional<List<String>> excludeNamespaceUris()
A comma separated list of WSDL schema namespace URIs to ignore when generating Java code.This will be passed as option
-nexcludetowsdl2java
-
serviceName
@Wsdl2JavaParam("-sn") Optional<String> serviceName()
The WSDL service name to use for the generated code.This will be passed as option
-sntowsdl2java
-
bindings
@Wsdl2JavaParam(value="-b", collection=multiParam) Optional<List<String>> bindings()
A list of paths pointing at JAXWS or JAXB binding files or XMLBeans context files. The path to be either absolute or relative to the current Maven or Gradle module.This will be passed as option
-btowsdl2java
-
validate
@WithDefault("false") @Wsdl2JavaParam(value="-validate", transformer=bool) boolean validate()Iftrue, WSDLs are validated before processing; otherwise the WSDLs are not validated.This will be passed as option
-validatetowsdl2java
-
wsdlLocation
@Wsdl2JavaParam("-wsdlLocation") Optional<String> wsdlLocation()
Specifies the value of the@WebServiceClientannotation's wsdlLocation property.This will be passed as option
-wsdlLocationtowsdl2java
-
xjc
@Wsdl2JavaParam(value="-xjc", collection=xjc) Optional<List<String>> xjc()
A comma separated list of XJC extensions to enable. The following extensions are available throughio.quarkiverse.cxf:quarkus-cxf-xjc-pluginsdependency:bg- generategetX()methods for boolean fields instead ofisX()bgi- generate bothisX()andgetX()methods for boolean fieldsdv- initialize fields mapped from elements/attributes with their default valuesjavadoc- generates JavaDoc based onxsd:documentationproperty-listener- add a property listener and the code for triggering the property change events to setter methodsts- generatetoString()methodswsdlextension- generate WSDL extension methods in root classes
These values correspond to
-wsdl2javaoptions-xjc-Xbg,-xjc-Xbgi,-xjc-Xdv,-xjc-Xjavadoc,-xjc-Xproperty-listener,-xjc-Xtsand-xjc-Xwsdlextensionrespectively.
-
exceptionSuper
@WithDefault("java.lang.Exception") @Wsdl2JavaParam("-exceptionSuper") String exceptionSuper()A fully qualified class name to use as a superclass for fault beans generated fromwsdl:faultelementsThis will be passed as option
-exceptionSupertowsdl2java
-
asyncMethods
@Wsdl2JavaParam(value="-asyncMethods", collection=commaSeparated) Optional<List<String>> asyncMethods()
A comma separated list of SEI methods for which asynchronous sibling methods should be generated; similar toenableAsyncMappingin a JAX-WS binding fileThis will be passed as option
-asyncMethodstowsdl2java
-
bareMethods
@Wsdl2JavaParam(value="-bareMethods", collection=commaSeparated) Optional<List<String>> bareMethods()
A comma separated list of SEI methods for which wrapper style sibling methods should be generated; similar toenableWrapperStylein JAX-WS binding fileThis will be passed as option
-bareMethodstowsdl2java
-
mimeMethods
@Wsdl2JavaParam(value="-mimeMethods", collection=commaSeparated) Optional<List<String>> mimeMethods()
A comma separated list of SEI methods for whichmime:contentmapping should be enabled; similar toenableMIMEContentin JAX-WS binding fileThis will be passed as option
-mimeMethodstowsdl2java
-
additionalParams
Optional<List<String>> additionalParams()
A comma separated list of additional command line parameters that should be passed to CXFwsdl2javatool along with the files selected byincludes()andexcludes(). Example:-keep,-dex,false. Checkwsdl2javadocumentation for all supported options.
-
-