Package net.i2p.router.web
Class ConfigServiceHandler
java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.ConfigServiceHandler
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, _out, _requestWrapper, _settings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs the systray enabled?protected voidImplement this to perform the final processing (in turn, adding formNotice and formError messages, etc) Will only be called if _action is non-null and the nonce is valid.(package private) static voidRegister a handler for signals, so we can handle HUP from the wrapper (wrapper 3.2.0 or higher)static voidregisterWrapperNotifier(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.booleanShould we show the cancel button?booleanShould we show the systray controls?static voidUnregister the handler for signalsstatic FileDoes not necessarily exist.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, storeWriter
-
Constructor Details
-
ConfigServiceHandler
public ConfigServiceHandler()
-
-
Method Details
-
registerWrapperNotifier
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
Register a handler for signals, so we can handle HUP from the wrapper (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
-
shouldShowSystray
public boolean shouldShowSystray()Should we show the systray controls?- Since:
- 0.9.26
-
isSystrayEnabled
public boolean isSystrayEnabled()Is the systray enabled?- Since:
- 0.9.26
-
getConsoleURL
- Since:
- 0.9.33
-
processForm
protected void processForm()Description copied from class:FormHandlerImplement this to perform the final processing (in turn, adding formNotice and formError messages, etc) Will only be called if _action is non-null and the nonce is valid.- Specified by:
processFormin classFormHandler
-
wrapperLogFile
Does not necessarily exist.- Returns:
- non-null, doesn't necessarily exist
- Since:
- 0.9.1, public since 0.9.27, moved from LogsHelper in 0.9.33
-