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

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

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

origin: com.h2database/h2

private String adminSave() {
  try {
    Properties prop = new SortedProperties();
    int port = Integer.decode((String) attributes.get("port"));
    prop.setProperty("webPort", String.valueOf(port));
    server.setPort(port);
    boolean allowOthers = Utils.parseBoolean((String) attributes.get("allowOthers"), false, false);
    prop.setProperty("webAllowOthers", String.valueOf(allowOthers));
    server.setAllowOthers(allowOthers);
    boolean ssl = Utils.parseBoolean((String) attributes.get("ssl"), false, false);
    prop.setProperty("webSSL", String.valueOf(ssl));
    server.setSSL(ssl);
    server.saveProperties(prop);
  } catch (Exception e) {
    trace(e.toString());
  }
  return admin();
}
origin: com.h2database/com.springsource.org.h2

private String adminSave() {
  try {
    server.setPort(MathUtils.decodeInt((String) attributes.get("port")));
    server.setAllowOthers(Boolean.valueOf((String) attributes.get("allowOthers")).booleanValue());
    server.setSSL(Boolean.valueOf((String) attributes.get("ssl")).booleanValue());
    server.saveSettings();
  } catch (Exception e) {
    server.trace(e.toString());
  }
  return admin();
}
origin: com.eventsourcing/h2

private String adminSave() {
  try {
    Properties prop = new SortedProperties();
    int port = Integer.decode((String) attributes.get("port"));
    prop.setProperty("webPort", String.valueOf(port));
    server.setPort(port);
    boolean allowOthers = Boolean.parseBoolean(
        (String) attributes.get("allowOthers"));
    prop.setProperty("webAllowOthers", String.valueOf(allowOthers));
    server.setAllowOthers(allowOthers);
    boolean ssl = Boolean.parseBoolean(
        (String) attributes.get("ssl"));
    prop.setProperty("webSSL", String.valueOf(ssl));
    server.setSSL(ssl);
    server.saveProperties(prop);
  } catch (Exception e) {
    trace(e.toString());
  }
  return admin();
}
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");
}
origin: org.wowtools/h2

private String adminSave() {
  try {
    Properties prop = new SortedProperties();
    int port = Integer.decode((String) attributes.get("port"));
    prop.setProperty("webPort", String.valueOf(port));
    server.setPort(port);
    boolean allowOthers = Boolean.parseBoolean(
        (String) attributes.get("allowOthers"));
    prop.setProperty("webAllowOthers", String.valueOf(allowOthers));
    server.setAllowOthers(allowOthers);
    boolean ssl = Boolean.parseBoolean(
        (String) attributes.get("ssl"));
    prop.setProperty("webSSL", String.valueOf(ssl));
    server.setSSL(ssl);
    server.saveProperties(prop);
  } catch (Exception e) {
    trace(e.toString());
  }
  return admin();
}
org.h2.server.webWebServersetAllowOthers

Popular methods of WebServer

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Permission (java.security)
    Legacy security code; do not use.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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