|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.japforwarding.JapForwardingTools
public class JapForwardingTools
This class provides some helper methods needed for the JAP forwarding system.
Field Summary | |
---|---|
private static int |
FORWARDER_FETCH_ERROR_CODE
This is the error code we send back to the blockee, if we could not find a forwarder entry. |
private static java.lang.String |
FORWARDER_FETCH_ERROR_MESSAGE
This is the error description, we send back to the blockee, if we could not find a forwarder entry. |
private static int |
FORWARDER_RENEW_ERROR_CODE
This is the error code we send back to the forwarder, if we don't know the forwarder ID the forwarder has sent to us for renewing the entry. |
private static java.lang.String |
FORWARDER_RENEW_ERROR_MESSAGE
This is the error description, we send back to the forwarder, if we don't know the forwarder ID the forwarder has sent to us for renewing the entry. |
private static int |
FORWARDER_VERIFY_ERROR_CODE
This is the error code we send back to the forwarder, if we couldn't reach him. |
private static java.lang.String |
FORWARDER_VERIFY_ERROR_MESSAGE
This is the error description, we send back to the forwarder, if we couldn't reach him. |
Constructor Summary | |
---|---|
JapForwardingTools()
|
Method Summary | |
---|---|
static java.lang.String |
addForwarder(byte[] a_receivedData,
java.net.InetAddress a_sourceAddress)
Decodes the received data, check the connection to the forwarder and adds him to the JAP forwarder list. |
static java.lang.String |
getForwarder()
Gets a forwarder entry (encoded with a captcha) from the JAP forwarder database. |
private static java.util.Vector |
getForwarderListInfoServices()
Returns a snapshot of all infoservices with a primary forwarder list. |
static java.lang.String |
renewForwarder(byte[] a_receivedData)
Renews a forwarder in the JAP forwarder database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int FORWARDER_VERIFY_ERROR_CODE
private static final java.lang.String FORWARDER_VERIFY_ERROR_MESSAGE
private static final int FORWARDER_RENEW_ERROR_CODE
private static final java.lang.String FORWARDER_RENEW_ERROR_MESSAGE
private static final int FORWARDER_FETCH_ERROR_CODE
private static final java.lang.String FORWARDER_FETCH_ERROR_MESSAGE
Constructor Detail |
---|
public JapForwardingTools()
Method Detail |
---|
private static java.util.Vector getForwarderListInfoServices()
public static java.lang.String addForwarder(byte[] a_receivedData, java.net.InetAddress a_sourceAddress)
a_receivedData
- The data the JAP client has sent to us.a_sourceAddress
- The internet address where the request was coming from. We use this
for checking the connection to the forwarder.
public static java.lang.String renewForwarder(byte[] a_receivedData)
a_receivedData
- The data the JAP client has sent to us.
public static java.lang.String getForwarder()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |