org.tuckey.web.filters.urlrewrite.extend
Class RewriteMatch
java.lang.Object
org.tuckey.web.filters.urlrewrite.extend.RewriteMatch
- Direct Known Subclasses:
- JsonRewriteMatch
public class RewriteMatch
- extends Object
Service the request with a clean object.
Perform any business logic data retrival etc then prepare an object for presentation of the data.
|
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. |
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 |
RewriteMatch
public RewriteMatch()
getMatchingUrl
public 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,
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
IOException
Copyright © 2001-2012 Paul Tuckey. All Rights Reserved.