org.red5.server.net.rtsp.filter.ipaddress
Class PlainTextIpAddressProvider
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainTextIpAddressProvider
public PlainTextIpAddressProvider()
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