Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Java WebSocket/HTTP server based on the Atmosphere and Netty Framework
Java Shell

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

Nettosphere: A Java WebSocket and HTTP server powered by the Atmosphere Framework and the Netty Framework

Download Nettosphere here or use Maven

 <dependency>
     <groupId>org.atmosphere</groupId>
     <artifactId>nettosphere</artifactId>
     <version>1.1.0</version>
 </dependency>

All Atmosphere API supported. As simple as:

Deploy a Resource (annotated using Jersey), access it using HTTP or WebSocket

NettyAtmosphereServer server = new NettyAtmosphereServer.Builder().config(
             new Config.Builder()
                .host("127.0.0.1")
                .port(8080)
                .resource(MyResource.class)
                .build())
             .build();
server.start();

Deploy an AtmosphereHandler, access it using HTTP or WebSocket

NettyAtmosphereServer server = new NettyAtmosphereServer.Builder().config(
             new Config.Builder()
                .host("127.0.0.1")
                .port(8080)
                .resource("/*", MyAtmosphereHandler.class)
                .build())
             .build();
server.start();

Deploy an AtmosphereHandler, define a WebSocket protocol

NettyAtmosphereServer server = new NettyAtmosphereServer.Builder().config(
             new Config.Builder()
                .host("127.0.0.1")
                .port(8080)
                .webSocketProtocol(JMSOverWebSocketProtocol.class)
                .resource("/*", MyAtmosphereHandler.class)
                .build())
             .build();
server.start();

Deploy a Servlet which use Meteor

NettyAtmosphereServer server = new NettyAtmosphereServer.Builder().config(
             new Config.Builder()
                .host("127.0.0.1")
                .port(8080)
                .resource("/*", MyServlet.class)
                .build())
             .build();
server.start();

The Server can also be started using java

java -cp netosphere-all.jar
      org.atmosphere.nettosphere.Nettosphere
            [/path/to/an/exploded/war/file] [host] [port]

Using Maven and the Git repo

mvn exec:java -Dexec.arguments='path to your exploded war file'

We are on irc.freenode.net under #atmosphere-comet and Twitter

Something went wrong with that request. Please try again.