|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.sun.javacard.rmiclientlib.JCRemoteRefImpl
public class JCRemoteRefImpl
Represents a reference to a card object. This class is a Java Card RMI
implementation of the RemoteRef
interface. It is used in
conjunction with Java RMIC generated stubs or dynamically generated
proxies for Java Card RMI method invocations.
Field Summary |
---|
Fields inherited from interface java.rmi.server.RemoteRef |
---|
packagePrefix, serialVersionUID |
Constructor Summary | |
---|---|
JCRemoteRefImpl(short objID,
java.lang.String a_string, CardAccessor ca,
com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory cOF)
Creates new JCRemoteRefImpl |
Method Summary | |
---|---|
void |
done(java.rmi.server.RemoteCall remoteCall)
Deprecated. |
java.lang.String |
getRefClass(java.io.ObjectOutput objectOutput)
Unsupported operation. |
java.lang.Object |
invoke(java.lang.Object obj,
java.lang.reflect.Method method, java.lang.Object[] params)
This method is used by dynamically generated proxies. |
void |
invoke(java.rmi.server.RemoteCall remoteCall)
Deprecated. |
java.lang.Object |
invoke(java.rmi.Remote remote,
java.lang.reflect.Method method, java.lang.Object[] params,
long unused)
This method is used by rmic-generated stubs. |
java.rmi.server.RemoteCall |
newCall(java.rmi.server.RemoteObject remoteObject,
java.rmi.server.Operation[] operation, int param,
long param3)
Deprecated. |
void |
readExternal(java.io.ObjectInput objectInput)
Unsupported operation. |
boolean |
remoteEquals(java.rmi.server.RemoteRef remoteRef)
Compares two remote objects for being identical. |
int |
remoteHashCode()
Unsupported operation. |
java.lang.String |
remoteToString()
String representation of remote object. |
void |
writeExternal(java.io.ObjectOutput objectOutput)
Unsupported operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify,
notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCRemoteRefImpl(short objID,
java.lang.String a_string,
CardAccessor ca,
com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory cOF)
JCRemoteRefImpl
objID
- 2 byte Object ID from card remote
reference descriptora_string
- Anticollision string for the class of
the remote objectcA
- CardAccessor
cOF
- CardObjectFactory
Method Detail |
---|
public java.lang.String getRefClass(java.io.ObjectOutput objectOutput)
getRefClass
in interface java.rmi.server.RemoteRef
objectOutput
- public java.lang.Object invoke(java.rmi.Remote remote,
java.lang.reflect.Method method,
java.lang.Object[] params,
long unused)
throws java.io.IOException,
java.rmi.RemoteException,
java.lang.Exception
invoke
in interface java.rmi.server.RemoteRef
remote
- Reference to the stub - not used.method
- java.reflect.Method
object containing information about the method to be invoked.params
- Array of parameters. Primitives are
wrapped.unused
- rmic-generated hash of the method. Not
used.
java.io.IOException
- If a communication error
occured.
java.rmi.RemoteException
- If an RMI error
occured.
java.lang.Exception
- Exception corresponding to
the one that was thrown on the card.public int remoteHashCode()
remoteHashCode
in interface java.rmi.server.RemoteRef
public java.lang.String remoteToString()
remoteToString
in interface java.rmi.server.RemoteRef
String
representation of the remote object.public void readExternal(java.io.ObjectInput objectInput)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
objectInput
- java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput objectOutput)
throws java.io.IOException
writeExternal
in interface java.io.Externalizable
objectOutput
- java.io.IOException
public java.rmi.server.RemoteCall newCall(java.rmi.server.RemoteObject remoteObject,
java.rmi.server.Operation[] operation,
int param,
long param3)
throws java.rmi.RemoteException
newCall
in interface java.rmi.server.RemoteRef
remoteObject
- operation
- param
- param3
- java.rmi.RemoteException
public void invoke(java.rmi.server.RemoteCall remoteCall)
throws java.lang.Exception
invoke
in interface java.rmi.server.RemoteRef
remoteCall
- java.lang.Exception
public boolean remoteEquals(java.rmi.server.RemoteRef remoteRef)
remoteEquals
in interface java.rmi.server.RemoteRef
remoteRef
- RemoteRef
to the other
remote object.
true
if corresponding remote objects are
identical.public void done(java.rmi.server.RemoteCall remoteCall)
throws java.rmi.RemoteException
done
in interface java.rmi.server.RemoteRef
remoteCall
- java.rmi.RemoteException
public java.lang.Object invoke(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] params)
throws java.io.IOException,
java.rmi.RemoteException,
java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
obj
- The reference to the Proxy - not used.method
- Method
object containing
information about the method.params
- Array of parameters for the method.
java.io.IOException
- If a communication error
occured.
java.rmi.RemoteException
- If an RMI error
occured.
java.lang.Throwable
- Exception corresponding to
the one that was thrown on the card.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |