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

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

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

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

/**
* 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

/**
* 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

/**
* 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

@Override
public boolean evaluate(final Rewrite event, final EvaluationContext context)
{
 if (event instanceof HttpInboundServletRewrite && rule.isInbound() && PFUtil.isRewritingEnabled(event))
 {
   HttpServletRewrite httpRewrite = (HttpServletRewrite) event;
   String path = httpRewrite.getInboundAddress().getPath();
   String url = URL.build(path).decode().toURL()
       + QueryString.build(httpRewrite.getInboundAddress().getQuery()).toQueryString();
   String contextPath = httpRewrite.getContextPath();
   if (!contextPath.equals("/") && url.startsWith(contextPath))
    url = url.substring(contextPath.length());
   if (rule.matches(url))
   {
    return true;
   }
 }
 return false;
}
com.ocpsoft.pretty.faces.config.rewriteRewriteRuleisInbound

Popular methods of RewriteRule

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

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JFrame (javax.swing)
  • Best plugins for Eclipse
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