net.i2p.router.web
Class ConfigServiceHandler

java.lang.Object
  extended by net.i2p.router.web.FormHandler
      extended by 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.


Field Summary
 
Fields inherited from class net.i2p.router.web.FormHandler
_action, _context, _log, _method, _requestWrapper, _settings
 
Constructor Summary
ConfigServiceHandler()
           
 
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.
 boolean shouldShowCancelGraceful()
          Should we show the cancel button?
static void unregisterSignalHandler()
          Unregister the handler for signals
 
Methods inherited from class net.i2p.router.web.FormHandler
_t, _t, _t, _x, addFormError, addFormErrorNoEscape, addFormNotice, addFormNoticeNoEscape, getAllMessages, getErrors, getJettyString, getNewNonce, getNotices, isAdvanced, setAction, setContextId, setNonce, setRequestWrapper, setSettings, storeMethod, storeNonces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigServiceHandler

public ConfigServiceHandler()
Method Detail

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

shouldShowCancelGraceful

public boolean shouldShowCancelGraceful()
Should we show the cancel button?

Since:
0.9.19

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