net.rmi.rjs
Class RmiFileServerImplementation

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by 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

Field Summary
static java.lang.String REMOTE_NAME
           
 
Constructor Summary
RmiFileServerImplementation()
           
 
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
 

Field Detail

REMOTE_NAME

public static java.lang.String REMOTE_NAME
Constructor Detail

RmiFileServerImplementation

public RmiFileServerImplementation()
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

testGetMsg

public void testGetMsg()
                throws java.rmi.RemoteException
Specified by:
testGetMsg in interface RMIFileServerInterface
Throws:
java.rmi.RemoteException

getMsg

public java.lang.String getMsg()
                        throws java.rmi.RemoteException
Specified by:
getMsg in interface RMIFileServerInterface
Throws:
java.rmi.RemoteException

putFile

public void putFile(java.lang.String fileName,
                    byte[] data)
             throws java.rmi.RemoteException
Specified by:
putFile in interface RMIFileServerInterface
Throws:
java.rmi.RemoteException

getFile

public byte[] getFile(java.lang.String fileName)
               throws java.rmi.RemoteException
Specified by:
getFile in interface RMIFileServerInterface
Throws:
java.rmi.RemoteException