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

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

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

origin: com.h2database/h2

String sessionId = attributes.getProperty("jsessionid");
if (sessionId != null) {
  session = server.getSession(sessionId);
origin: com.h2database/h2

String sessionId = attributes.getProperty("jsessionid");
file = file.substring(0, paramIndex);
session = server.getSession(sessionId);
origin: com.h2database/h2

/**
 * Create a new web session id and object.
 *
 * @param hostAddr the host address
 * @return the web session object
 */
WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while (sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.lastAccess = System.currentTimeMillis();
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  session.put("frame-border", "0");
  session.put("frameset-border", "4");
  sessions.put(newId, session);
  // always read the english translation,
  // so that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
origin: com.atlassian.support/achoo-database-console-common

  @Override
  public WebSession getSession(String s)
  {
    //#getSession is called as part of #createNewSession, it's just hackaround to ignore first time invocation
    if (this.session == null)
    {
      this.session = super.getSession(s);
    }

    // if setter is used then BNF will be reset and autocomplete won't work
    HackedWebServlet.inject(this.session.getClass(), this.session, "conn", servlet.getConnection());
    HackedWebServlet.inject(this.session.getClass(), this.session, "meta", servlet.getConnectionMetaData());

    return this.session;
  }
}
origin: com.eventsourcing/h2

String sessionId = attributes.getProperty("jsessionid");
if (sessionId != null) {
  session = server.getSession(sessionId);
origin: org.wowtools/h2

String sessionId = attributes.getProperty("jsessionid");
if (sessionId != null) {
  session = server.getSession(sessionId);
origin: com.h2database/com.springsource.org.h2

WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while(sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  sessions.put(newId, session);
  // always read the english translation, 
  // to that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
origin: org.wowtools/h2

String sessionId = attributes.getProperty("jsessionid");
file = file.substring(0, paramIndex);
session = server.getSession(sessionId);
origin: com.eventsourcing/h2

String sessionId = attributes.getProperty("jsessionid");
file = file.substring(0, paramIndex);
session = server.getSession(sessionId);
origin: com.h2database/com.springsource.org.h2

String sessionId = attributes.getProperty("jsessionid");
if (sessionId != null) {
  session = server.getSession(sessionId);
origin: org.leapframework/jmms-engine

String sessionId = attributes.getProperty("jsessionid");
if (sessionId != null) {
  session = server.getSession(sessionId);
origin: com.eventsourcing/h2

/**
 * Create a new web session id and object.
 *
 * @param hostAddr the host address
 * @return the web session object
 */
WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while (sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.lastAccess = System.currentTimeMillis();
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  session.put("frame-border", "0");
  session.put("frameset-border", "4");
  sessions.put(newId, session);
  // always read the english translation,
  // so that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
origin: com.h2database/com.springsource.org.h2

String sessionId = attributes.getProperty("jsessionid");
file = file.substring(0, paramIndex);
session = server.getSession(sessionId);
origin: org.wowtools/h2

/**
 * Create a new web session id and object.
 *
 * @param hostAddr the host address
 * @return the web session object
 */
WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while (sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.lastAccess = System.currentTimeMillis();
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  session.put("frame-border", "0");
  session.put("frameset-border", "4");
  sessions.put(newId, session);
  // always read the english translation,
  // so that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
org.h2.server.webWebServergetSession

Javadoc

Get the web session object for the given session id.

Popular methods of WebServer

  • <init>
  • 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
  • getPort
  • getConnection,
  • getPort,
  • getSSL,
  • getSessions,
  • getSetting,
  • getSettingNames,
  • getSettings,
  • loadProperties,
  • readTranslations

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JOptionPane (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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