net.i2p.i2ptunnel.web
Class EditBean

java.lang.Object
  extended by net.i2p.i2ptunnel.web.IndexBean
      extended by net.i2p.i2ptunnel.web.EditBean

public class EditBean
extends IndexBean

Ugly little accessor for the edit page Warning - This class is not part of the i2ptunnel API, it has been moved from the jar to the war. Usage by classes outside of i2ptunnel.war is deprecated.


Field Summary
 
Fields inherited from class net.i2p.i2ptunnel.web.IndexBean
_context, _group, _helper, _log, DEFAULT_THEME, NOT_RUNNING, PROP_CSS_DISABLED, PROP_JS_DISABLED, PROP_THEME_NAME, RUNNING, STANDBY, STARTING
 
Constructor Summary
EditBean()
           
 
Method Summary
 String getAccessList(int tunnel)
           
 String getAccessMode(int tunnel)
           
 boolean getAllowAccept(int tunnel)
           
 boolean getAllowInternalSSL(int tunnel)
           
 boolean getAllowReferer(int tunnel)
           
 boolean getAllowUserAgent(int tunnel)
           
 int getCert(int tunnel)
           
 boolean getClose(int tunnel)
           
 int getCloseTime(int tunnel)
           
 String getCustomOptions(int tunnel)
           
 boolean getDCC(int tunnel)
           
 boolean getDelayOpen(int tunnel)
           
 int getEffort(int tunnel)
           
 boolean getEncrypt(int tunnel)
           
 String getEncryptKey(int tunnel)
           
 String getI2CPHost(int tunnel)
           
 String getI2CPPort(int tunnel)
           
 String getJumpList(int tunnel)
           
 String getKey1(int tunnel)
          Random keys, hidden in forms
 String getKey2(int tunnel)
           
 String getKey3(int tunnel)
           
 String getKey4(int tunnel)
           
 int getLimitDay(int tunnel)
           
 int getLimitHour(int tunnel)
           
 int getLimitMinute(int tunnel)
          all of these are @since 0.8.3
 int getMaxStreams(int tunnel)
           
 boolean getMultihome(int tunnel)
           
 String getNameSignature(int tunnel)
           
 boolean getNewDest(int tunnel)
           
 boolean getOutproxyAuth(int tunnel)
           
 String getOutproxyPassword(int tunnel)
           
 String getOutproxyUsername(int tunnel)
           
 boolean getPersistentClientKey(int tunnel)
           
 int getPostBanTime(int tunnel)
           
 int getPostCheckTime(int tunnel)
           
 int getPostMax(int tunnel)
          POST limits
 int getPostTotalBanTime(int tunnel)
           
 int getPostTotalMax(int tunnel)
           
 String getPrivateKeyFile(int tunnel)
           
 boolean getProxyAuth(int tunnel)
          all proxy auth @since 0.8.2
 String getQuantityOptions(int tunnel)
           
 boolean getReduce(int tunnel)
           
 int getReduceCount(int tunnel)
           
 int getReduceTime(int tunnel)
           
 String getSigner(int tunnel)
           
 int getSigType(int tunnel, String newTunnelType)
           
 String getSpoofedHost(int tunnel)
           
 String getSslProxies(int tunnel)
           
 String getTargetHost(int tunnel)
           
 String getTargetPort(int tunnel)
           
 int getTotalDay(int tunnel)
           
 int getTotalHour(int tunnel)
           
 int getTotalMinute(int tunnel)
           
 int getTunnelBackupQuantity(int tunnel, int defaultBackupQuantity)
           
 int getTunnelDepth(int tunnel, int defaultLength)
           
 int getTunnelQuantity(int tunnel, int defaultQuantity)
           
 int getTunnelVariance(int tunnel, int defaultVariance)
           
 boolean getUniqueLocal(int tunnel)
           
 boolean getUseOutproxyPlugin(int tunnel)
          Default true
 Set<String> interfaceSet()
           
 boolean isAdvanced()
           
 boolean isInteractive(int tunnel)
           
 boolean isRouterContext()
           
 boolean isSharedClient(int tunnel)
           
 boolean isSigTypeAvailable(int code)
           
 boolean shouldDelay(int tunnel)
           
 boolean startAutomatically(int tunnel)
           
static boolean staticIsClient(int tunnel)
          Is it a client or server in the UI and I2P side? Note that a streamr client is a UI and I2P client but a server on the localhost side.
 
Methods inherited from class net.i2p.i2ptunnel.web.IndexBean
_t, allowCSS, allowJS, getClientDestination, getClientInterface, getClientPort, getClientPort2, getController, getDestHashBase32, getDestination, getDestinationBase64, getInternalType, getIsUsingOutproxyPlugin, getMessages, getNextNonce, getServerTarget, getSharedClient, getTheme, getTunnelCount, getTunnelDescription, getTunnelName, getTunnelStatus, getTunnelType, getType, getTypeName, isClient, isClient, isInitialized, isRejectInproxy, isServerTargetLinkValid, isSSLEnabled, ngettext, setAccessList, setAccessMode, setAction, setAllowAccept, setAllowInternalSSL, setAllowReferer, setAllowUserAgent, setCert, setClientHost, setClientport, setClose, setCloseTime, setConnectDelay, setDCC, setDelayOpen, setEffort, setEncrypt, setEncryptKey, setJumpList, setKey1, setKey2, setKey3, setKey4, setLimitDay, setLimitHour, setLimitMinute, setMaxStreams, setMultihome, setName, setNewDest, setNofilter_customOptions, setNofilter_description, setNofilter_outproxyPassword, setNofilter_proxyPassword, setNonce, setOutproxyAuth, setOutproxyUsername, setPort, setPostBanTime, setPostCheckTime, setPostMax, setPostTotalBanTime, setPostTotalMax, setPrivKeyFile, setProfile, setProxyAuth, setProxyList, setProxyUsername, setReachableBy, setReduce, setReduceCount, setReduceTime, setRejectInproxy, setRemoveConfirm, setShared, setShared, setSigner, setSigType, setSpoofedHost, setSslProxies, setStartOnLoad, setTargetDestination, setTargetHost, setTargetPort, setTotalDay, setTotalHour, setTotalMinute, setTunnel, setTunnelBackupQuantity, setTunnelDepth, setTunnelQuantity, setTunnelVariance, setType, setUniqueLocal, setUseOutproxyPlugin, setUseSSL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditBean

public EditBean()
Method Detail

staticIsClient

public static boolean staticIsClient(int tunnel)
Is it a client or server in the UI and I2P side? Note that a streamr client is a UI and I2P client but a server on the localhost side. Note that a streamr server is a UI and I2P server but a client on the localhost side.


getTargetHost

public String getTargetHost(int tunnel)

getTargetPort

public String getTargetPort(int tunnel)

getSpoofedHost

public String getSpoofedHost(int tunnel)

getPrivateKeyFile

public String getPrivateKeyFile(int tunnel)

getNameSignature

public String getNameSignature(int tunnel)

startAutomatically

public boolean startAutomatically(int tunnel)

isSharedClient

public boolean isSharedClient(int tunnel)

shouldDelay

public boolean shouldDelay(int tunnel)

isInteractive

public boolean isInteractive(int tunnel)

getTunnelDepth

public int getTunnelDepth(int tunnel,
                          int defaultLength)

getTunnelQuantity

public int getTunnelQuantity(int tunnel,
                             int defaultQuantity)

getTunnelBackupQuantity

public int getTunnelBackupQuantity(int tunnel,
                                   int defaultBackupQuantity)

getTunnelVariance

public int getTunnelVariance(int tunnel,
                             int defaultVariance)

getReduce

public boolean getReduce(int tunnel)

getReduceCount

public int getReduceCount(int tunnel)

getReduceTime

public int getReduceTime(int tunnel)

getCert

public int getCert(int tunnel)

getEffort

public int getEffort(int tunnel)

getSigner

public String getSigner(int tunnel)

getEncrypt

public boolean getEncrypt(int tunnel)

getSigType

public int getSigType(int tunnel,
                      String newTunnelType)
Parameters:
newTunnelType - used if tunnel < 0
Since:
0.9.12

isSigTypeAvailable

public boolean isSigTypeAvailable(int code)
Since:
0.9.12

getKey1

public String getKey1(int tunnel)
Random keys, hidden in forms

Since:
0.9.18

getKey2

public String getKey2(int tunnel)

getKey3

public String getKey3(int tunnel)

getKey4

public String getKey4(int tunnel)

getDCC

public boolean getDCC(int tunnel)
Since:
0.8.9

getEncryptKey

public String getEncryptKey(int tunnel)

getAccessMode

public String getAccessMode(int tunnel)

getAccessList

public String getAccessList(int tunnel)

getJumpList

public String getJumpList(int tunnel)

getClose

public boolean getClose(int tunnel)

getCloseTime

public int getCloseTime(int tunnel)

getNewDest

public boolean getNewDest(int tunnel)

getPersistentClientKey

public boolean getPersistentClientKey(int tunnel)

getDelayOpen

public boolean getDelayOpen(int tunnel)

getAllowUserAgent

public boolean getAllowUserAgent(int tunnel)
Since:
0.9.14

getAllowReferer

public boolean getAllowReferer(int tunnel)
Since:
0.9.14

getAllowAccept

public boolean getAllowAccept(int tunnel)
Since:
0.9.14

getAllowInternalSSL

public boolean getAllowInternalSSL(int tunnel)
Since:
0.9.14

getMultihome

public boolean getMultihome(int tunnel)
Since:
0.9.18

getProxyAuth

public boolean getProxyAuth(int tunnel)
all proxy auth @since 0.8.2


getOutproxyAuth

public boolean getOutproxyAuth(int tunnel)

getOutproxyUsername

public String getOutproxyUsername(int tunnel)

getOutproxyPassword

public String getOutproxyPassword(int tunnel)

getSslProxies

public String getSslProxies(int tunnel)
Since:
0.9.11

getUseOutproxyPlugin

public boolean getUseOutproxyPlugin(int tunnel)
Default true

Since:
0.9.11

getLimitMinute

public int getLimitMinute(int tunnel)
all of these are @since 0.8.3


getLimitHour

public int getLimitHour(int tunnel)

getLimitDay

public int getLimitDay(int tunnel)

getTotalMinute

public int getTotalMinute(int tunnel)

getTotalHour

public int getTotalHour(int tunnel)

getTotalDay

public int getTotalDay(int tunnel)

getMaxStreams

public int getMaxStreams(int tunnel)

getPostMax

public int getPostMax(int tunnel)
POST limits

Since:
0.9.9

getPostTotalMax

public int getPostTotalMax(int tunnel)

getPostCheckTime

public int getPostCheckTime(int tunnel)

getPostBanTime

public int getPostBanTime(int tunnel)

getPostTotalBanTime

public int getPostTotalBanTime(int tunnel)

getUniqueLocal

public boolean getUniqueLocal(int tunnel)
Since:
0.9.13

isRouterContext

public boolean isRouterContext()
Since:
0.8.3

interfaceSet

public Set<String> interfaceSet()
Since:
0.8.3

isAdvanced

public boolean isAdvanced()
Since:
0.9.12

getI2CPHost

public String getI2CPHost(int tunnel)

getI2CPPort

public String getI2CPPort(int tunnel)

getCustomOptions

public String getCustomOptions(int tunnel)

getQuantityOptions

public String getQuantityOptions(int tunnel)
Since:
0.9.7