|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.util.PortMapper
public class PortMapper
Map services to internal or external application ports for this context. Not intended for the router's NTCP or SSU ports.
| Field Summary | |
|---|---|
static String |
SVC_BOB
|
static String |
SVC_CONSOLE
|
static String |
SVC_EEPSITE
|
static String |
SVC_HTTP_PROXY
|
static String |
SVC_HTTPS_CONSOLE
|
static String |
SVC_HTTPS_PROXY
|
static String |
SVC_I2CP
not necessary, already in config? |
static String |
SVC_IRC
|
static String |
SVC_POP
|
static String |
SVC_SAM
|
static String |
SVC_SMTP
|
static String |
SVC_SOCKS
|
static String |
SVC_TAHOE
|
| Constructor Summary | |
|---|---|
PortMapper(I2PAppContext context)
|
|
| Method Summary | |
|---|---|
int |
getPort(String service)
Get the registered port for a service |
int |
getPort(String service,
int def)
Get the registered port for a service |
boolean |
register(String service,
int port)
Add the service |
void |
unregister(String service)
Remove the service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SVC_CONSOLE
public static final String SVC_HTTPS_CONSOLE
public static final String SVC_HTTP_PROXY
public static final String SVC_HTTPS_PROXY
public static final String SVC_EEPSITE
public static final String SVC_IRC
public static final String SVC_SOCKS
public static final String SVC_TAHOE
public static final String SVC_SMTP
public static final String SVC_POP
public static final String SVC_SAM
public static final String SVC_BOB
public static final String SVC_I2CP
| Constructor Detail |
|---|
public PortMapper(I2PAppContext context)
context - unused for now| Method Detail |
|---|
public boolean register(String service,
int port)
port - > 0
public void unregister(String service)
public int getPort(String service)
public int getPort(String service,
int def)
def - default
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||