jap.forward
Class JAPRoutingMessage

java.lang.Object
  extended by anon.util.AbstractMessage
      extended by jap.forward.JAPRoutingMessage

public final class JAPRoutingMessage
extends AbstractMessage

This is a message implementation used for forwarding-specific messages. It is used from some forwarding related classes to notify the observers. The message code identifies the reason of the notification.


Field Summary
static int ALLOWED_MIXCASCADES_LIST_CHANGED
          This message is sent from JAPRoutingUseableMixCascades whenever a MixCascade is added/updated/removed in the list of allowed mixcascades for the restricted mode.
static int ALLOWED_MIXCASCADES_POLICY_CHANGED
          This message is sent from JAPRoutingUseableMixCascades when the policy of the allowed mixcascades is switched between restricted-to-list or access-to-all mode.
static int CLIENT_SETTINGS_CHANGED
          This message is sent from JAPRoutingSettings, if the client settings were changed (whether new connections to the anonymity servers shall use a forwarder, whether it is possible to obtain the information about a forwarder directly from the InfoServices or the mail-gateway has to be used and the InfoService requests need also forwarding).
static int CONNECTION_CLASS_CHANGED
          This message is sent from JAPRoutingConnectionClassSelector when the current connection class has been changed (switched to another class).
static int CONNECTION_PARAMETERS_CHANGED
          This message is sent from JAPRoutingConnectionClassSelector when the forwarding bandwidth values or the number of simultaneous connections of the current connection class were changed and the forwarding system is updated to the new values.
static int PROPAGANDA_INSTANCES_ADDED
          This message is sent after there was added a new forwarding server propaganda instance.
static int REGISTRATION_INFOSERVICES_LIST_CHANGED
          This message is sent from JAPRoutingRegistrationInfoServices whenever an InfoService is added/updated/removed in the list of registration infoservices for the registration restricted-to-list mode.
static int REGISTRATION_INFOSERVICES_POLICY_CHANGED
          This message is sent from JAPRoutingRegistrationInfoServices when the policy of the registration at the infoservices is switched between restricted-to-list or register-at-all mode.
static int REGISTRATION_STATUS_CHANGED
          This message is sent from JAPRoutingRegistrationStatusObserver, if the registration status or the reason why the registration failed has been changed.
static int ROUTING_MODE_CHANGED
          This message is sent after the routing mode was changed.
static int SERVER_PORT_CHANGED
          This message is sent from JAPRoutingSettings, if the port where the forwarding server is listening on for client requests, was changed successfully (regardless whether the forwarding server is currently running or not).
static int SERVER_STATISTICS_UPDATED
          This message is sent from JAPRoutingServerStatisticsListener when new server statistics are available.
static int START_PROPAGANDA_BEGIN
          This message is sent, when JAPRoutingSettings.startPropaganda() is called and the propaganda is also started (we are in SERVER_ROUTING_MODE).
static int START_PROPAGANDA_READY
          This message is sent, when JAPRoutingSettings.startPropaganda() is ready, which means that all propaganda instances are started.
static int STOP_PROPAGANDA_CALLED
          This message is sent, after JAPRoutingSettings.stopPropaganda() was called.
 
Constructor Summary
JAPRoutingMessage(int a_messageCode)
          This creates a new JAPRoutingMessage.
JAPRoutingMessage(int a_messageCode, java.lang.Object a_messageData)
          This creates a new JAPRoutingMessage.
 
Method Summary
 
Methods inherited from class anon.util.AbstractMessage
getMessageCode, getMessageData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROUTING_MODE_CHANGED

public static final int ROUTING_MODE_CHANGED
This message is sent after the routing mode was changed.

See Also:
Constant Field Values

PROPAGANDA_INSTANCES_ADDED

public static final int PROPAGANDA_INSTANCES_ADDED
This message is sent after there was added a new forwarding server propaganda instance. If this message is sent, the data must be the list of all propagandists.

See Also:
Constant Field Values

START_PROPAGANDA_BEGIN

public static final int START_PROPAGANDA_BEGIN
This message is sent, when JAPRoutingSettings.startPropaganda() is called and the propaganda is also started (we are in SERVER_ROUTING_MODE).

See Also:
Constant Field Values

START_PROPAGANDA_READY

public static final int START_PROPAGANDA_READY
This message is sent, when JAPRoutingSettings.startPropaganda() is ready, which means that all propaganda instances are started. The data must be the list of all started propaganda instances.

See Also:
Constant Field Values

STOP_PROPAGANDA_CALLED

public static final int STOP_PROPAGANDA_CALLED
This message is sent, after JAPRoutingSettings.stopPropaganda() was called. So all propaganda instances are stopped. Attention: This message can appear without a prior START_PROPAGANDA_READY or START_PROPAGANDA_BEGIN message, e.g. if the startPropaganda thread was interrupted while starting all propaganda instances.

See Also:
Constant Field Values

CONNECTION_CLASS_CHANGED

public static final int CONNECTION_CLASS_CHANGED
This message is sent from JAPRoutingConnectionClassSelector when the current connection class has been changed (switched to another class).

See Also:
Constant Field Values

CONNECTION_PARAMETERS_CHANGED

public static final int CONNECTION_PARAMETERS_CHANGED
This message is sent from JAPRoutingConnectionClassSelector when the forwarding bandwidth values or the number of simultaneous connections of the current connection class were changed and the forwarding system is updated to the new values.

See Also:
Constant Field Values

ALLOWED_MIXCASCADES_POLICY_CHANGED

public static final int ALLOWED_MIXCASCADES_POLICY_CHANGED
This message is sent from JAPRoutingUseableMixCascades when the policy of the allowed mixcascades is switched between restricted-to-list or access-to-all mode.

See Also:
Constant Field Values

ALLOWED_MIXCASCADES_LIST_CHANGED

public static final int ALLOWED_MIXCASCADES_LIST_CHANGED
This message is sent from JAPRoutingUseableMixCascades whenever a MixCascade is added/updated/removed in the list of allowed mixcascades for the restricted mode. Attention: This can also occur, if access-to-all mode is selected and also doesn't mean that there was a change in the list of allowed mixcascades for the restricted mode.

See Also:
Constant Field Values

REGISTRATION_INFOSERVICES_POLICY_CHANGED

public static final int REGISTRATION_INFOSERVICES_POLICY_CHANGED
This message is sent from JAPRoutingRegistrationInfoServices when the policy of the registration at the infoservices is switched between restricted-to-list or register-at-all mode.

See Also:
Constant Field Values

REGISTRATION_INFOSERVICES_LIST_CHANGED

public static final int REGISTRATION_INFOSERVICES_LIST_CHANGED
This message is sent from JAPRoutingRegistrationInfoServices whenever an InfoService is added/updated/removed in the list of registration infoservices for the registration restricted-to-list mode. Attention: This can also occur, if register-at-all mode is selected and also doesn't mean that there was a change in the list of registration infoservices for the restricted-to-list mode.

See Also:
Constant Field Values

SERVER_STATISTICS_UPDATED

public static final int SERVER_STATISTICS_UPDATED
This message is sent from JAPRoutingServerStatisticsListener when new server statistics are available.

See Also:
Constant Field Values

REGISTRATION_STATUS_CHANGED

public static final int REGISTRATION_STATUS_CHANGED
This message is sent from JAPRoutingRegistrationStatusObserver, if the registration status or the reason why the registration failed has been changed.

See Also:
Constant Field Values

SERVER_PORT_CHANGED

public static final int SERVER_PORT_CHANGED
This message is sent from JAPRoutingSettings, if the port where the forwarding server is listening on for client requests, was changed successfully (regardless whether the forwarding server is currently running or not).

See Also:
Constant Field Values

CLIENT_SETTINGS_CHANGED

public static final int CLIENT_SETTINGS_CHANGED
This message is sent from JAPRoutingSettings, if the client settings were changed (whether new connections to the anonymity servers shall use a forwarder, whether it is possible to obtain the information about a forwarder directly from the InfoServices or the mail-gateway has to be used and the InfoService requests need also forwarding).

See Also:
Constant Field Values
Constructor Detail

JAPRoutingMessage

public JAPRoutingMessage(int a_messageCode)
This creates a new JAPRoutingMessage. The message data is set to null.

Parameters:
a_messageCode - The message code. See the constants in this class.

JAPRoutingMessage

public JAPRoutingMessage(int a_messageCode,
                         java.lang.Object a_messageData)
This creates a new JAPRoutingMessage.

Parameters:
a_messageCode - The message code. See the constants in this class.
a_messageData - The data to send with the message.