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

How to use
getUriWithQueryString
method
in
leap.web.Request

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

origin: org.leapframework/leap-websecurity

protected String getReturnUrl(LoginContext context, Request request, String loginUrl){
  String returnUrl = context.getReturnUrl() ;
  
  if(null == returnUrl){
    returnUrl = request.getParameter(config.getReturnUrlParameterName());
  }
  
  if(Strings.isEmpty(returnUrl)){
    if(null != loginUrl) {
      String loginPath = Urls.removeQueryString(urlHandler.removePrefix(loginUrl));
      if(!request.getPath().equals(loginPath)) {
        return request.getUriWithQueryString();
      }
    }
    if(config.isLoginRedirectRoot()) {
      return "/";
    }else {
      return request.getUri();
    }
  }
  
  return returnUrl;
}

origin: org.leapframework/leap-oauth2

protected String buildClientRedirectUri(Request request) {
  String url = null;
  
  if(!config.getClientRedirectUri().startsWith("/")) {
    url = config.getClientRedirectUri();
  }else{
    if(proxyResolver.isProxyRequest(request)){
      String contextUrl = proxyResolver.resolveUserAgentForwarded(request);
      if(!Strings.isEmpty(contextUrl)){
        url = contextUrl + config.getClientRedirectUri();
      }else{
        url = request.getContextUrl() + config.getClientRedirectUri();
      }
    }else{
      url = request.getContextUrl() + config.getClientRedirectUri();
    }
  }
  url = Urls.appendQueryString(url, "oauth2_redirect=1&" + sc.config().getReturnUrlParameterName() + "=" + Urls.encode(request.getUriWithQueryString()));
  
  return url;
}
leap.webRequestgetUriWithQueryString

Popular methods of Request

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

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Reference (javax.naming)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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