org.atmosphere.nettosphere
Class Nettosphere

java.lang.Object
  extended by org.atmosphere.nettosphere.Nettosphere

public final class Nettosphere
extends Object

Start Atmosphere on top of Netty. To configure Atmosphere, use the Config. As simple as


 Config config = new Config.Builder()
         .port(port)
         .host("127.0.0.1")
         .initParam("foo", "bar")
         .resource("/", new AtmosphereHandlerAdapter() {

             public void onStateChange(AtmosphereResourceEvent r) throws IOException {
             }

         }).build();

 server = new Nettosphere.Builder().config(config).build();
 

Author:
Jeanfrancois Arcand

Nested Class Summary
static class Nettosphere.Builder
          Construct a Nettosphere.
 
Method Summary
 boolean isStarted()
          Return true is the server was successfully started.
static void main(String[] args)
           
 void start()
          Start the server
 void stop()
          Stop the Server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public void start()
Start the server


stop

public void stop()
Stop the Server


isStarted

public boolean isStarted()
Return true is the server was successfully started.

Returns:
true is the server was successfully started.

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.