Tabnine Logo
WebServer.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.h2.server.web.WebServer

Best Java code snippets using org.h2.server.web.WebServer.init (Showing top 6 results out of 315)

origin: com.h2database/h2

@Override
public void init() {
  ServletConfig config = getServletConfig();
  Enumeration<?> en = config.getInitParameterNames();
  ArrayList<String> list = New.arrayList();
  while (en.hasMoreElements()) {
    String name = en.nextElement().toString();
    String value = config.getInitParameter(name);
    if (!name.startsWith("-")) {
      name = "-" + name;
    }
    list.add(name);
    if (value.length() > 0) {
      list.add(value);
    }
  }
  String[] args = list.toArray(new String[0]);
  server = new WebServer();
  server.setAllowChunked(false);
  server.init(args);
}
origin: com.h2database/com.springsource.org.h2

public void init() throws ServletException {
  ServletConfig config = getServletConfig();
  Enumeration en = config.getInitParameterNames();
  ArrayList list = new ArrayList();
  while (en.hasMoreElements()) {
    String name = en.nextElement().toString();
    String value = config.getInitParameter(name);
    if (!name.startsWith("-")) {
      name = "-" + name;
    }
    list.add(name);
    if (value.length() > 0) {
      list.add(value);
    }
  }
  String[] args = new String[list.size()];
  list.toArray(args);
  server = new WebServer();
  try {
    server.init(args);
  } catch (Exception e) {
    throw new ServletException("Init failed", e);
  }
}
origin: org.leapframework/jmms-engine

@Override
public void init(ServletConfig config) throws ServletException {
  server = new WebServer();
  server.setAllowChunked(false);
  server.init(new String[]{});
}
origin: com.eventsourcing/h2

@Override
public void init() {
  ServletConfig config = getServletConfig();
  Enumeration<?> en = config.getInitParameterNames();
  ArrayList<String> list = New.arrayList();
  while (en.hasMoreElements()) {
    String name = en.nextElement().toString();
    String value = config.getInitParameter(name);
    if (!name.startsWith("-")) {
      name = "-" + name;
    }
    list.add(name);
    if (value.length() > 0) {
      list.add(value);
    }
  }
  String[] args = new String[list.size()];
  list.toArray(args);
  server = new WebServer();
  server.setAllowChunked(false);
  server.init(args);
}
origin: org.wowtools/h2

@Override
public void init() {
  ServletConfig config = getServletConfig();
  Enumeration<?> en = config.getInitParameterNames();
  ArrayList<String> list = New.arrayList();
  while (en.hasMoreElements()) {
    String name = en.nextElement().toString();
    String value = config.getInitParameter(name);
    if (!name.startsWith("-")) {
      name = "-" + name;
    }
    list.add(name);
    if (value.length() > 0) {
      list.add(value);
    }
  }
  String[] args = new String[list.size()];
  list.toArray(args);
  server = new WebServer();
  server.setAllowChunked(false);
  server.init(args);
}
origin: com.atlassian.support/achoo-database-console-common

public HackedWebServer(String[] args, HackedWebServlet servlet)
{
  //without this response won't be written back
  super.setAllowChunked(false);
  super.setAllowOthers(true);
  super.init(args);
  //if there was ever h2 installation then servlet will try to init defaults again
  super.setAllowChunked(false);
  super.setAllowOthers(true);
  
  this.servlet = servlet;
  //create single session which will be maintained through plugin lifecycle
  this.session = this.createNewSession("local");
}
org.h2.server.webWebServerinit

Popular methods of WebServer

  • <init>
  • getSession
    Get the web session object for the given session id.
  • addSession
    Create a session with a given connection.
  • getAllowOthers
  • getFile
    Read the given file from the file system or from the resources.
  • getStartDateTime
  • setAllowChunked
  • setAllowOthers
  • createNewSession
    Create a new web session id and object.
  • generateSessionId
  • getConnection
  • getPort
  • getConnection,
  • getPort,
  • getSSL,
  • getSessions,
  • getSetting,
  • getSettingNames,
  • getSettings,
  • loadProperties,
  • readTranslations

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
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