java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.ConfigAdvancedHelper
Helper for advanced configuration page rendering and form processing. Organizes router configuration properties by category, hides sensitive settings, and provides structured display of advanced router options.
Field Summary
FieldsFields inherited from class HelperBase
_context, _log, _out, CHECKED, PROP_ADVANCED, SELECTEDModifier and TypeFieldDescriptionprotected RouterContextThe router context.protected LogThe log instance.protected WriterThe writer for output.static final StringChecked attribute for HTML checkboxes.static final StringProperty key for advanced mode.static final StringSelected attribute for HTML select options.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionGet the path to the router config file.getFFChecked(int mode) Get the checked attribute for floodfill radio buttons.Get the formatted settings HTML.booleanWhether the router is currently acting as a floodfill.Methods inherited from class HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriterModifier and TypeMethodDescriptionTranslate a string.Translate a string with a parameter.Translate a string with two parameters.static StringMark a string for extraction by xgettext and translation.protected StringgetChecked(String prop) Get the checked attribute for a boolean property.booleanCheck if advanced mode is enabled.Translate a string with plural forms (ngettext).voidsetContextId(String contextId) Configure this bean to query a particular router context.voidstoreWriter(Writer out) Store the writer for output.
Field Details
PROP_FLOODFILL_PARTICIPANT
The floodfill configuration property.- See Also:
PROP_AUTH_PFX
Prefix of the per-user authentication properties.- See Also:
_hideKeys
_headers
Constructor Details
ConfigAdvancedHelper
public ConfigAdvancedHelper()Constructs the helper.
Method Details
getSettings
getConfigFileName
Get the path to the router config file.- Returns:
- the config file path
getFFChecked
Get the checked attribute for floodfill radio buttons.- Parameters:
mode- 0=disabled, 1=enabled, 2=auto- Returns:
- CHECKED if the mode matches the current setting
isFloodfill
public boolean isFloodfill()Whether the router is currently acting as a floodfill.- Returns:
- true if floodfill is enabled