java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.ConfigKeyringHelper
Helper for keyring configuration page rendering and form processing.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classComparator for sorting blind data by base32 string.Field Summary
Fields 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
ConstructorsConstructorDescriptionCreates a helper; the container calls it with no arguments before rendering the page.Method Summary
Modifier and TypeMethodDescriptionGet the summary HTML.private booleanrender(StringBuilder buf, boolean local) Render the table of encrypted destinations into buf.private voidRender the keyring page.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.
Constructor Details
ConfigKeyringHelper
public ConfigKeyringHelper()Creates a helper; the container calls it with no arguments before rendering the page.
Method Details
getSummary
renderStatusHTML
Render the keyring page.- Parameters:
out- the writer the rendered page is appended to
render
Render the table of encrypted destinations into buf.- Parameters:
buf- the buffer to append the table HTML tolocal- true for local (Enc. LS1 only), false for remote (all types)- Returns:
- true if there were any entries