@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 WSDynamicClientBuilder
WSDynamicClient
IllegalStateException
- ExceptionWiseRuntimeException
- ExceptionWSDynamicClientBuilder.build()
protected WSDynamicClient createClient()
public final String getWsdlURL()
getWsdlURL
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getWsdlURL()
public final WSDynamicClientBuilder wsdlURL(String wsdlURL)
wsdlURL
in interface WSDynamicClientBuilder
wsdlURL
- StringWSDynamicClient
WSDynamicClientBuilder.wsdlURL(java.lang.String)
public final String getUserName()
getUserName
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getUserName()
public WSDynamicClientBuilder userName(String userName)
userName
in interface WSDynamicClientBuilder
userName
- StringWSDynamicClient
WSDynamicClientBuilder.userName(java.lang.String)
public final String getPassword()
getPassword
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getPassword()
public WSDynamicClientBuilder password(String password)
password
in interface WSDynamicClientBuilder
password
- StringWSDynamicClient
WSDynamicClientBuilder.password(java.lang.String)
public final String getTmpDir()
getTmpDir
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getTmpDir()
public final String getTargetPackage()
getTargetPackage
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getTargetPackage()
public final List<File> getBindingFiles()
getBindingFiles
in interface WSDynamicClientBuilder
public final File getCatalogFile()
getCatalogFile
in interface WSDynamicClientBuilder
public final void setCatelogFile(File catalog)
public WSDynamicClientBuilder targetPackage(String targetPackage)
targetPackage
in interface WSDynamicClientBuilder
targetPackage
- StringWSDynamicClient
WSDynamicClientBuilder.targetPackage(java.lang.String)
public WSDynamicClientBuilder tmpDir(String tmpDir)
WSDynamicClient
and take care of all cleanup when
WSDynamicClient.close() is calledtmpDir
in interface WSDynamicClientBuilder
tmpDir
- StringWSDynamicClient
WSDynamicClientBuilder.tmpDir(java.lang.String)
public WSDynamicClientBuilder bindingFiles(List<File> bindings)
WSDynamicClientBuilder
bindingFiles
in interface WSDynamicClientBuilder
bindings
- List of FilesWSDynamicClient
public WSDynamicClientBuilder catalogFile(File catalogFile)
WSDynamicClientBuilder
catalogFile
in interface WSDynamicClientBuilder
catalogFile
- FileWSDynamicClient
public String getSecurityConfigFileURL()
getSecurityConfigFileURL
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getSecurityConfigFileURL()
public String getSecurityConfigName()
getSecurityConfigName
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getSecurityConfigName()
public boolean isKeepSource()
isKeepSource
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.isKeepSource()
public boolean isVerbose()
isVerbose
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.isVerbose()
public boolean isExcludeNonSOAPPorts()
isExcludeNonSOAPPorts
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.isExcludeNonSOAPPorts()
public WSDynamicClientBuilder keepSource(boolean bool)
WSDynamicClientBuilder.tmpDir(String)
keepSource
in interface WSDynamicClientBuilder
bool
- booleanWSDynamicClient
WSDynamicClientBuilder.keepSource(boolean)
public WSDynamicClientBuilder securityConfigName(String name)
securityConfigName
in interface WSDynamicClientBuilder
name
- StringWSDynamicClient
WSDynamicClientBuilder.securityConfigName(java.lang.String)
public WSDynamicClientBuilder securityConfigUrl(String url)
securityConfigUrl
in interface WSDynamicClientBuilder
url
- StringWSDynamicClient
WSDynamicClientBuilder.securityConfigUrl(java.lang.String)
public WSDynamicClientBuilder verbose(boolean bool)
WSDynamicClientBuilder.messageStream(PrintStream)
verbose
in interface WSDynamicClientBuilder
bool
- booleanWSDynamicClient
WSDynamicClientBuilder.verbose(boolean)
public WSDynamicClientBuilder excludeNonSOAPPorts(boolean exclude)
excludeNonSOAPPorts
in interface WSDynamicClientBuilder
exclude
- booleanWSDynamicClient
WSDynamicClientBuilder.excludeNonSOAPPorts(boolean)
public String getNormalizedWsdlUrl()
getNormalizedWsdlUrl
in interface WSDynamicClientBuilder
public String getClientSpecificTmpDir()
getClientSpecificTmpDir
in interface WSDynamicClientBuilder
public PrintStream getMessageStream()
getMessageStream
in interface WSDynamicClientBuilder
public WSDynamicClientBuilder messageStream(PrintStream messageStream)
WSDynamicClientBuilder
messageStream
in interface WSDynamicClientBuilder
messageStream
- PrintStreamWSDynamicClient
public int getMaxThreadPoolSize()
getMaxThreadPoolSize
in interface WSDynamicClientBuilder
WSDynamicClientBuilder.getMaxThreadPoolSize()
public WSDynamicClientBuilder maxThreadPoolSize(int maxThreadPoolSize)
WSMethod
on the build WSDynamicClient
. default value is
100.maxThreadPoolSize
in interface WSDynamicClientBuilder
maxThreadPoolSize
- intWSDynamicClient
WSDynamicClientBuilder.maxThreadPoolSize(int)
Copyright © 2008–2015 JBoss.org. All rights reserved.