fc.web.forms
Class SubmitHackedHandler
java.lang.Object
fc.web.forms.SubmitHackedHandler
public class SubmitHackedHandler
- extends java.lang.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.
Method Summary |
void |
handle(javax.servlet.http.HttpServletRequest req,
java.lang.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 |
SubmitHackedHandler
public SubmitHackedHandler(Form form)
handle
public void handle(javax.servlet.http.HttpServletRequest req,
java.lang.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