org.atmosphere.nettosphere
Interface Handler


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

handle

void handle(org.atmosphere.cpr.AtmosphereResource r)
Handle an AtmosphereResource, from which you can retrieve an AtmosphereRequest and AtmosphereResponse}

Parameters:
r - an AtmosphereResource


Copyright © 2014. All Rights Reserved.