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

How to use
getSession
method
in
leap.web.Request

Best Java code snippets using leap.web.Request.getSession (Showing top 8 results out of 315)

origin: org.leapframework/leap-websecurity

  @Override
  public void removeToken(Request request) throws Throwable {
    Session session = request.getSession(false);
    
    if(null != session) {
      session.removeAttribute(KEY);
    }
    
  }
}
origin: org.leapframework/leap-oauth2

  public void removeAccessToken(Request request) {
    Session session = request.getSession(false);
    
    if(null != session) {
      session.removeAttribute(KEY);
    }
  }
}
origin: org.leapframework/leap-websecurity

@Override
public String loadToken(Request request) throws Throwable {
  Session session = request.getSession(false);
  
  if(null == session) {
    return null;
  }
  
  return (String)session.getAttribute(KEY);
}
origin: org.leapframework/leap-websecurity

@Override
public void saveToken(Request request, String token) throws Throwable {
  Session session = request.getSession();
  session.setAttribute(KEY, token);
}
origin: org.leapframework/leap-oauth2-webapp

@Override
public AccessToken loadAccessToken(Request request, AuthenticationContext context) {
  Session session = request.getSession(false);
  if(null == session) {
    return null;
  }
  return (AccessToken)session.getAttribute(KEY);
}
origin: org.leapframework/leap-oauth2-webapp

@Override
public void saveAccessToken(Request request, AuthenticationContext context, AccessToken at) {
  request.getSession(true).setAttribute(KEY, at);
}
origin: org.leapframework/leap-oauth2

public void saveAccessToken(Request request, OAuth2AccessToken at) {
  if(null != config.getTokenStore()) {
    config.getTokenStore().saveAccessToken(request, request.response(), at);
  }
  request.getSession(true).setAttribute(KEY, at);
}
origin: org.leapframework/leap-oauth2

@Override
public OAuth2AccessToken resolveAccessToken(Request request, boolean refreshIfExpired) {
  Session session = request.getSession(false);
  if(null == session) {
    return null;
leap.webRequestgetSession

Popular methods of Request

  • getHeader
  • getParameter
  • getAttribute
  • getContextPath
  • getPath
  • getServletRequest
  • setAttribute
  • forwardToView
  • getMessageSource
  • getMethod
  • getUri
  • getValidation
  • getUri,
  • getValidation,
  • tryGetCurrent,
  • getCharacterEncoding,
  • getContextUrl,
  • getLocale,
  • getParameters,
  • getQueryString,
  • getUriWithQueryString

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top plugins for WebStorm
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