net.rmi.rjs
Class RmiFileServerImplementation
java.lang.Object
   java.rmi.server.RemoteObject
java.rmi.server.RemoteObject
       java.rmi.server.RemoteServer
java.rmi.server.RemoteServer
           java.rmi.server.UnicastRemoteObject
java.rmi.server.UnicastRemoteObject
               net.rmi.rjs.RmiFileServerImplementation
net.rmi.rjs.RmiFileServerImplementation
- All Implemented Interfaces: 
- java.io.Serializable, java.rmi.Remote, RMIFileServerInterface
- public class RmiFileServerImplementation 
- extends java.rmi.server.UnicastRemoteObject- implements RMIFileServerInterface
- See Also:
- Serialized Form
 
 
| Method Summary | 
|  byte[] | getFile(java.lang.String fileName)
 | 
|  java.lang.String | getMsg()
 | 
|  void | putFile(java.lang.String fileName,
        byte[] data)
 | 
|  void | testGetMsg()
 | 
 
| Methods inherited from class java.rmi.server.UnicastRemoteObject | 
| clone, exportObject, exportObject, exportObject, unexportObject | 
 
| Methods inherited from class java.rmi.server.RemoteServer | 
| getClientHost, getLog, setLog | 
 
| Methods inherited from class java.rmi.server.RemoteObject | 
| equals, getRef, hashCode, toString, toStub | 
 
| Methods inherited from class java.lang.Object | 
| getClass, notify, notifyAll, wait, wait, wait | 
 
REMOTE_NAME
public static java.lang.String REMOTE_NAME
RmiFileServerImplementation
public RmiFileServerImplementation()
                            throws java.rmi.RemoteException
- Throws:
- java.rmi.RemoteException
testGetMsg
public void testGetMsg()
                throws java.rmi.RemoteException
- 
- Specified by:
- testGetMsgin interface- RMIFileServerInterface
 
- 
- Throws:
- java.rmi.RemoteException
 
getMsg
public java.lang.String getMsg()
                        throws java.rmi.RemoteException
- 
- Specified by:
- getMsgin interface- RMIFileServerInterface
 
- 
- Throws:
- java.rmi.RemoteException
 
putFile
public void putFile(java.lang.String fileName,
                    byte[] data)
             throws java.rmi.RemoteException
- 
- Specified by:
- putFilein interface- RMIFileServerInterface
 
- 
- Throws:
- java.rmi.RemoteException
 
getFile
public byte[] getFile(java.lang.String fileName)
               throws java.rmi.RemoteException
- 
- Specified by:
- getFilein interface- RMIFileServerInterface
 
- 
- Throws:
- java.rmi.RemoteException