@ThreadSafe public class ReflectionBasedWSDynamicClientBuilder extends Object implements WSDynamicClientBuilder
| Constructor and Description |
|---|
ReflectionBasedWSDynamicClientBuilder() |
| Modifier and Type | Method and Description |
|---|---|
WSDynamicClientBuilder |
bindingFiles(List<File> bindings)
set the list of JAXB bindings files used by wsconsume
|
WSDynamicClient |
build()
Build the
WSDynamicClient with all parameters set on this class |
WSDynamicClientBuilder |
catalogFile(File catalogFile)
set the catelog file
|
protected WSDynamicClient |
createClient() |
WSDynamicClientBuilder |
excludeNonSOAPPorts(boolean exclude)
if it set to true non-SOAP wsdl ports will be excluded
|
List<File> |
getBindingFiles() |
File |
getCatalogFile() |
String |
getClientSpecificTmpDir() |
int |
getMaxThreadPoolSize() |
PrintStream |
getMessageStream() |
String |
getNormalizedWsdlUrl() |
String |
getPassword() |
String |
getSecurityConfigFileURL() |
String |
getSecurityConfigName() |
String |
getTargetPackage() |
String |
getTmpDir() |
String |
getUserName() |
String |
getWsdlURL() |
boolean |
isExcludeNonSOAPPorts() |
boolean |
isKeepSource() |
boolean |
isVerbose() |
WSDynamicClientBuilder |
keepSource(boolean bool)
if it it set to true source code generated for client classes will be
kept in
WSDynamicClientBuilder.tmpDir(String) |
WSDynamicClientBuilder |
maxThreadPoolSize(int maxThreadPoolSize)
Set the max size of thread pool used to invoke in parallel
WSMethod on the build WSDynamicClient. |
WSDynamicClientBuilder |
messageStream(PrintStream messageStream)
Sets the PrintStream to use for status feedback.
|
WSDynamicClientBuilder |
password(String password)
set the password used in Basic Auth both for downloading wsdl and calling
service
|
WSDynamicClientBuilder |
securityConfigName(String name)
It is the config name sed by JbossWS to enable WS-SE.
|
WSDynamicClientBuilder |
securityConfigUrl(String url)
It is the URL of config file used by JbossWS to enable WS-SE.
|
void |
setBindingFiles(List<File> bindings) |
void |
setCatelogFile(File catalog) |
WSDynamicClientBuilder |
targetPackage(String targetPackage)
force the package name used for generated client classes.
|
WSDynamicClientBuilder |
tmpDir(String tmpDir)
set the temp direcoory location used to generate temporary client
classes.
|
WSDynamicClientBuilder |
userName(String userName)
set the userName used in Basic Auth both for downloading wsdl and calling
service
|
WSDynamicClientBuilder |
verbose(boolean bool)
if it set to true wsconsume operation of class generation and compilation
will be verbose and its messages will be put on
WSDynamicClientBuilder.messageStream(PrintStream) |
WSDynamicClientBuilder |
wsdlURL(String wsdlURL)
Set the wsdlURL to generate WS client
|
public ReflectionBasedWSDynamicClientBuilder()
public WSDynamicClient build() throws IllegalStateException, WiseRuntimeException
WSDynamicClient with all parameters set on this classbuild in interface WSDynamicClientBuilderWSDynamicClientIllegalStateExceptionWiseRuntimeExceptionWSDynamicClientBuilder.build()protected WSDynamicClient createClient()
public final String getWsdlURL()
getWsdlURL in interface WSDynamicClientBuilderWSDynamicClientBuilder.getWsdlURL()public final WSDynamicClientBuilder wsdlURL(String wsdlURL)
wsdlURL in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.wsdlURL(java.lang.String)public final String getUserName()
getUserName in interface WSDynamicClientBuilderWSDynamicClientBuilder.getUserName()public WSDynamicClientBuilder userName(String userName)
userName in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.userName(java.lang.String)public final String getPassword()
getPassword in interface WSDynamicClientBuilderWSDynamicClientBuilder.getPassword()public WSDynamicClientBuilder password(String password)
password in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.password(java.lang.String)public final String getTmpDir()
getTmpDir in interface WSDynamicClientBuilderWSDynamicClientBuilder.getTmpDir()public final String getTargetPackage()
getTargetPackage in interface WSDynamicClientBuilderWSDynamicClientBuilder.getTargetPackage()public final List<File> getBindingFiles()
getBindingFiles in interface WSDynamicClientBuilderpublic final File getCatalogFile()
getCatalogFile in interface WSDynamicClientBuilderpublic final void setCatelogFile(File catalog)
public WSDynamicClientBuilder targetPackage(String targetPackage)
targetPackage in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.targetPackage(java.lang.String)public WSDynamicClientBuilder tmpDir(String tmpDir)
WSDynamicClient and take care of all cleanup when
WSDynamicClient.close() is calledtmpDir in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.tmpDir(java.lang.String)public WSDynamicClientBuilder bindingFiles(List<File> bindings)
WSDynamicClientBuilderbindingFiles in interface WSDynamicClientBuilderWSDynamicClientpublic WSDynamicClientBuilder catalogFile(File catalogFile)
WSDynamicClientBuildercatalogFile in interface WSDynamicClientBuilderWSDynamicClientpublic String getSecurityConfigFileURL()
getSecurityConfigFileURL in interface WSDynamicClientBuilderWSDynamicClientBuilder.getSecurityConfigFileURL()public String getSecurityConfigName()
getSecurityConfigName in interface WSDynamicClientBuilderWSDynamicClientBuilder.getSecurityConfigName()public boolean isKeepSource()
isKeepSource in interface WSDynamicClientBuilderWSDynamicClientBuilder.isKeepSource()public boolean isVerbose()
isVerbose in interface WSDynamicClientBuilderWSDynamicClientBuilder.isVerbose()public boolean isExcludeNonSOAPPorts()
isExcludeNonSOAPPorts in interface WSDynamicClientBuilderWSDynamicClientBuilder.isExcludeNonSOAPPorts()public WSDynamicClientBuilder keepSource(boolean bool)
WSDynamicClientBuilder.tmpDir(String)keepSource in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.keepSource(boolean)public WSDynamicClientBuilder securityConfigName(String name)
securityConfigName in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.securityConfigName(java.lang.String)public WSDynamicClientBuilder securityConfigUrl(String url)
securityConfigUrl in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.securityConfigUrl(java.lang.String)public WSDynamicClientBuilder verbose(boolean bool)
WSDynamicClientBuilder.messageStream(PrintStream)verbose in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.verbose(boolean)public WSDynamicClientBuilder excludeNonSOAPPorts(boolean exclude)
excludeNonSOAPPorts in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.excludeNonSOAPPorts(boolean)public String getNormalizedWsdlUrl()
getNormalizedWsdlUrl in interface WSDynamicClientBuilderpublic String getClientSpecificTmpDir()
getClientSpecificTmpDir in interface WSDynamicClientBuilderpublic PrintStream getMessageStream()
getMessageStream in interface WSDynamicClientBuilderpublic WSDynamicClientBuilder messageStream(PrintStream messageStream)
WSDynamicClientBuildermessageStream in interface WSDynamicClientBuilderWSDynamicClientpublic int getMaxThreadPoolSize()
getMaxThreadPoolSize in interface WSDynamicClientBuilderWSDynamicClientBuilder.getMaxThreadPoolSize()public WSDynamicClientBuilder maxThreadPoolSize(int maxThreadPoolSize)
WSMethod on the build WSDynamicClient. default value is
100.maxThreadPoolSize in interface WSDynamicClientBuilderWSDynamicClientWSDynamicClientBuilder.maxThreadPoolSize(int)Copyright © 2008–2013 JBoss.org. All rights reserved.