Tabnine Logo
Processor.processOutbound
Code IndexAdd Tabnine to your IDE (free)

How to use
processOutbound
method
in
com.ocpsoft.pretty.faces.rewrite.Processor

Best Java code snippets using com.ocpsoft.pretty.faces.rewrite.Processor.processOutbound (Showing top 8 results out of 315)

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

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 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 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 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;
}
com.ocpsoft.pretty.faces.rewriteProcessorprocessOutbound

Javadoc

Process an outbound URL Rewrite request. This takes place when a URL is passed in to HttpServletResponse#encodeRedirectURL(String), and since most frameworks ensure the call to 'encodeRedirectUrl()' occurs automatically, can be assumed to occur whenever a URL would be rendered to HTML output.

Popular methods of Processor

  • processInbound
    Process an inbound URL Rewrite request. This takes place when the request first comes in to the serv

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Notification (javax.management)
  • Top 12 Jupyter Notebook extensions
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