org.tuckey.web.filters.urlrewrite.json
Class JsonRewriteMatch

java.lang.Object
  extended by org.tuckey.web.filters.urlrewrite.extend.RewriteMatch
      extended by org.tuckey.web.filters.urlrewrite.json.JsonRewriteMatch

public class JsonRewriteMatch
extends RewriteMatch


Constructor Summary
JsonRewriteMatch(java.lang.Object returned)
           
JsonRewriteMatch(java.lang.Throwable throwable)
           
 
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 org.tuckey.web.filters.urlrewrite.extend.RewriteMatch
getMatchingUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRewriteMatch

public JsonRewriteMatch(java.lang.Object returned)

JsonRewriteMatch

public JsonRewriteMatch(java.lang.Throwable throwable)
Method Detail

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)