|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.i2ptunnel.web.IndexBean
public class IndexBean
Simple accessor for exposing tunnel info, but also an ugly form handler
Field Summary | |
---|---|
protected I2PAppContext |
_context
|
protected TunnelControllerGroup |
_group
|
protected Log |
_log
|
(package private) static java.lang.String |
CLIENT_NICKNAME
|
static int |
NOT_RUNNING
|
static java.lang.String |
PROP_CSS_DISABLED
|
static java.lang.String |
PROP_JS_DISABLED
|
(package private) static java.lang.String |
PROP_NONCE
|
static java.lang.String |
PROP_THEME_NAME
|
static java.lang.String |
PROP_TUNNEL_PASSPHRASE
|
static int |
RUNNING
|
static int |
STARTING
|
Constructor Summary | |
---|---|
IndexBean()
|
Method Summary | |
---|---|
boolean |
allowCSS()
|
boolean |
allowJS()
|
java.lang.String |
getClientDestination(int tunnel)
|
java.lang.String |
getClientInterface(int tunnel)
|
java.lang.String |
getClientPort(int tunnel)
|
protected TunnelController |
getController(int tunnel)
|
java.lang.String |
getDestinationBase64(int tunnel)
|
java.lang.String |
getInternalType(int tunnel)
|
java.lang.String |
getMessages()
Executes any action requested (start/stop/etc) and dump out the messages. |
long |
getNextNonce()
|
java.lang.String |
getServerTarget(int tunnel)
|
java.lang.String |
getSharedClient(int tunnel)
|
java.lang.String |
getTheme()
|
int |
getTunnelCount()
|
java.lang.String |
getTunnelDescription(int tunnel)
|
java.lang.String |
getTunnelName(int tunnel)
|
int |
getTunnelStatus(int tunnel)
|
java.lang.String |
getTunnelType(int tunnel)
|
(package private) java.lang.String |
getType()
|
java.lang.String |
getTypeName(java.lang.String internalType)
|
boolean |
isClient(int tunnelNum)
|
void |
setAction(java.lang.String action)
|
void |
setClientHost(java.lang.String host)
I2CP host the router is on |
void |
setClientport(java.lang.String port)
I2CP port the router is on |
void |
setConnectDelay(java.lang.String moo)
|
void |
setCustomOptions(java.lang.String customOptions)
what I2P session overrides should be used |
void |
setDescription(java.lang.String description)
one line description |
void |
setName(java.lang.String name)
Short name of the tunnel |
void |
setNonce(java.lang.String nonce)
|
void |
setPassphrase(java.lang.String phrase)
|
void |
setPort(java.lang.String port)
what port should this client/httpclient/ircclient listen on |
void |
setPrivKeyFile(java.lang.String file)
What filename is this server tunnel's private keys stored in |
void |
setProfile(java.lang.String profile)
|
void |
setProxyList(java.lang.String proxyList)
what HTTP outproxies should be used (httpclient specific) |
void |
setReachableBy(java.lang.String reachableBy)
what interface should this client/httpclient/ircclient listen on (unless overridden by the setReachableByOther() field) |
void |
setReachableByOther(java.lang.String reachableByOther)
If specified, defines the exact IP interface to listen for requests on (in the case of client/httpclient/ircclient tunnels) |
void |
setRemoveConfirm(java.lang.String moo)
If called with any value (and the form submitted with action=Remove), we really do want to stop and remove the tunnel. |
void |
setShared(boolean val)
|
void |
setShared(java.lang.String moo)
|
void |
setSpoofedHost(java.lang.String host)
What host does this http server tunnel spoof |
void |
setStartOnLoad(java.lang.String moo)
If called with any value, we want this tunnel to start whenever it is loaded (aka right now and whenever the router is started up) |
void |
setTargetDestination(java.lang.String dest)
What peer does this client tunnel point at |
void |
setTargetHost(java.lang.String host)
What host does this server tunnel point at |
void |
setTargetPort(java.lang.String port)
What port does this server tunnel point at |
void |
setTunnel(java.lang.String tunnel)
|
void |
setTunnelBackupQuantity(java.lang.String tunnelBackupQuantity)
how many tunnels to hold in reserve to guard against failures |
void |
setTunnelDepth(java.lang.String tunnelDepth)
how many hops to use for inbound tunnels |
void |
setTunnelQuantity(java.lang.String tunnelQuantity)
how many parallel inbound tunnels to use |
void |
setTunnelVariance(java.lang.String tunnelVariance)
how much randomisation to apply to the depth of tunnels |
void |
setType(java.lang.String type)
What type of tunnel (httpclient, ircclient, client, or server). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected I2PAppContext _context
protected Log _log
protected TunnelControllerGroup _group
public static final int RUNNING
public static final int STARTING
public static final int NOT_RUNNING
public static final java.lang.String PROP_TUNNEL_PASSPHRASE
static final java.lang.String PROP_NONCE
static final java.lang.String CLIENT_NICKNAME
public static final java.lang.String PROP_THEME_NAME
public static final java.lang.String PROP_CSS_DISABLED
public static final java.lang.String PROP_JS_DISABLED
Constructor Detail |
---|
public IndexBean()
Method Detail |
---|
public long getNextNonce()
public void setNonce(java.lang.String nonce)
public void setPassphrase(java.lang.String phrase)
public void setAction(java.lang.String action)
public void setTunnel(java.lang.String tunnel)
public java.lang.String getMessages()
public java.lang.String getTheme()
public boolean allowCSS()
public boolean allowJS()
public int getTunnelCount()
public boolean isClient(int tunnelNum)
public java.lang.String getTunnelName(int tunnel)
public java.lang.String getClientPort(int tunnel)
public java.lang.String getTunnelType(int tunnel)
public java.lang.String getTypeName(java.lang.String internalType)
public java.lang.String getInternalType(int tunnel)
public java.lang.String getClientInterface(int tunnel)
public int getTunnelStatus(int tunnel)
public java.lang.String getTunnelDescription(int tunnel)
public java.lang.String getSharedClient(int tunnel)
public java.lang.String getClientDestination(int tunnel)
public java.lang.String getServerTarget(int tunnel)
public java.lang.String getDestinationBase64(int tunnel)
public void setType(java.lang.String type)
java.lang.String getType()
public void setName(java.lang.String name)
public void setDescription(java.lang.String description)
public void setClientHost(java.lang.String host)
public void setClientport(java.lang.String port)
public void setTunnelDepth(java.lang.String tunnelDepth)
public void setTunnelQuantity(java.lang.String tunnelQuantity)
public void setTunnelVariance(java.lang.String tunnelVariance)
public void setTunnelBackupQuantity(java.lang.String tunnelBackupQuantity)
public void setCustomOptions(java.lang.String customOptions)
public void setProxyList(java.lang.String proxyList)
public void setPort(java.lang.String port)
public void setReachableBy(java.lang.String reachableBy)
public void setReachableByOther(java.lang.String reachableByOther)
public void setTargetDestination(java.lang.String dest)
public void setTargetHost(java.lang.String host)
public void setTargetPort(java.lang.String port)
public void setSpoofedHost(java.lang.String host)
public void setPrivKeyFile(java.lang.String file)
public void setRemoveConfirm(java.lang.String moo)
public void setStartOnLoad(java.lang.String moo)
public void setShared(java.lang.String moo)
public void setShared(boolean val)
public void setConnectDelay(java.lang.String moo)
public void setProfile(java.lang.String profile)
protected TunnelController getController(int tunnel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |