org.jboss.wise.core.client.impl.reflection
Class WSMethodImpl
java.lang.Object
org.jboss.wise.core.client.impl.reflection.WSMethodImpl
- All Implemented Interfaces:
- WSMethod
@ThreadSafe
public class WSMethodImpl
- extends java.lang.Object
- implements WSMethod
Represent a webservice operation invocation
- Since:
- 23-Aug-2007
- Author:
- stefano.maestri@javalinux.it
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSMethodImpl
public WSMethodImpl(java.lang.reflect.Method method,
WSEndpoint endpoint)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
invoke
public InvocationResultImpl invoke(java.lang.Object args,
WiseMapper mapper)
throws InvocationException,
java.lang.IllegalArgumentException,
MappingException
- Invokes this method with the provided arguments applying provided mapper
- Specified by:
invoke
in interface WSMethod
- Parameters:
args
- mapper
- if null no mappings are applied method will be invoked using args directly. in this case the keys of the map
gotta be the parameters names as defined in wsdl/wsconsume generated classes
- Returns:
InvocationResultImpl
- Throws:
InvocationException
java.lang.IllegalArgumentException
MappingException
getWebParams
public java.util.Map<java.lang.String,WebParameterImpl> getWebParams()
- Gets the map of WebParameters for a selected method
- Specified by:
getWebParams
in interface WSMethod
- Returns:
- a map representing valide webparameters
isOneWay
public boolean isOneWay()
- Specified by:
isOneWay
in interface WSMethod
- Returns:
- true if operation is defined as OneWay in wsdl
getMethod
public java.lang.reflect.Method getMethod()
setMethod
public void setMethod(java.lang.reflect.Method method)
getEndpoint
public WSEndpoint getEndpoint()
- Specified by:
getEndpoint
in interface WSMethod
- Returns:
- the endpoint on which this method is attached.
setEndpoint
public void setEndpoint(WSEndpoint endpoint)
- Specified by:
setEndpoint
in interface WSMethod
- Parameters:
endpoint
- set the endpoint on which this method is attached.