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

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

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

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

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

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

Javadoc

Perform a rewrite operation on a given URL, utilizing any necessary information from the given RewriteRuleconfiguration object from which the processor was invoked.

Most used methods

  • processInbound
    Process an inbound URL Rewrite request. This takes place when the request first comes in to the serv
  • processOutbound
    Process an outbound URL Rewrite request. This takes place when a URL is passed in to HttpServletResp

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 21 Best IntelliJ Plugins
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