|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.nettosphere.Nettosphere
public final class Nettosphere
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();
| 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 |
|---|
public static final String FLASH_SUPPORT
| Method Detail |
|---|
public org.atmosphere.cpr.AtmosphereFramework framework()
AtmosphereFramework instance
AtmosphereFramework instancepublic void start()
public void stop()
public boolean isStarted()
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||