com.caucho.ejb.hessian
Class MetaStub

java.lang.Object
  extended by com.caucho.ejb.hessian.MetaStub

public class MetaStub
extends java.lang.Object

Utility class to call methods easily.


Constructor Summary
MetaStub()
           
 
Method Summary
static java.lang.Object call(Path urlPath, java.lang.String method, java.lang.Object arg)
          Calls an arbitrary method at the given url.
static java.lang.Object call(Path urlPath, java.lang.String method, java.lang.Object[] args)
          Calls an arbitrary method at the given url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaStub

public MetaStub()
Method Detail

call

public static java.lang.Object call(Path urlPath,
                                    java.lang.String method,
                                    java.lang.Object arg)
                             throws java.lang.Throwable
Calls an arbitrary method at the given url.

Parameters:
url - a path to the remote url
method - the method to call
arg - an argument
Throws:
java.lang.Throwable

call

public static java.lang.Object call(Path urlPath,
                                    java.lang.String method,
                                    java.lang.Object[] args)
                             throws java.lang.Throwable
Calls an arbitrary method at the given url.

Parameters:
url - a path to the remote url
method - the method to call
args - any arguments to call
Throws:
java.lang.Throwable