fc.web.forms
Class SubmitHackedHandler

java.lang.Object
  extended by fc.web.forms.SubmitHackedHandler

public class SubmitHackedHandler
extends Object

This class handles form submit data that may have been hacked/modified by the client. By default, this class logs a warning. Subclasses should override the handle(javax.servlet.http.HttpServletRequest, java.lang.String) method as needed.


Constructor Summary
SubmitHackedHandler(Form form)
           
 
Method Summary
 void handle(javax.servlet.http.HttpServletRequest req, String msg)
          This method should handle submit data that is hacked (different than the options/values allowed by the html form).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmitHackedHandler

public SubmitHackedHandler(Form form)
Method Detail

handle

public void handle(javax.servlet.http.HttpServletRequest req,
                   String msg)
            throws SubmitHackedException
This method should handle submit data that is hacked (different than the options/values allowed by the html form). Possible actions are to log an error, email the developers, identify compromised machines etc.

If this method throws a SubmitHackedException, then further form processing will stop and the invoking page/servlet can handle the exception appropriately.

The default implementation simply logs the error and then returns.

Throws:
SubmitHackedException