|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrabbit.filter.AccessFilter
public class AccessFilter
This is a class that filters access based on ip adress.
| Constructor Summary | |
|---|---|
AccessFilter()
|
|
| Method Summary | |
|---|---|
boolean |
doIPFiltering(java.net.Socket s)
Filter based on a socket. |
java.util.List<IPAccess> |
getIPList()
Get the list of ips allowed |
void |
loadAccess(Logger logger,
java.io.Reader r)
Loads in the accessess allowed from the given Reader |
void |
saveAccess(Logger logger,
java.io.Reader r)
Saves the accesslist from the given Reader. |
void |
setup(Logger logger,
SProperties properties)
Setup this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessFilter()
| Method Detail |
|---|
public boolean doIPFiltering(java.net.Socket s)
doIPFiltering in interface IPAccessFilters - the Socket to check.
public void setup(Logger logger,
SProperties properties)
setup in interface IPAccessFilterproperties - the Properties to get the settings from.logger - the Logger to use in case of errors/warnings.
public void loadAccess(Logger logger,
java.io.Reader r)
throws java.io.IOException
loadAccess in interface IPAccessFilterr - the Reader were data is available
java.io.IOException
public void saveAccess(Logger logger,
java.io.Reader r)
throws java.io.IOException
saveAccess in interface IPAccessFilterr - the Reader with the users.
java.io.IOExceptionpublic java.util.List<IPAccess> getIPList()
getIPList in interface IPAccessFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||