public final class Nettosphere
extends java.lang.Object
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
Nettosphere.Builder
Construct a
Nettosphere. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FLASH_SUPPORT |
| Modifier and Type | Method and Description |
|---|---|
org.atmosphere.cpr.AtmosphereFramework |
framework()
Return the
AtmosphereFramework instance |
boolean |
isStarted()
Return true is the server was successfully started.
|
static void |
main(java.lang.String[] args) |
RuntimeEngine |
runtimeEngine()
Return the
RuntimeEngine |
void |
start()
Start the server
|
void |
stop()
Stop the Server
|
public org.atmosphere.cpr.AtmosphereFramework framework()
AtmosphereFramework instanceAtmosphereFramework instancepublic void start()
public void stop()
public boolean isStarted()
public RuntimeEngine runtimeEngine()
RuntimeEngineRuntimeEnginepublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018. All Rights Reserved.