org.tuckey.web.filters.urlrewrite.extend
Class RewriteMatch

java.lang.Object
  extended by org.tuckey.web.filters.urlrewrite.extend.RewriteMatch
Direct Known Subclasses:
JsonRewriteMatch, MockRewriteMatch

public class RewriteMatch
extends java.lang.Object

Service the request with a clean object. Perform any business logic data retrival etc then prepare an object for presentation of the data.


Constructor Summary
RewriteMatch()
           
 
Method Summary
 boolean execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          If this rule has been matched and has not been "stolen" by another rule then process the request.
 java.lang.String getMatchingUrl()
          When future rules are processed they need to have a URL to compare against.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RewriteMatch

public RewriteMatch()
Method Detail

getMatchingUrl

public java.lang.String getMatchingUrl()
When future rules are processed they need to have a URL to compare against. If this method is not implemented then the url before this rule will be used. If isLast() returns true then this will never be called.

Returns:
String

execute

public boolean execute(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException
If this rule has been matched and has not been "stolen" by another rule then process the request. If you return true then the filter chain will NOT continue.

Returns:
boolean true if the request was rewritten, false if not.
Throws:
javax.servlet.ServletException
java.io.IOException