|
Class Bans
|
| Constructor Summary | |
|---|---|
protected |
Bans() Limits the instantiation of this class. |
| Method Summary | |
|---|---|
public void |
addBan(String peer) Adds the supplied peer to the list of banned peers. |
public void |
addBans(List bans) Adds the supplied peer List to the list of banned peers. |
public synchronized void |
Removes all peers List from the list of banned peers. |
public List |
getBans() Returns the List of peer ids that have been banned in this session. |
public static synchronized Bans |
Returns the handle to this singleton instance. |
public boolean |
isBanned(String peer) Returns true if the supplied peer id is banned, and false otherwise. |
public boolean |
isBanned(DialogMessage msg) Returns true if the originator of the supplied DialogMessage is banned, and false otherwise. |
public void |
removeBan(String peer) Removes the supplied peer from the list of banned peers. |
public void |
removeBans(List bans) Removes the supplied peer List from the list of banned peers. |
| Field Detail |
| Constructor Detail |
| Method Detail |
List to the list of banned peers.List of Strings. Each element in the list is a peer id.List from the list of banned peers.List of peer ids that have been banned in this session.List from the list of banned peers.List of Strings. Each element in the list is a peer id.