|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.jini.example.hello.Server
public class Server
Defines an application server that provides an implementation of the Hello interface. The application uses the following arguments: [all] - All arguments are used as options when getting the configuration The application uses the following configuration entries, with component com.sun.jini.example.hello.Server: discoveryManager type: DiscoveryManagement default: new LookupDiscovery(new String[] { "" }, config) Object used to discover lookup services to join. exporter type: Exporter default: none The object to use for exporting the server loginContext type: LoginContext default: null If non-null, specifies the JAAS login context to use for performing a JAAS login and supplying the Subject to use when running the server. If null, no JAAS login is performed.
| Field Summary | |
|---|---|
protected net.jini.config.Configuration |
config
|
protected Hello |
serverProxy
The server proxy, for use by getProxyVerifier |
| Constructor Summary | |
|---|---|
protected |
Server(String[] configOptions)
Creates the server. |
| Method Summary | |
|---|---|
protected static net.jini.core.lookup.ServiceID |
createServiceID()
Creates a new service ID. |
protected net.jini.export.Exporter |
getExporter()
Returns the exporter for exporting the server. |
Object |
getProxy()
Returns a proxy object for this remote object. |
net.jini.security.TrustVerifier |
getProxyVerifier()
Implement the ServerProxyTrust interface to provide a verifier for secure smart proxies. |
protected net.jini.core.lookup.ServiceID |
getServiceID()
Returns the service ID for this server. |
protected void |
init()
Initializes the server, including exporting it and storing its proxy in the registry. |
protected void |
initAsSubject()
Initializes the server, assuming that the appropriate subject is in effect. |
static void |
main(String[] args)
Starts and registers a server that implements the Hello interface. |
String |
sayHello()
Implement the Hello interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final net.jini.config.Configuration config
protected Hello serverProxy
| Constructor Detail |
|---|
protected Server(String[] configOptions)
throws net.jini.config.ConfigurationException
configOptions - options to use when getting the Configuration
net.jini.config.ConfigurationException - if a problem occurs creating the
configuration| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args - options to use when getting the Configuration
net.jini.config.ConfigurationException - if a problem occurs with the
configuration
RemoteException - if a remote communication problem occurs
Exception
protected void init()
throws Exception
Exception - if a problem occurs
protected void initAsSubject()
throws Exception
Exception
protected net.jini.export.Exporter getExporter()
throws net.jini.config.ConfigurationException,
RemoteException
net.jini.config.ConfigurationException - if a problem occurs getting the exporter
from the configuration
RemoteException - if a remote communication problem occursprotected net.jini.core.lookup.ServiceID getServiceID()
protected static net.jini.core.lookup.ServiceID createServiceID()
public String sayHello()
sayHello in interface Hellopublic net.jini.security.TrustVerifier getProxyVerifier()
getProxyVerifier in interface net.jini.security.proxytrust.ServerProxyTrustpublic Object getProxy()
getProxy in interface net.jini.export.ProxyAccessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||