public interface Handler
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();
| Modifier and Type | Method and Description |
|---|---|
void |
handle(org.atmosphere.cpr.AtmosphereResource r)
Handle an
AtmosphereResource, from which you can retrieve an AtmosphereRequest
and AtmosphereResponse} |
Copyright © 2018. All Rights Reserved.