org.tuckey.web.filters.urlrewrite.test
Class MockRewriteMatch
java.lang.Object
org.tuckey.web.filters.urlrewrite.extend.RewriteMatch
org.tuckey.web.filters.urlrewrite.test.MockRewriteMatch
public class MockRewriteMatch
- extends RewriteMatch
Mock RewriteMatch that can be used for testing. Included here and not in test folder as it needs to be deployed with
the main library.
- Version:
- $Revision: 33 $ $Date: 2006-09-12 16:41:56 +1200 (Tue, 12 Sep 2006) $
- Author:
- Paul Tuckey
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. |
static long |
getCalledTime()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockRewriteMatch
public MockRewriteMatch()
execute
public boolean execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Description copied from class:
RewriteMatch
- 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.
- Overrides:
execute
in class RewriteMatch
- Returns:
- boolean true if the request was rewritten, false if not.
- Throws:
javax.servlet.ServletException
java.io.IOException
getCalledTime
public static long getCalledTime()