?? helloworldimpl.java
字號:
/*
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
package masteringrmi.hellosocket.server;
import java.rmi.RemoteException;
import java.rmi.server.RemoteServer;
import masteringrmi.hellosocket.interfaces.HelloWorld;
import masteringrmi.hellosocket.interfaces.IdentitySocket;
/**
* This is a remote object that implements the remote interface.
*
* It extends RemoteServer, and must thus be exported by the manager
*
* @see HelloWorld
* @author Rickard 謆erg
* @version $Revision:$
*/
public class HelloWorldImpl
extends RemoteServer
implements HelloWorld
{
// Constructors --------------------------------------------------
// Public --------------------------------------------------------
// HelloWorld implementation -------------------------------------
/**
* Create a greeting.
*
* @param name a name
* @return a name including the name
*/
public String helloWorld()
{
// Get the name of the client and include it in the greeting
return "Hello " + IdentitySocket.getClient() +"!";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -