org.tuckey.web.filters.urlrewrite.json
Class JsonRewriteMatch
java.lang.Object
org.tuckey.web.filters.urlrewrite.extend.RewriteMatch
org.tuckey.web.filters.urlrewrite.json.JsonRewriteMatch
public class JsonRewriteMatch
- extends 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 |
toJSONString(java.lang.Object resultantObject,
java.lang.Throwable resultantThrowable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonRewriteMatch
public JsonRewriteMatch(java.lang.Object returned)
JsonRewriteMatch
public JsonRewriteMatch(java.lang.Throwable throwable)
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
toJSONString
public java.lang.String toJSONString(java.lang.Object resultantObject,
java.lang.Throwable resultantThrowable)