TP-intergiciel/TP2/RFicheImpl.java

29 lines
640 B
Java
Raw Normal View History

2023-04-22 15:36:05 +00:00
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
/**
* Fiche que l'on reçoit du serveur
*/
public class RFicheImpl extends UnicastRemoteObject implements RFiche {
private String nom;
private String email;
public RFicheImpl(String nom, String email) throws RemoteException {
this.nom = nom;
this.email = email;
}
public String getNom() throws RemoteException {
return this.nom;
}
public String getEmail() throws RemoteException {
return this.email;
}
@Override
public String toString() {
return this.nom + " <" + this.email + ">";
}
}