Tabnine Logo
Config$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
Config$Builder
in
org.atmosphere.nettosphere

Best Java code snippets using org.atmosphere.nettosphere.Config$Builder (Showing top 8 results out of 315)

origin: swagger-api/swagger-socket

Config.Builder b = new Config.Builder();
b.resource("./app")
    .initParam("com.twitter.consumer.key", key)
    .initParam("com.twitter.consumer.secret", secret)
    .initParam("com.sun.jersey.config.property.packages", NettoSphere.class.getPackage().getName())
    .interceptor(new SwaggerSocketProtocolInterceptor())
    .port(p)
    .host("127.0.0.1")
    .build();
Nettosphere s = new Nettosphere.Builder().config(b.build()).build();
s.start();
String a = "";
origin: swagger-api/swagger-socket

Config.Builder b = new Config.Builder();
b.resource("./app")
    .initParam(ApplicationConfig.WEBSOCKET_CONTENT_TYPE, "application/json")
    .initParam(ApplicationConfig.WEBSOCKET_METHOD, "POST")
    .initParam("jaxrs.serviceClasses", 
      SwaggerSocketResource.class.getName() + "," + FileServiceResource.class.getName())
    .initParam("jaxrs.providers", 
      JacksonJsonProvider.class.getName())
    .initParam("org.atmosphere.websocket.WebSocketProtocol.executeAsync", "true")
    .initParam("io.swagger.swaggersocket.protocol.lazywrite", "true")
    .initParam("io.swagger.swaggersocket.protocol.emptyentity", "true")
    .interceptor(new SwaggerSocketProtocolInterceptor())
    .resource("/*", rsp)
    .port(p)
    .host("127.0.0.1")
    .build();
Nettosphere s = new Nettosphere.Builder().config(b.build()).build();
s.start();
String a = "";
origin: stackoverflow.com

new Config.Builder()
    .host(SERVER_HOST)
    .port(SERVER_PORT)
origin: stackoverflow.com

private void getImages() {
 Intent intent = new Intent(mContext, ImagePickerActivity.class);
 Config config = new Config.Builder()
     .setTabBackgroundColor(R.color.white)    // set tab background color. Default white.
     .setTabSelectionIndicatorColor(R.color.blue)
     .setCameraButtonColor(R.color.green)
     .setSelectionLimit(2)    // set photo selection limit. Default unlimited selection.
     .build();
 ImagePickerActivity.setConfig(config);
 startActivityForResult(intent, INTENT_REQUEST_GET_IMAGES);}
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: org.atmosphere/nettosphere

/**
 * Add an {@link Handler} mapped to the default, which is '/*'
 *
 * @param handler {@link Handler}
 * @return this
 */
public Builder resource(Handler handler) {
  return resource("/*", handler);
}
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: Atmosphere/nettosphere

/**
 * Add an {@link Handler} mapped to the default, which is '/*'
 *
 * @param handler {@link Handler}
 * @return this
 */
public Builder resource(Handler handler) {
  return resource("/*", handler);
}
org.atmosphere.nettosphereConfig$Builder

Most used methods

  • <init>
  • build
    Build an instance of this class.
  • host
    The server's host
  • port
    The server's port
  • resource
    Add an Handler mapped to the default, which is '/*'
  • initParam
    Add some init param
  • interceptor
    Add an AtmosphereInterceptor

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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