congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Nettosphere
Code IndexAdd Tabnine to your IDE (free)

How to use
Nettosphere
in
org.atmosphere.nettosphere

Best Java code snippets using org.atmosphere.nettosphere.Nettosphere (Showing top 11 results out of 315)

origin: Atmosphere/nettosphere

  public void run() {
    Nettosphere.this.stop();
  }
});
origin: org.atmosphere/nettosphere

public Nettosphere build() {
  return new Nettosphere(config);
}
origin: stackoverflow.com

        .build())
     .build();
server.start();
server.stop();
origin: org.atmosphere/nettosphere

public static void main(String[] args) throws Exception {
  Config.Builder b = new Config.Builder();
  b.resource(args[0]).port(8080).host("127.0.0.1");
  Nettosphere s = new Nettosphere(b.build());
  s.start();
  String a = "";
  logger.info("NettoSphere Server started");
  logger.info("Type quit to stop the server");
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  while (!(a.equals("quit"))) {
    a = br.readLine();
  }
  System.exit(-1);
}
origin: swagger-api/swagger-socket

    .build();
Nettosphere s = new Nettosphere.Builder().config(b.build()).build();
s.start();
String a = "";
origin: org.atmosphere/nettosphere

private Nettosphere(Config config) {
  runtime = new BridgeRuntime(config);
  this.channelInitializer = new NettyChannelInitializer(runtime);
  this.localSocket = new InetSocketAddress(config.host(), config.port());
  this.bootstrap = buildBootstrap(config);
  if (config.initParams().containsKey(FLASH_SUPPORT)) {
    this.bootstrapFlashPolicy = buildBootstrapFlashPolicy(config);
    localPolicySocket = new InetSocketAddress(843);
  } else {
    configureBootstrap(bootstrap, config);
    this.bootstrapFlashPolicy = null;
    localPolicySocket = null;
  }
  runtimeEngine = new RuntimeEngine(runtime);
}
origin: Atmosphere/nettosphere

public static void main(String[] args) throws Exception {
  Config.Builder b = new Config.Builder();
  b.resource(args[0]).port(8080).host("127.0.0.1");
  Nettosphere s = new Nettosphere(b.build());
  s.start();
  String a = "";
  logger.info("NettoSphere Server started");
  logger.info("Type quit to stop the server");
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  while (!(a.equals("quit"))) {
    a = br.readLine();
  }
  System.exit(-1);
}
origin: swagger-api/swagger-socket

    .build();
Nettosphere s = new Nettosphere.Builder().config(b.build()).build();
s.start();
String a = "";
origin: Atmosphere/nettosphere

private Nettosphere(Config config) {
  runtime = new BridgeRuntime(config);
  this.channelInitializer = new NettyChannelInitializer(runtime);
  this.localSocket = new InetSocketAddress(config.host(), config.port());
  this.bootstrap = buildBootstrap(config);
  if (config.initParams().containsKey(FLASH_SUPPORT)) {
    this.bootstrapFlashPolicy = buildBootstrapFlashPolicy(config);
    localPolicySocket = new InetSocketAddress(843);
  } else {
    configureBootstrap(bootstrap, config);
    this.bootstrapFlashPolicy = null;
    localPolicySocket = null;
  }
  runtimeEngine = new RuntimeEngine(runtime);
}
origin: org.atmosphere/nettosphere

  public void run() {
    Nettosphere.this.stop();
  }
});
origin: Atmosphere/nettosphere

public Nettosphere build() {
  return new Nettosphere(config);
}
org.atmosphere.nettosphereNettosphere

Javadoc

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();

Most used methods

  • start
    Start the server
  • stop
    Stop the Server
  • <init>
  • buildBootstrap
  • buildBootstrapFlashPolicy
  • configureBootstrap

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • String (java.lang)
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now