|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.grizzly.AtmosphereSpadeServer
public final class AtmosphereSpadeServer
Simple Atmosphere REST based Server builder:
AtmosphereSpadeServer.build("http://localhost:8080/","org.foo.bar").start()
which listen on localhost:8080 for resources starting with package org.foo.bar.
| Method Summary | |
|---|---|
AtmosphereSpadeServer |
addAtmosphereHandler(String mapping,
AtmosphereHandler h)
Add an AtmosphereHandler |
static AtmosphereSpadeServer |
build(String u)
Create a AtmosphereSpadeServer which listen based using the URI u. |
static AtmosphereSpadeServer |
build(String u,
String resourcesPackage)
Create a AtmosphereSpadeServer which listen based on the 'u' for requests for
resources defined under the resources package. |
void |
setResourcePackage(String resourcePackage)
Set the resource package name. |
AtmosphereSpadeServer |
start()
Start the AtmosphereSpadeServer |
AtmosphereSpadeServer |
stop()
Stop the AtmosphereSpadeServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AtmosphereSpadeServer build(String u)
AtmosphereSpadeServer which listen based using the URI u.
u - The URI the server listen for requests
public static AtmosphereSpadeServer build(String u,
String resourcesPackage)
AtmosphereSpadeServer which listen based on the 'u' for requests for
resources defined under the resources package.
u - The URI the server listen for requestsresourcesPackage - The resources package name.
public AtmosphereSpadeServer addAtmosphereHandler(String mapping,
AtmosphereHandler h)
AtmosphereHandler
public void setResourcePackage(String resourcePackage)
public AtmosphereSpadeServer start()
throws IOException
AtmosphereSpadeServer
IOException
public AtmosphereSpadeServer stop()
throws IOException
AtmosphereSpadeServer
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||