congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WebServer.saveSettings
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.h2database/com.springsource.org.h2

private String settingRemove() {
  String setting = attributes.getProperty("name", "");
  server.removeSetting(setting);
  ArrayList settings = server.getSettings();
  if (settings.size() > 0) {
    attributes.put("setting", settings.get(0));
  }
  server.saveSettings();
  return "index.do";
}
origin: com.h2database/com.springsource.org.h2

private String settingSave() {
  ConnectionInfo info = new ConnectionInfo();
  info.name = attributes.getProperty("name", "");
  info.driver = attributes.getProperty("driver", "");
  info.url = attributes.getProperty("url", "");
  info.user = attributes.getProperty("user", "");
  server.updateSetting(info);
  attributes.put("setting", info.name);
  server.saveSettings();
  return "index.do";
}
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();
}
org.h2.server.webWebServersaveSettings

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
  • setAllowOthers
  • createNewSession
    Create a new web session id and object.
  • generateSessionId
  • getConnection
  • generateSessionId,
  • getConnection,
  • getPort,
  • getSSL,
  • getSessions,
  • getSetting,
  • getSettingNames,
  • getSettings,
  • loadProperties,
  • readTranslations

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Collectors (java.util.stream)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
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