|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qtunes.web.spi.sun.SunServer
public class SunServer
Constructor Summary | |
---|---|
SunServer()
|
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 |
setHandler(java.lang.String prefix,
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 SunServer()
Method Detail |
---|
public void setHandler(java.lang.String prefix, WebHandler handler)
setHandler
in interface WebService
public java.net.InetSocketAddress getAddress()
getAddress
in interface WebService
public java.lang.String hasHandler(java.lang.String path)
hasHandler
in interface WebService
public ServiceContext getContext()
Service
Service.startService(org.qtunes.core.ServiceContext)
getContext
in interface Service
public void startService(ServiceContext context)
Service
startService
in interface Service
context
- the ServiceContext for this Servicepublic void stopService(ServiceContext context)
Service
stopService
in interface Service
context
- 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 |