com.aelitis.azureus.util
Class UrlFilter

java.lang.Object
  extended by com.aelitis.azureus.util.UrlFilter

public class UrlFilter
extends Object

Author:
TuxPaper

Constructor Summary
UrlFilter()
           
 
Method Summary
protected  void addNetworkFilters(ContentNetwork network)
          Ensure whitelist has important network urls
 void addUrlBlacklist(String string)
           
 void addUrlWhitelist(String string)
           
static UrlFilter getInstance()
           
 String[] getUrlWhitelist()
           
 boolean isWhitelisted(String url)
           
 boolean urlCanRPC(String url)
           
 boolean urlCanRPC(String url, boolean showDebug)
           
 boolean urlIsBlocked(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlFilter

public UrlFilter()
Method Detail

getInstance

public static UrlFilter getInstance()

addNetworkFilters

protected void addNetworkFilters(ContentNetwork network)
Ensure whitelist has important network urls

Parameters:
network -
Since:
4.0.0.5

addUrlWhitelist

public void addUrlWhitelist(String string)

addUrlBlacklist

public void addUrlBlacklist(String string)

getUrlWhitelist

public String[] getUrlWhitelist()

isWhitelisted

public boolean isWhitelisted(String url)

urlCanRPC

public boolean urlCanRPC(String url)

urlCanRPC

public boolean urlCanRPC(String url,
                         boolean showDebug)

urlIsBlocked

public boolean urlIsBlocked(String url)