Codota Logo
com.ocpsoft.pretty.faces.rewrite
Code IndexAdd Codota to your IDE (free)

How to use com.ocpsoft.pretty.faces.rewrite

Best Java code snippets using com.ocpsoft.pretty.faces.rewrite (Showing top 20 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

/**
* Rewrite the given URL using the provided {@link RewriteRule} object. Process the URL only if the rule is set to
* outbound="true"
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isOutbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processOutbound(request, response, rule, result);
   }
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Rewrite the given URL using the provided {@link RewriteRule} object as a set of rules.
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isInbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processInbound(request, response, rule, result);
   }
 }
 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: ocpsoft/rewrite

/**
* Rewrite the given URL using the provided {@link RewriteRule} object. Process the URL only if the rule is set to
* outbound="true"
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isOutbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processOutbound(request, response, rule, result);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

/**
* Rewrite the given URL using the provided {@link RewriteRule} object as a set of rules.
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isInbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processInbound(request, response, rule, result);
   }
 }
 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: com.ocpsoft/prettyfaces-jsf2

/**
* Rewrite the given URL using the provided {@link RewriteRule} object. Process the URL only if the rule is set to
* outbound="true"
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isOutbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processOutbound(request, response, rule, result);
   }
 }
 return result;
}
origin: ocpsoft/rewrite

/**
* Rewrite the given URL using the provided {@link RewriteRule} object as a set of rules.
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isInbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processInbound(request, response, rule, result);
   }
 }
 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: ocpsoft/prettyfaces

/**
* Rewrite the given URL using the provided {@link RewriteRule} object. Process the URL only if the rule is set to
* outbound="true"
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isOutbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processOutbound(request, response, rule, result);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

/**
* Rewrite the given URL using the provided {@link RewriteRule} object as a set of rules.
* 
* @return The rewritten URL, or the unchanged URL if no action was taken.
*/
public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if ((rule != null) && rule.isInbound() && rule.matches(url))
 {
   for (Processor p : processors)
   {
    result = p.processInbound(request, response, rule, result);
   }
 }
 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

public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processOutbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule,
    final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processInbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/rewrite

public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processOutbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule,
    final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processInbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processOutbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/rewrite

public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule,
    final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processInbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

public String processOutbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule, final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processOutbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

public String processInbound(final HttpServletRequest request, final HttpServletResponse response,
    final RewriteRule rule,
    final String url)
{
 String result = url;
 if (rule.getProcessor().length() > 0)
 {
   try
   {
    Class<?> processorClass = Class.forName(rule.getProcessor());
    Processor processor = (Processor) processorClass.newInstance();
    result = processor.processInbound(request, response, rule, url);
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
          + ", for input URL <[" + url + "]>", e);
   }
 }
 return result;
}
com.ocpsoft.pretty.faces.rewrite

Most used classes

  • Processor
    Perform a rewrite operation on a given URL, utilizing any necessary information from the given Rewri
  • RewriteEngine
    Process URL rewrites based on configuration
  • CaseProcessor
  • RegexProcessor
  • TrailingSlashProcessor
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