NetKernel APIs


com.ten60.netkernel.module.rewrite
Class RegexRewriterRule

java.lang.Object
  extended bycom.ten60.netkernel.module.rewrite.RegexRewriterRule

public final class RegexRewriterRule
extends Object

Regular Expression based URL Rewriter Rule. eg Maps Regex --> New Capturing groups are substituted into New using the apache mod_rewrite $1...$N convention.


Constructor Summary
RegexRewriterRule(String aPattern, String aTo)
          Creates a new instance of RegexRewriterRule.
 
Method Summary
static String encode(String aInput)
           
 URIdentifier map(URIdentifier aURI)
          Map a URI using the preconfigured Matchers
 boolean matches(CharSequence aString)
          simple test to see if it matches without doing anything
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexRewriterRule

public RegexRewriterRule(String aPattern,
                         String aTo)
Creates a new instance of RegexRewriterRule. Matches are created and cached to reduce wasted objects.

Method Detail

map

public URIdentifier map(URIdentifier aURI)
Map a URI using the preconfigured Matchers


matches

public boolean matches(CharSequence aString)
simple test to see if it matches without doing anything


encode

public static String encode(String aInput)

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.