com.sun.xml.ws.client.sei
Class MethodHandler

java.lang.Object
  extended by com.sun.xml.ws.client.sei.MethodHandler
Direct Known Subclasses:
SEIMethodHandler

public abstract class MethodHandler
extends Object

Handles an invocation of a method.

Each instance of MethodHandler has an implicit knowledge of a particular method that it handles.


Field Summary
protected  SEIStub owner
           
 
Constructor Summary
protected MethodHandler(SEIStub owner)
           
 
Method Summary
(package private) abstract  Object invoke(Object proxy, Object[] args)
          Performs the method invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

protected final SEIStub owner
Constructor Detail

MethodHandler

protected MethodHandler(SEIStub owner)
Method Detail

invoke

abstract Object invoke(Object proxy,
                       Object[] args)
                throws javax.xml.ws.WebServiceException,
                       Throwable
Performs the method invocation.

Parameters:
proxy - The proxy object exposed to the user. Must not be null.
args - The method invocation arguments. To handle asynchroonus method invocations without array reallocation, this aray is allowed to be longer than the actual number of arguments to the method. Additional array space should be simply ignored.
Returns:
a return value from the method invocation. may be null.
Throws:
javax.xml.ws.WebServiceException - If used on the client side, a WebServiceException signals an error during the service invocation.
Throwable - some faults are reported in terms of checked exceptions.