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

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

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

origin: com.h2database/h2

/**
 * Get the list of connection information setting names.
 *
 * @return the connection info names
 */
String[] getSettingNames() {
  ArrayList<ConnectionInfo> list = getSettings();
  String[] names = new String[list.size()];
  for (int i = 0; i < list.size(); i++) {
    names[i] = list.get(i).name;
  }
  return names;
}
origin: com.h2database/h2

private String settingRemove() {
  String setting = attributes.getProperty("name", "");
  server.removeSetting(setting);
  ArrayList<ConnectionInfo> settings = server.getSettings();
  if (!settings.isEmpty()) {
    attributes.put("setting", settings.get(0));
  }
  server.saveProperties(null);
  return "index.do";
}
origin: com.h2database/h2

ArrayList<ConnectionInfo> settings = getSettings();
int len = settings.size();
for (int i = 0; i < len; i++) {
origin: com.h2database/com.springsource.org.h2

String[] getSettingNames() {
  ArrayList list = getSettings();
  String[] names = new String[list.size()];
  for (int i = 0; i < list.size(); i++) {
    names[i] = ((ConnectionInfo) list.get(i)).name;
  }
  return names;
}
origin: com.eventsourcing/h2

/**
 * Get the list of connection information setting names.
 *
 * @return the connection info names
 */
String[] getSettingNames() {
  ArrayList<ConnectionInfo> list = getSettings();
  String[] names = new String[list.size()];
  for (int i = 0; i < list.size(); i++) {
    names[i] = list.get(i).name;
  }
  return names;
}
origin: org.wowtools/h2

/**
 * Get the list of connection information setting names.
 *
 * @return the connection info names
 */
String[] getSettingNames() {
  ArrayList<ConnectionInfo> list = getSettings();
  String[] names = new String[list.size()];
  for (int i = 0; i < list.size(); i++) {
    names[i] = list.get(i).name;
  }
  return names;
}
origin: org.wowtools/h2

private String settingRemove() {
  String setting = attributes.getProperty("name", "");
  server.removeSetting(setting);
  ArrayList<ConnectionInfo> settings = server.getSettings();
  if (settings.size() > 0) {
    attributes.put("setting", settings.get(0));
  }
  server.saveProperties(null);
  return "index.do";
}
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.eventsourcing/h2

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

synchronized void saveSettings() {
  try {
    Properties prop = new SortedProperties();
    if (driverList != null) {
      prop.setProperty("drivers", driverList);
    }
    prop.setProperty("webPort", String.valueOf(port));
    prop.setProperty("webAllowOthers", String.valueOf(allowOthers));
    prop.setProperty("webSSL", String.valueOf(ssl));
    ArrayList settings = getSettings();
    int len = settings.size();
    for (int i = 0; i < len; i++) {
      ConnectionInfo info = (ConnectionInfo) settings.get(i);
      if (info != null) {
        prop.setProperty(String.valueOf(len - i - 1), info.getString());
      }
    }
    OutputStream out = FileUtils.openFileOutputStream(getPropertiesFileName(), false);
    prop.store(out, Constants.SERVER_PROPERTIES_TITLE);
    out.close();
  } catch (Exception e) {
    TraceSystem.traceThrowable(e);
  }
}
origin: com.eventsourcing/h2

ArrayList<ConnectionInfo> settings = getSettings();
int len = settings.size();
for (int i = 0; i < len; i++) {
origin: org.wowtools/h2

ArrayList<ConnectionInfo> settings = getSettings();
int len = settings.size();
for (int i = 0; i < len; i++) {
org.h2.server.webWebServergetSettings

Javadoc

Get the list of connection info objects.

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,
  • loadProperties,
  • readTranslations

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Notification (javax.management)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 15 Vim Plugins
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