Tabnine Logo
RewriteRule.isOutbound
Code IndexAdd Tabnine to your IDE (free)

How to use
isOutbound
method
in
com.ocpsoft.pretty.faces.config.rewrite.RewriteRule

Best Java code snippets using com.ocpsoft.pretty.faces.config.rewrite.RewriteRule.isOutbound (Showing top 5 results out of 315)

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. 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. 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. 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

@Override
public boolean evaluate(final Rewrite event, final EvaluationContext context)
{
 if ((event instanceof HttpOutboundServletRewrite) && rule.isOutbound())
 {
   Address outboundResource = ((HttpOutboundServletRewrite) event).getAddress();
   String outboundUrl = outboundResource.toString();
   String contextPath = ((HttpServletRewrite) event).getContextPath();
   if (!contextPath.equals("/") && outboundUrl.startsWith(contextPath))
    outboundUrl = outboundUrl.substring(contextPath.length());
   if (rule.matches(URL.build(outboundUrl).decode().toURL()))
    return true;
 }
 return false;
}
com.ocpsoft.pretty.faces.config.rewriteRewriteRuleisOutbound

Popular methods of RewriteRule

  • getMatch
  • getPattern
  • getProcessor
  • getRedirect
  • getSubstitute
  • getToCase
  • getTrailingSlash
  • getUrl
  • isInbound
  • matches
    Return true if the match field contains a regex that matches some or all of the given URL, false if

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Best IntelliJ plugins
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