org.jboss.wise.core.client.impl.reflection
Class WSDynamicClientImpl
java.lang.Object
org.jboss.wise.core.client.impl.reflection.WSDynamicClientImpl
- All Implemented Interfaces:
- WSDynamicClient
@ThreadSafe
public class WSDynamicClientImpl
- extends java.lang.Object
- implements WSDynamicClient
This is the Wise core, i.e. the JAX-WS client that handles wsdl retrieval &
parsing, invocations, etc.
- Since:
- Author:
- Stefano Maestri, stefano.maestri@javalinux.it
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSDynamicClientImpl
public WSDynamicClientImpl(WSDynamicClientBuilder builder)
throws WiseRuntimeException
- Throws:
WiseRuntimeException
WSDynamicClientImpl
protected WSDynamicClientImpl(WSDynamicClientBuilder builder,
WSConsumer consumer)
throws WiseRuntimeException
- Throws:
WiseRuntimeException
WSDynamicClientImpl
protected WSDynamicClientImpl(WSDynamicClientBuilder builder,
WSConsumer consumer,
org.milyn.Smooks smooks)
throws WiseRuntimeException
- Throws:
WiseRuntimeException
processServices
public java.util.Map<java.lang.String,WSService> processServices()
throws java.lang.IllegalStateException
- Create the services' map and gives it back. Useful when Wise is used for
interactive explore and invoke a service.
- Specified by:
processServices
in interface WSDynamicClient
- Returns:
- The Map of WSEndpoint with symbolic names as keys
- Throws:
java.lang.IllegalStateException
- thrown if method can't process or load generated classes to
find a service- See Also:
WSDynamicClient.processServices()
getWSMethod
public WSMethod getWSMethod(java.lang.String serviceName,
java.lang.String portName,
java.lang.String operationName)
throws ResourceNotAvailableException
- It return directly the method to invoke the specified action on specified
port of specified service. It is the base method for
"one line of code invocation" (see "Wise-core Programmers guide" for more
information)
- Specified by:
getWSMethod
in interface WSDynamicClient
- Returns:
- the WSMethod class to use for effective service invocation
- Throws:
ResourceNotAvailableException
- when the specified service, port or operation can not be
found- See Also:
WSDynamicClient.getWSMethod(String,
String, String)
getClassLoader
public final java.net.URLClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface WSDynamicClient
- Returns:
- The classLoader used to load generated class.
setClassLoader
public final void setClassLoader(java.net.URLClassLoader classLoader)
getWSExtensionEnablerDelegate
public EnablerDelegate getWSExtensionEnablerDelegate()
-
- Specified by:
getWSExtensionEnablerDelegate
in interface WSDynamicClient
- Returns:
- the
EnablerDelegate
used to enable the WS-* for all
endpoint attached all serivices attached to this
WSDynamicClient
. - See Also:
WSDynamicClient.getWSExtensionEnablerDelegate()
getSmooksInstance
public org.milyn.Smooks getSmooksInstance()
- Specified by:
getSmooksInstance
in interface WSDynamicClient
- Returns:
- smooksInstance
close
public void close()
- Specified by:
close
in interface WSDynamicClient
getTmpDir
public java.lang.String getTmpDir()
- Returns:
- tmpDir
Copyright © 2008-2009 Jboss.org. All Rights Reserved.