net.i2p.router.web
Class ConfigServiceHandler
java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.ConfigServiceHandler
public class ConfigServiceHandler
- extends FormHandler
Handler to deal with form submissions from the service config form and act
upon the values.
Method Summary |
protected void |
processForm()
Override this to perform the final processing (in turn, adding formNotice
and formError messages, etc) |
(package private) static void |
registerSignalHandler(RouterContext ctx)
Register a handler for signals,
so we can handle HUP from the wrapper (non-Windows only, wrapper 3.2.0 or higher) |
static void |
registerWrapperNotifier(RouterContext ctx,
int code,
boolean rekey)
Register two shutdown hooks, one to rekey and/or tell the wrapper we are stopping,
and a final one to tell the wrapper we are stopped. |
static void |
unregisterSignalHandler()
Unregister the handler for signals |
Methods inherited from class net.i2p.router.web.FormHandler |
_, _, _, addFormError, addFormNotice, getAllMessages, getErrors, getJettyString, getNewNonce, getNotices, setAction, setContextId, setNonce, setSettings, storeMethod, storeNonces |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigServiceHandler
public ConfigServiceHandler()
registerWrapperNotifier
public static void registerWrapperNotifier(RouterContext ctx,
int code,
boolean rekey)
- Register two shutdown hooks, one to rekey and/or tell the wrapper we are stopping,
and a final one to tell the wrapper we are stopped.
- Since:
- 0.8.8
registerSignalHandler
static void registerSignalHandler(RouterContext ctx)
- Register a handler for signals,
so we can handle HUP from the wrapper (non-Windows only, wrapper 3.2.0 or higher)
- Since:
- 0.8.13
unregisterSignalHandler
public static void unregisterSignalHandler()
- Unregister the handler for signals
- Since:
- 0.8.13
processForm
protected void processForm()
- Description copied from class:
FormHandler
- Override this to perform the final processing (in turn, adding formNotice
and formError messages, etc)
- Overrides:
processForm
in class FormHandler