| 
J2ME RMI Optional Package | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
RemoteRef represents the handle for a remote object. A
 RemoteStub uses a remote reference to carry out a
 remote method invocation to a remote object.
RemoteStub| Field Summary | |
static java.lang.String | 
packagePrefix
Initialize the server package prefix: assumes that the implementation of server ref classes (e.g., UnicastRef, UnicastServerRef) are located in the package defined by the prefix.  | 
static long | 
serialVersionUID
indicate compatibility with JDK 1.1.x version of class.  | 
| Method Summary | |
 java.lang.String | 
getRefClass(java.io.ObjectOutput out)
Returns the class name of the ref type to be serialized onto the stream 'out'.  | 
 java.lang.Object | 
invoke(Remote obj,
       java.lang.reflect.Method method,
       java.lang.Object[] params,
       long opnum)
Invoke a method.  | 
 boolean | 
remoteEquals(RemoteRef obj)
Compares two remote objects for equality.  | 
 int | 
remoteHashCode()
Returns a hashcode for a remote object.  | 
 java.lang.String | 
remoteToString()
Returns a String that represents the reference of this remote object.  | 
| Methods inherited from interface java.io.Externalizable | 
readExternal, writeExternal | 
| Field Detail | 
public static final long serialVersionUID
public static final java.lang.String packagePrefix
| Method Detail | 
public java.lang.Object invoke(Remote obj,
                               java.lang.reflect.Method method,
                               java.lang.Object[] params,
                               long opnum)
                        throws java.lang.Exception
obj - the object that contains the RemoteRef (e.g., the
            RemoteStub for the object.method - the method to be invokedparams - the parameter listopnum - a hash that may be used to represent the methodjava.lang.Exception - if any exception occurs during remote method
 invocationpublic java.lang.String getRefClass(java.io.ObjectOutput out)
out - the output stream to which the reference will be serializedpublic int remoteHashCode()
Hashtablepublic boolean remoteEquals(RemoteRef obj)
obj - the Object to compare withHashtablepublic java.lang.String remoteToString()
  | 
J2ME RMI Optional Package | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||