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

How to use
getCharacterEncoding
method
in
leap.web.Request

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

origin: org.leapframework/leap-oauth2-server

  protected void sendSuccessRedirect(Request request, Response response, AuthzAuthentication authc, Map<String,String> qs) {
    OAuth2Params params = authc.getParams();

    String state = params.getState();
    if(!Strings.isEmpty(state)) {
      qs.put("state", state);
    }

    for(Oauth2RedirectHandler handler : handlers){
      if(!handler.onOauth2LoginSuccessRedirect(request,response,authc,qs)){
        return;
      }
    }

    QueryStringBuilder queryString =
        new QueryStringBuilder(request.getCharacterEncoding());
    for (Map.Entry<String, String> entry : qs.entrySet()) {
      queryString.add(entry.getKey(), entry.getValue());
    }

    response.sendRedirect(Urls.appendQueryString(authc.getRedirectUri(), queryString.build()));
  }
}
origin: org.leapframework/leap-oauth2

  protected void sendSuccessRedirect(Request request, Response response, AuthzAuthentication authc, Map<String,String> qs) {
    OAuth2Params params = authc.getParams();

    String state = params.getState();
    if(!Strings.isEmpty(state)) {
      qs.put("state", state);
    }

    for(Oauth2RedirectHandler handler : handlers){
      if(!handler.onOauth2LoginSuccessRedirect(request,response,authc,qs)){
        return;
      }
    }

    QueryStringBuilder queryString =
        new QueryStringBuilder(request.getCharacterEncoding());
    for (Map.Entry<String, String> entry : qs.entrySet()) {
      queryString.add(entry.getKey(), entry.getValue());
    }

    response.sendRedirect(Urls.appendQueryString(authc.getRedirectUri(), queryString.build()));
  }
}
leap.webRequestgetCharacterEncoding

Popular methods of Request

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • 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