public class ConfigClientsHelper extends HelperBase
| Modifier and Type | Field and Description |
|---|---|
static String | BIND_ALL_INTERFACESfrom ClientListenerRunner |
static String | PROP_AUTHfrom ClientMessageEventListener |
static String | PROP_DISABLE_EXTERNALfrom ClientManager |
static String | PROP_ENABLE_CLIENT_CHANGEEnable/disable client configuration changes in the web UI |
static String | PROP_ENABLE_PLUGIN_INSTALLEnable/disable plugin installation in the web UI |
static String | PROP_ENABLE_SSLfrom ClientManager |
_context, _log, _out, CHECKED, PROP_ADVANCED, SELECTED| Constructor and Description |
|---|
ConfigClientsHelper() |
| Modifier and Type | Method and Description |
|---|---|
String | getAuth()Whether I2CP authentication is enabled. |
String | getForm1()Generate the clients configuration table HTML. |
String | getForm2()Generate the webapps configuration table HTML. |
String | getForm3()Generate the plugins configuration table HTML. |
String | getPort()Get the configured I2CP port. |
String | i2cpModeChecked(int mode)Get checked attribute for I2CP mode radio buttons. |
String[] | intfcAddresses()Get available network interface addresses. |
boolean | isClientChangeEnabled()Whether client configuration changes are allowed. |
boolean | isIFSelected(String addr)Whether the given address is the selected I2CP interface. |
boolean | isPluginInstallEnabled()Whether plugin installation is enabled. |
boolean | isPluginUpdateEnabled()Whether any plugins have updates available. |
void | setEdit(String edit)Set the edit mode for a specific client or for adding a new client. |
boolean | showPlugins()Whether plugins are enabled. |
static String | stripHTML(Properties props,
String key)Like in DataHelper but doesn't convert null to ""
There's a lot worse things a plugin could do but... |
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriterpublic static final String BIND_ALL_INTERFACES
public static final String PROP_AUTH
public static final String PROP_DISABLE_EXTERNAL
public static final String PROP_ENABLE_CLIENT_CHANGE
public static final String PROP_ENABLE_PLUGIN_INSTALL
public static final String PROP_ENABLE_SSL
public String getAuth()
public String getForm1()
public String getForm2()
public String getForm3()
public String getPort()
public String i2cpModeChecked(int mode)
mode - the mode number (0=disabled, 1=clear, 2=SSL)public String[] intfcAddresses()
public boolean isClientChangeEnabled()
public boolean isIFSelected(String addr)
addr - the address to checkpublic boolean isPluginInstallEnabled()
public boolean isPluginUpdateEnabled()
public void setEdit(String edit)
edit - the edit command stringpublic boolean showPlugins()
public static String stripHTML(Properties props, String key)
props - the properties to retrieve fromkey - the property key