|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.wise.core.client.impl.reflection.WSMethodImpl
@ThreadSafe public class WSMethodImpl
Represent a webservice operation invocation
Constructor Summary | |
---|---|
WSMethodImpl(java.lang.reflect.Method method,
WSEndpoint endpoint)
|
Method Summary | |
---|---|
WSEndpoint |
getEndpoint()
|
java.lang.reflect.Method |
getMethod()
|
java.util.Map<java.lang.String,WebParameterImpl> |
getWebParams()
Gets the map of WebParameters for a selected method |
InvocationResult |
invoke(java.lang.Object args)
Invokes this method with the provided arguments |
InvocationResultImpl |
invoke(java.lang.Object args,
WiseMapper mapper)
Invokes this method with the provided arguments applying provided mapper |
boolean |
isOneWay()
|
void |
setEndpoint(WSEndpoint endpoint)
|
void |
setMethod(java.lang.reflect.Method method)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSMethodImpl(java.lang.reflect.Method method, WSEndpoint endpoint) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Method Detail |
---|
public InvocationResultImpl invoke(java.lang.Object args, WiseMapper mapper) throws InvocationException, java.lang.IllegalArgumentException, MappingException
invoke
in interface WSMethod
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
InvocationResultImpl
InvocationException
java.lang.IllegalArgumentException
MappingException
public InvocationResult invoke(java.lang.Object args) throws InvocationException, java.lang.IllegalArgumentException, MappingException
invoke
in interface WSMethod
args
- the arguments to call operation. args must be a MapIllegalArgumentException
is thrown.
InvocationResult
object populated with returned values (implementation will process both directed
returned values and OUT parameters as defined in wsdl)
InvocationException
java.lang.IllegalArgumentException
MappingException
WSMethod.invoke(java.lang.Object)
public java.util.Map<java.lang.String,WebParameterImpl> getWebParams()
getWebParams
in interface WSMethod
public boolean isOneWay()
isOneWay
in interface WSMethod
public java.lang.reflect.Method getMethod()
public void setMethod(java.lang.reflect.Method method)
public WSEndpoint getEndpoint()
getEndpoint
in interface WSMethod
public void setEndpoint(WSEndpoint endpoint)
setEndpoint
in interface WSMethod
endpoint
- set the endpoint on which this method is attached.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |