|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.web.FormHandler
public class FormHandler
Simple form handler base class - does not depend on servlets or jsp,
but instead the subclasses are populated with javabean properties. e.g.
Field Summary | |
---|---|
protected java.lang.String |
_action
|
protected RouterContext |
_context
|
protected Log |
_log
|
protected java.lang.String |
_passphrase
|
Constructor Summary | |
---|---|
FormHandler()
|
Method Summary | |
---|---|
protected void |
addFormError(java.lang.String errorMsg)
Add an error message to display |
protected void |
addFormNotice(java.lang.String msg)
Add a non-error message to display |
java.lang.String |
getErrors()
Display any error messages (processing the form if it hasn't been yet) |
java.lang.String |
getNotices()
Display any non-error messages (processing the form if it hasn't been yet) |
protected void |
processForm()
Override this to perform the final processing (in turn, adding formNotice and formError messages, etc) |
void |
setAction(java.lang.String val)
|
void |
setContextId(java.lang.String contextId)
Configure this bean to query a particular router context |
void |
setNonce(java.lang.String val)
|
void |
setPassphrase(java.lang.String val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RouterContext _context
protected Log _log
protected java.lang.String _action
protected java.lang.String _passphrase
Constructor Detail |
---|
public FormHandler()
Method Detail |
---|
public void setContextId(java.lang.String contextId)
contextId
- begging few characters of the routerHash, or null to pick
the first one we come across.public void setNonce(java.lang.String val)
public void setAction(java.lang.String val)
public void setPassphrase(java.lang.String val)
protected void processForm()
protected void addFormError(java.lang.String errorMsg)
protected void addFormNotice(java.lang.String msg)
public java.lang.String getErrors()
public java.lang.String getNotices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |