JBoss Wise API

org.jboss.wise.core.client.impl.reflection.builder
Class ReflectionBasedWSDynamicClientBuilder

java.lang.Object
  extended by org.jboss.wise.core.client.impl.reflection.builder.ReflectionBasedWSDynamicClientBuilder
All Implemented Interfaces:
WSDynamicClientBuilder

@ThreadSafe
public class ReflectionBasedWSDynamicClientBuilder
extends java.lang.Object
implements WSDynamicClientBuilder

Author:
stefano.maestri@javalinux.it, alessio.soldano@jboss.com

Constructor Summary
ReflectionBasedWSDynamicClientBuilder()
           
 
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 catalogFile)
          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 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(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.
 void setBindingFiles(java.util.List<java.io.File> bindings)
           
 void setCatelogFile(java.io.File catalog)
           
 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 WSDynamicClientBuilder.messageStream(PrintStream)
 WSDynamicClientBuilder wsdlURL(java.lang.String wsdlURL)
          Set the wsdlURL to generate WS client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionBasedWSDynamicClientBuilder

public ReflectionBasedWSDynamicClientBuilder()
Method Detail

build

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

Specified by:
build in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
Throws:
java.lang.IllegalStateException
WiseRuntimeException
See Also:
WSDynamicClientBuilder.build()

getWsdlURL

public final java.lang.String getWsdlURL()

Specified by:
getWsdlURL in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getWsdlURL()

wsdlURL

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

Specified by:
wsdlURL in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.wsdlURL(java.lang.String)

getUserName

public final java.lang.String getUserName()

Specified by:
getUserName in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getUserName()

userName

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

Specified by:
userName in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.userName(java.lang.String)

getPassword

public final java.lang.String getPassword()

Specified by:
getPassword in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getPassword()

password

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

Specified by:
password in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.password(java.lang.String)

getTmpDir

public final java.lang.String getTmpDir()

Specified by:
getTmpDir in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getTmpDir()

getTargetPackage

public final java.lang.String getTargetPackage()

Specified by:
getTargetPackage in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getTargetPackage()

getBindingFiles

public final java.util.List<java.io.File> getBindingFiles()
Specified by:
getBindingFiles in interface WSDynamicClientBuilder

getCatalogFile

public final java.io.File getCatalogFile()
Specified by:
getCatalogFile in interface WSDynamicClientBuilder

setBindingFiles

public final void setBindingFiles(java.util.List<java.io.File> bindings)

setCatelogFile

public final void setCatelogFile(java.io.File catalog)

targetPackage

public 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

Specified by:
targetPackage in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.targetPackage(java.lang.String)

tmpDir

public 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

Specified by:
tmpDir in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.tmpDir(java.lang.String)

bindingFiles

public WSDynamicClientBuilder bindingFiles(java.util.List<java.io.File> bindings)
Description copied from interface: WSDynamicClientBuilder
set the list of JAXB bindings files used by wsconsume

Specified by:
bindingFiles in interface WSDynamicClientBuilder
Returns:
WSDynamicClient

catalogFile

public WSDynamicClientBuilder catalogFile(java.io.File catalogFile)
Description copied from interface: WSDynamicClientBuilder
set the catelog file

Specified by:
catalogFile in interface WSDynamicClientBuilder
Returns:
WSDynamicClient

getSecurityConfigFileURL

public java.lang.String getSecurityConfigFileURL()

Specified by:
getSecurityConfigFileURL in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getSecurityConfigFileURL()

getSecurityConfigName

public java.lang.String getSecurityConfigName()

Specified by:
getSecurityConfigName in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getSecurityConfigName()

isKeepSource

public boolean isKeepSource()

Specified by:
isKeepSource in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.isKeepSource()

isVerbose

public boolean isVerbose()

Specified by:
isVerbose in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.isVerbose()

keepSource

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

Specified by:
keepSource in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.keepSource(boolean)

securityConfigName

public 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

Specified by:
securityConfigName in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.securityConfigName(java.lang.String)

securityConfigUrl

public 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

Specified by:
securityConfigUrl in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.securityConfigUrl(java.lang.String)

verbose

public 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)

Specified by:
verbose in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.verbose(boolean)

getNormalizedWsdlUrl

public java.lang.String getNormalizedWsdlUrl()
Specified by:
getNormalizedWsdlUrl in interface WSDynamicClientBuilder
Returns:
normalizedWsdlUrl

getClientSpecificTmpDir

public java.lang.String getClientSpecificTmpDir()
Specified by:
getClientSpecificTmpDir in interface WSDynamicClientBuilder
Returns:
clientSpecificTmpDir

getMessageStream

public java.io.PrintStream getMessageStream()
Specified by:
getMessageStream in interface WSDynamicClientBuilder

messageStream

public WSDynamicClientBuilder messageStream(java.io.PrintStream messageStream)
Description copied from interface: WSDynamicClientBuilder
Sets the PrintStream to use for status feedback. The simplest example would be to use System.out.

Specified by:
messageStream in interface WSDynamicClientBuilder
Returns:
WSDynamicClient

getMaxThreadPoolSize

public int getMaxThreadPoolSize()

Specified by:
getMaxThreadPoolSize in interface WSDynamicClientBuilder
See Also:
WSDynamicClientBuilder.getMaxThreadPoolSize()

maxThreadPoolSize

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

Specified by:
maxThreadPoolSize in interface WSDynamicClientBuilder
Returns:
WSDynamicClient
See Also:
WSDynamicClientBuilder.maxThreadPoolSize(int)

JBoss Wise API

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