|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Handler
A super simple Handler for managing web application. As simple as
Nettosphere server = new Nettosphere.Builder().config( new Config.Builder() .host("127.0.0.1") .port(8080) .resource(new Handler() { void handle(AtmosphereResource r) { r.getResponse().write("Hello World".write("from Nettosphere").flush(); } }) .build()) .build(); server.start();
| Method Summary | |
|---|---|
void |
handle(org.atmosphere.cpr.AtmosphereResource r)
Handle an AtmosphereResource, from which you can retrieve an AtmosphereRequest
and AtmosphereResponse} |
| Method Detail |
|---|
void handle(org.atmosphere.cpr.AtmosphereResource r)
AtmosphereResource, from which you can retrieve an AtmosphereRequest
and AtmosphereResponse}
r - an AtmosphereResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||