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.
 
Field Summary
static String FLASH_SUPPORT
           
 
Method Summary
 org.atmosphere.cpr.AtmosphereFramework framework()
          Return the AtmosphereFramework instance
 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
 

Field Detail

FLASH_SUPPORT

public static final String FLASH_SUPPORT
Method Detail

framework

public org.atmosphere.cpr.AtmosphereFramework framework()
Return the AtmosphereFramework instance

Returns:
the AtmosphereFramework instance

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 © 2014. All Rights Reserved.