congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PrettyFacesWrappedResponse.stripContextPath
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • putExtra (Intent)
  • getSystemService (Context)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 14 Best Plugins for Eclipse
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