jondo
Class MixServiceInfo

java.lang.Object
  extended by jondo.MixServiceInfo

public class MixServiceInfo
extends java.lang.Object


Field Summary
static int MAX_SERVICE_NAME_LENGTH
           
 
Constructor Summary
MixServiceInfo(anon.infoservice.MixCascade a_cascade)
           
 
Method Summary
 int countUsers()
          The number of users currently on this cascade.
 java.util.Vector<MixInfo> createMixInfos()
          Returns information about all mixes in this cascade.
 boolean equals(java.lang.Object a_object)
           
 java.lang.String getId()
           
 java.lang.String getName()
          This cascade's name.
 MixServicePerformance getPerformance()
           
 MixServiceSecurity getSecurity()
           
 int getUserLimit()
          The maximum number of users allowed on this cascade.
 int hashCode()
           
static void initToStringAsHTML(java.util.Hashtable<java.lang.String,java.lang.String> a_countryISO2CodePathTable)
          Should be called in a web environment for initializing the toString method.
 boolean isBlacklisted()
           
 boolean isFiltered()
           
 boolean isPremium()
           
 boolean isSOCKS5Supported()
           
 java.lang.String toString()
          This string returns some general info about the cascade, excluding its name.
 java.lang.String toStringCountries()
           
 java.lang.String toStringOperators()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_SERVICE_NAME_LENGTH

public static final int MAX_SERVICE_NAME_LENGTH
See Also:
Constant Field Values
Constructor Detail

MixServiceInfo

public MixServiceInfo(anon.infoservice.MixCascade a_cascade)
Method Detail

initToStringAsHTML

public static void initToStringAsHTML(java.util.Hashtable<java.lang.String,java.lang.String> a_countryISO2CodePathTable)
Should be called in a web environment for initializing the toString method. PLEASE NOTE: the interface of this method may change frequently, depending on what is currently needed for displaying the toString method in HTML.

Parameters:
a_countryISO2CodePathTable - absolute or relative URL image paths to country flags, the the format: code[ISO2, lower case], [path to flag]
a_pathToUsersIcon - absolute or relative URL image path to an icon representing the number of users on a cascade, e.g. an iconified person
a_pathToSecurityIcon - an absolute or relative path to an icon representing the security of the cascade

getPerformance

public MixServicePerformance getPerformance()

getSecurity

public MixServiceSecurity getSecurity()

countUsers

public int countUsers()
The number of users currently on this cascade.

Returns:
the number of users currently on this cascade; if < 0, no information is available

createMixInfos

public java.util.Vector<MixInfo> createMixInfos()
Returns information about all mixes in this cascade. Please keep in mind that a new object is created each time you that call this method. This is, because the number of mixes shown might change if certificates expire or get unverified.

Returns:
information about all mixes in this cascade

getId

public java.lang.String getId()

isFiltered

public boolean isFiltered()

isBlacklisted

public boolean isBlacklisted()

isPremium

public boolean isPremium()

isSOCKS5Supported

public boolean isSOCKS5Supported()

getUserLimit

public int getUserLimit()
The maximum number of users allowed on this cascade.

Returns:

getName

public java.lang.String getName()
This cascade's name. Please note that the names of the Mixes may differ!

Returns:

toStringCountries

public java.lang.String toStringCountries()

toStringOperators

public java.lang.String toStringOperators()

equals

public boolean equals(java.lang.Object a_object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
This string returns some general info about the cascade, excluding its name.

Overrides:
toString in class java.lang.Object