Tabnine Logo
RpcContext.getHttpSession
Code IndexAdd Tabnine to your IDE (free)

How to use
getHttpSession
method
in
org.jboss.errai.bus.server.api.RpcContext

Best Java code snippets using org.jboss.errai.bus.server.api.RpcContext.getHttpSession (Showing top 7 results out of 315)

origin: errai/errai

@Override
public void logout() {
 identity.logout();
 RpcContext.getHttpSession().invalidate();
}
origin: org.jboss.errai/errai-security-picketlink

@Override
public void logout() {
 identity.logout();
 RpcContext.getHttpSession().invalidate();
}
origin: kiegroup/appformer

@PostConstruct
protected void init() {
  // By default, enable the register of data set definitions stored into the deployment folder.
  ServletContext servletContext = RpcContext.getHttpSession().getServletContext();
  if (!dataSetDefDeployer.isRunning() && servletContext != null) {
    String dir = servletContext.getRealPath("WEB-INF/datasets");
    if (dir != null && new File(dir).exists()) {
      dir = dir.replaceAll("\\\\", "/");
      dataSetDefDeployer.deploy(dir);
    }
  }
}
origin: org.dashbuilder/dashbuilder-services

@PostConstruct
protected void init() {
  // By default, enable the register of data set definitions stored into the deployment folder.
  ServletContext servletContext = RpcContext.getHttpSession().getServletContext();
  if (!dataSetDefDeployer.isRunning() && servletContext != null) {
    String dir = servletContext.getRealPath("WEB-INF/datasets");
    if (dir != null && new File(dir).exists()) {
      dir = dir.replaceAll("\\\\", "/");
      dataSetDefDeployer.deploy(dir);
    }
  }
}
origin: org.dashbuilder/dashbuilder-services

@PostConstruct
protected void init() {
  // By default, enable the register of data set definitions stored into the deployment folder.
  ServletContext servletContext = RpcContext.getHttpSession().getServletContext();
  if (!dataSetDefDeployer.isRunning() && servletContext != null) {
    String dir = servletContext.getRealPath("WEB-INF/datasets");
    if (dir != null && new File(dir).exists()) {
      dir = dir.replaceAll("\\\\", "/");
      dataSetDefDeployer.deploy(dir);
    }
  }
}
origin: kiegroup/appformer

@PostConstruct
protected void init() {
  // By default, enable the register of data set definitions stored into the deployment folder.
  ServletContext servletContext = RpcContext.getHttpSession().getServletContext();
  if (!dataSetDefDeployer.isRunning() && servletContext != null) {
    String dir = servletContext.getRealPath("WEB-INF/datasets");
    if (dir != null && new File(dir).exists()) {
      dir = dir.replaceAll("\\\\", "/");
      dataSetDefDeployer.deploy(dir);
    }
  }
}
origin: kiegroup/appformer

/**
 * Updates the user's session to track all currently held locks so we can
 * release locks on session expiry.
 * @param lockInfo the lock to update
 * @param remove true to remove the lock, false to add it
 */
private void updateSession(final LockInfo lockInfo,
              boolean remove) {
  final HttpSession session = RpcContext.getHttpSession();
  @SuppressWarnings("unchecked")
  Set<LockInfo> locks = (Set<LockInfo>) session.getAttribute(LOCK_SESSION_ATTRIBUTE_NAME);
  if (remove) {
    if (locks != null) {
      locks.remove(lockInfo);
    }
  } else {
    if (locks == null) {
      locks = new HashSet<LockInfo>();
    }
    locks.add(lockInfo);
    session.setAttribute(LOCK_SESSION_ATTRIBUTE_NAME,
               locks);
  }
}
org.jboss.errai.bus.server.apiRpcContextgetHttpSession

Popular methods of RpcContext

  • getServletRequest
  • getMessage
  • set
    Reads resources from the provided Message and stores them in ThreadLocals.
  • getQueueSession
  • remove
    Removes the resources associated with the current thread.

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JLabel (javax.swing)
  • 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