@ThreadSafe
public interface WSDynamicClientBuilder
WSDynamicClientBuilder
is an interface to define builder for various
kind of implementation of WiseDynamicClient Indirect build permit to easy
inject different implementation of WSDynamicClient
.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 catelog)
set the catelog file
|
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
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.
|
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
messageStream(PrintStream) |
WSDynamicClientBuilder |
wsdlURL(String wsdlURL)
Set the wsdlURL to generate WS client
|
WSDynamicClient build() throws IllegalStateException, ConnectException, WiseRuntimeException
WSDynamicClient
with all parameters set on this classWSDynamicClient
IllegalStateException
- ExceptionConnectException
- ExceptionWiseRuntimeException
- ExceptionWSDynamicClientBuilder wsdlURL(String wsdlURL)
wsdlURL
- StringWSDynamicClient
WSDynamicClientBuilder userName(String userName)
userName
- StringWSDynamicClient
WSDynamicClientBuilder password(String password)
password
- StringWSDynamicClient
WSDynamicClientBuilder tmpDir(String tmpDir)
WSDynamicClient
and take care of all cleanup when
WSDynamicClient.close() is calledtmpDir
- StringWSDynamicClient
WSDynamicClientBuilder targetPackage(String targetPackage)
targetPackage
- StringWSDynamicClient
WSDynamicClientBuilder bindingFiles(List<File> bindings)
bindings
- List of FilesWSDynamicClient
WSDynamicClientBuilder catalogFile(File catelog)
catelog
- FileWSDynamicClient
WSDynamicClientBuilder securityConfigUrl(String url)
url
- StringWSDynamicClient
WSDynamicClientBuilder securityConfigName(String name)
name
- StringWSDynamicClient
WSDynamicClientBuilder keepSource(boolean bool)
tmpDir(String)
bool
- booleanWSDynamicClient
WSDynamicClientBuilder verbose(boolean bool)
messageStream(PrintStream)
bool
- booleanWSDynamicClient
WSDynamicClientBuilder excludeNonSOAPPorts(boolean exclude)
exclude
- booleanWSDynamicClient
WSDynamicClientBuilder messageStream(PrintStream messageStream)
messageStream
- PrintStreamWSDynamicClient
WSDynamicClientBuilder maxThreadPoolSize(int maxThreadPoolSize)
WSMethod
on the build WSDynamicClient
. default value is
100.maxThreadPoolSize
- intWSDynamicClient
String getWsdlURL()
String getUserName()
String getPassword()
String getTmpDir()
String getTargetPackage()
File getCatalogFile()
String getSecurityConfigFileURL()
String getSecurityConfigName()
boolean isKeepSource()
boolean isVerbose()
boolean isExcludeNonSOAPPorts()
PrintStream getMessageStream()
String getNormalizedWsdlUrl()
String getClientSpecificTmpDir()
int getMaxThreadPoolSize()
Copyright © 2008–2015 JBoss.org. All rights reserved.