org.red5.server.net.rtsp.filter.ipaddress
Class PlainTextIpAddressProvider

java.lang.Object
  extended by org.red5.server.net.rtsp.filter.ipaddress.PlainTextIpAddressProvider
All Implemented Interfaces:
IpAddressProvider

public class PlainTextIpAddressProvider
extends Object
implements IpAddressProvider

Implementation of the IpAddressFilter that is based on plain text file containing instruction on "allowed" and "denied" addresses and hosts.

Author:
Matteo Merli (matteo.merli@gmail.com)

Constructor Summary
PlainTextIpAddressProvider()
           
 
Method Summary
 String getConfigFile()
           
 void init()
           
 boolean isBlocked(InetAddress address)
           
protected  void loadRules(Reader reader)
          Reads the rules from a file
 void setConfigFile(String configFile)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextIpAddressProvider

public PlainTextIpAddressProvider()
Method Detail

init

public void init()
          throws Exception
Specified by:
init in interface IpAddressProvider
Throws:
Exception

shutdown

public void shutdown()
              throws Exception
Specified by:
shutdown in interface IpAddressProvider
Throws:
Exception

isBlocked

public boolean isBlocked(InetAddress address)
Specified by:
isBlocked in interface IpAddressProvider

loadRules

protected void loadRules(Reader reader)
                  throws IOException
Reads the rules from a file

Parameters:
reader - Reader of a file containing the access rules
Throws:
IOException

getConfigFile

public String getConfigFile()

setConfigFile

public void setConfigFile(String configFile)


Copyright © 2006-2009 The Red5 Project