Package net.sbbi.upnp.samples
Class HelloWorld
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- net.sbbi.upnp.remote.UnicastRemoteObject
-
- net.sbbi.upnp.samples.HelloWorld
-
- All Implemented Interfaces:
Serializable,Remote,HelloWorldInterface
public class HelloWorld extends UnicastRemoteObject implements HelloWorldInterface
Implementation of the HelloWorld example.- Version:
- 1.0
- Author:
- SuperBonBon
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description HelloWorld()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringsay(String myName)Remotely invocable method.-
Methods inherited from class net.sbbi.upnp.remote.UnicastRemoteObject
clone, closePort, exportObject, exportObject, exportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
HelloWorld
public HelloWorld() throws RemoteException- Throws:
RemoteException
-
-
Method Detail
-
say
public String say(String myName) throws RemoteException
Description copied from interface:HelloWorldInterfaceRemotely invocable method.- Specified by:
sayin interfaceHelloWorldInterface- Returns:
- the message of the remote object, such as "Hello, world!".
- Throws:
RemoteException- if the remote invocation fails.
-
-