|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectequip.net.SimpleServer
A Simple Server class using a single ServerSapTcp
access point, delegating request handling to an implementation
of SimpleServerHandler
| Nested Class Summary | |
protected class |
SimpleServer.ClientThread
|
| Field Summary | |
protected java.lang.Object |
closure
|
protected SimpleServerHandler |
handler
|
protected SimpleMoniker |
moniker
|
protected ServerSap |
serverSap
|
protected java.lang.Object |
workerLock
|
| Constructor Summary | |
SimpleServer()
|
|
| Method Summary | |
SimpleMoniker |
getMoniker()
get server moniker |
boolean |
init(Moniker moniker_in,
SimpleServerHandler handler)
if you already know a moniker, e.g. from ServerURL; null closure |
boolean |
init(Moniker moniker_in,
SimpleServerHandler handler,
java.lang.Object closure)
if you already know a moniker, e.g. from ServerURL |
boolean |
init(short port,
SimpleServerHandler handler)
if you know a port (even 0) but not a moniker; null closure |
boolean |
init(short port,
SimpleServerHandler handler,
java.lang.Object closure)
if you know a port (even 0) but not a moniker |
void |
run()
|
void |
shutdown()
shut down server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SimpleMoniker moniker
protected ServerSap serverSap
protected SimpleServerHandler handler
protected java.lang.Object closure
protected java.lang.Object workerLock
| Constructor Detail |
public SimpleServer()
| Method Detail |
public boolean init(Moniker moniker_in,
SimpleServerHandler handler)
public boolean init(Moniker moniker_in,
SimpleServerHandler handler,
java.lang.Object closure)
public boolean init(short port,
SimpleServerHandler handler)
public boolean init(short port,
SimpleServerHandler handler,
java.lang.Object closure)
public void shutdown()
public SimpleMoniker getMoniker()
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||