JBoss Wise API

org.jboss.wise.core.client.builder
Interface WSDynamicClientBuilder

All Known Implementing Classes:
ReflectionBasedWSDynamicClientBuilder

@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.

Author:
stefano.maestri@javalinux.it

Method Summary
 WSDynamicClientBuilder bindingFiles(java.util.List<java.io.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(java.io.File catelog)
          set the catelog file
 java.util.List<java.io.File> getBindingFiles()
           
 java.io.File getCatalogFile()
           
 java.lang.String getClientSpecificTmpDir()
           
 int getMaxThreadPoolSize()
           
 java.io.PrintStream getMessageStream()
           
 java.lang.String getNormalizedWsdlUrl()
           
 java.lang.String getPassword()
           
 java.lang.String getSecurityConfigFileURL()
           
 java.lang.String getSecurityConfigName()
           
 java.lang.String getTargetPackage()
           
 java.lang.String getTmpDir()
           
 java.lang.String getUserName()
           
 java.lang.String getWsdlURL()
           
 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(java.io.PrintStream messageStream)
          Sets the PrintStream to use for status feedback.
 WSDynamicClientBuilder password(java.lang.String password)
          set the password used in Basic Auth both for downloading wsdl and calling service
 WSDynamicClientBuilder securityConfigName(java.lang.String name)
          It is the config name sed by JbossWS to enable WS-SE.
 WSDynamicClientBuilder securityConfigUrl(java.lang.String url)
          It is the URL of config file used by JbossWS to enable WS-SE.
 WSDynamicClientBuilder targetPackage(java.lang.String targetPackage)
          force the package name used for generated client classes.
 WSDynamicClientBuilder tmpDir(java.lang.String tmpDir)
          set the temp direcoory location used to generate temporary client classes.
 WSDynamicClientBuilder userName(java.lang.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(java.lang.String wsdlURL)
          Set the wsdlURL to generate WS client
 

Method Detail

build

WSDynamicClient build()
                      throws java.lang.IllegalStateException,
                             java.net.ConnectException,
                             WiseRuntimeException
Build the WSDynamicClient with all parameters set on this class

Returns:
WSDynamicClient
Throws:
java.lang.IllegalStateException
java.net.ConnectException
WiseRuntimeException

wsdlURL

WSDynamicClientBuilder wsdlURL(java.lang.String wsdlURL)
Set the wsdlURL to generate WS client

Parameters:
wsdlURL -
Returns:
WSDynamicClient

userName

WSDynamicClientBuilder userName(java.lang.String userName)
set the userName used in Basic Auth both for downloading wsdl and calling service

Parameters:
userName -
Returns:
WSDynamicClient

password

WSDynamicClientBuilder password(java.lang.String password)
set the password used in Basic Auth both for downloading wsdl and calling service

Parameters:
password -
Returns:
WSDynamicClient

tmpDir

WSDynamicClientBuilder tmpDir(java.lang.String tmpDir)
set the temp direcoory location used to generate temporary client classes. Wise will generate there subdirecoty fo each instance of WSDynamicClient and take care of all cleanup when WSDynamicClient.close() is called

Parameters:
tmpDir -
Returns:
WSDynamicClient

targetPackage

WSDynamicClientBuilder targetPackage(java.lang.String targetPackage)
force the package name used for generated client classes. If it is't set wsconsume rules will e used: namespaces and/or bindingfiles

Parameters:
targetPackage -
Returns:
WSDynamicClient

bindingFiles

WSDynamicClientBuilder bindingFiles(java.util.List<java.io.File> bindings)
set the list of JAXB bindings files used by wsconsume

Parameters:
bindings -
Returns:
WSDynamicClient

catalogFile

WSDynamicClientBuilder catalogFile(java.io.File catelog)
set the catelog file

Parameters:
catelog -
Returns:
WSDynamicClient

securityConfigUrl

WSDynamicClientBuilder securityConfigUrl(java.lang.String url)
It is the URL of config file used by JbossWS to enable WS-SE. For more information about this file refer to our samples and/or to JBossWS documentation

Parameters:
url -
Returns:
WSDynamicClient

securityConfigName

WSDynamicClientBuilder securityConfigName(java.lang.String name)
It is the config name sed by JbossWS to enable WS-SE. For more information about this file refer to our samples and/or to JBossWS documentation

Parameters:
name -
Returns:
WSDynamicClient

keepSource

WSDynamicClientBuilder keepSource(boolean bool)
if it it set to true source code generated for client classes will be kept in tmpDir(String)

Parameters:
bool -
Returns:
WSDynamicClient

verbose

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)

Parameters:
bool -
Returns:
WSDynamicClient

messageStream

WSDynamicClientBuilder messageStream(java.io.PrintStream messageStream)
Sets the PrintStream to use for status feedback. The simplest example would be to use System.out.

Parameters:
messageStream -
Returns:
WSDynamicClient

maxThreadPoolSize

WSDynamicClientBuilder maxThreadPoolSize(int maxThreadPoolSize)
Set the max size of thread pool used to invoke in parallel WSMethod on the build WSDynamicClient. default value is 100.

Parameters:
maxThreadPoolSize -
Returns:
WSDynamicClient

getWsdlURL

java.lang.String getWsdlURL()

getUserName

java.lang.String getUserName()

getPassword

java.lang.String getPassword()

getTmpDir

java.lang.String getTmpDir()

getTargetPackage

java.lang.String getTargetPackage()

getBindingFiles

java.util.List<java.io.File> getBindingFiles()

getCatalogFile

java.io.File getCatalogFile()

getSecurityConfigFileURL

java.lang.String getSecurityConfigFileURL()

getSecurityConfigName

java.lang.String getSecurityConfigName()

isKeepSource

boolean isKeepSource()

isVerbose

boolean isVerbose()

getMessageStream

java.io.PrintStream getMessageStream()

getNormalizedWsdlUrl

java.lang.String getNormalizedWsdlUrl()

getClientSpecificTmpDir

java.lang.String getClientSpecificTmpDir()

getMaxThreadPoolSize

int getMaxThreadPoolSize()

JBoss Wise API

Copyright © 2008-2009 Jboss.org. All Rights Reserved.