|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jms.net.connector.Request
A Request wraps all of the information needed to invoke a method
on a remote object.
Response,
Connection, Serialized Form| Constructor Summary | |
Request(java.rmi.server.ObjID objID,
java.lang.reflect.Method method,
java.lang.Object[] args,
long methodID)
Construct a new Request. |
|
| Method Summary | |
java.lang.Object[] |
getArgs()
Returns the arguments to pass to the method. |
java.lang.reflect.Method |
getMethod()
Returns the method to invoke. |
long |
getMethodID()
Returns the unique identifier of the method to invoke. |
java.rmi.server.ObjID |
getObjID()
Returns the object identifier. |
java.lang.String |
getURI()
Returns the URI of the remote server. |
static Request |
read(java.io.ObjectInput in)
Read a request from a stream. |
java.lang.Object[] |
readArgs(java.lang.reflect.Method method)
Reads the serialized arguments, using the supplied method to determine the argument types. |
void |
write(java.io.ObjectOutput out)
Write this request to a stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Request(java.rmi.server.ObjID objID,
java.lang.reflect.Method method,
java.lang.Object[] args,
long methodID)
Request.objID - the object to invoke the method onmethod - the method to invokeargs - the arguments to pass to the method.
May be null.methodID - the unique identifier of the method| Method Detail |
public java.lang.String getURI()
public java.rmi.server.ObjID getObjID()
public java.lang.reflect.Method getMethod()
public java.lang.Object[] getArgs()
null
if the method doesn't take any arguments, or the arguments haven't yet
been read via readArgs(java.lang.reflect.Method)
public java.lang.Object[] readArgs(java.lang.reflect.Method method)
throws java.lang.ClassNotFoundException,
java.io.IOException
method - the methodjava.lang.ClassNotFoundException - if an argument can't be deserializedjava.io.IOException - for any I/O errorread(java.io.ObjectInput)public long getMethodID()
public void write(java.io.ObjectOutput out)
throws java.io.IOException
out - the stream to write tojava.io.IOException - for any I/O error
public static Request read(java.io.ObjectInput in)
throws java.io.IOException
readArgs(java.lang.reflect.Method) with the
method corresponding to that returned by getMethodID().in - the stream to read from. This is responsible for its closure.java.io.IOException - for any I/O error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||