Codota Logo
PrettyFacesWrappedResponse.stripContextPath
Code IndexAdd Codota to your IDE (free)

How to use
stripContextPath
method
in
com.ocpsoft.pretty.faces.servlet.PrettyFacesWrappedResponse

Best Java code snippets using com.ocpsoft.pretty.faces.servlet.PrettyFacesWrappedResponse.stripContextPath (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: ocpsoft/prettyfaces

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/rewrite

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

String strippedUrl = stripContextPath(url);
origin: ocpsoft/rewrite

String strippedUrl = stripContextPath(url);
origin: ocpsoft/prettyfaces

String strippedUrl = stripContextPath(url);
origin: ocpsoft/prettyfaces

String strippedUrl = stripContextPath(url);
com.ocpsoft.pretty.faces.servletPrettyFacesWrappedResponsestripContextPath

Javadoc

If the given URL is prefixed with this request's context-path, return the URI without the context path. Otherwise return the URI unchanged.

Popular methods of PrettyFacesWrappedResponse

  • rewrite
  • rewritePrettyMappings
  • <init>

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Collectors (java.util.stream)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now