|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtunes.web.spi.simple.SimpleServer
public class SimpleServer
| Constructor Summary | |
|---|---|
SimpleServer()
|
|
| Method Summary | |
|---|---|
java.net.InetSocketAddress |
getAddress()
|
ServiceContext |
getContext()
Return the ServiceContext that was passed into Service.startService(org.qtunes.core.ServiceContext) |
java.lang.String |
hasHandler(java.lang.String path)
|
java.util.Map<java.lang.String,java.lang.Object> |
reportState()
Return a Map describing the state of this Service, for serialization back to any client that needs to know (eg webplayer) - so values should be serializable objects, eg Lists, Maps or simple objects. |
void |
run()
|
void |
setHandler(java.lang.String path,
WebHandler handler)
|
void |
startService(ServiceContext context)
Start the Service |
void |
stopService(ServiceContext context)
Stop the Service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleServer()
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic java.net.InetSocketAddress getAddress()
getAddress in interface WebServicepublic java.lang.String hasHandler(java.lang.String path)
hasHandler in interface WebService
public void setHandler(java.lang.String path,
WebHandler handler)
setHandler in interface WebServicepublic ServiceContext getContext()
ServiceService.startService(org.qtunes.core.ServiceContext)
getContext in interface Servicepublic void startService(ServiceContext context)
Service
startService in interface Servicecontext - the ServiceContext for this Servicepublic void stopService(ServiceContext context)
Service
stopService in interface Servicecontext - the ServiceContext for this Service (same as was passed into start)public java.util.Map<java.lang.String,java.lang.Object> reportState()
Service
reportState in interface Service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||