|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.filter.AccessFilter
public class AccessFilter
This is a class that filters access based on ip adress.
Constructor Summary | |
---|---|
AccessFilter()
|
Method Summary | |
---|---|
boolean |
doIPFiltering(SocketChannel s)
Filter based on a socket. |
List<IPAccess> |
getAllowList()
Get the list of allowed ips |
List<IPAccess> |
getDenyList()
Get the list of denied ips |
void |
loadAccess(Reader r)
Loads in the accessess allowed from the given Reader |
void |
saveAccess(Reader r)
Saves the accesslist from the given Reader. |
void |
setup(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(SocketChannel s)
doIPFiltering
in interface IPAccessFilter
s
- the SocketChannel to check.
public void setup(SProperties properties)
setup
in interface IPAccessFilter
properties
- the Properties to get the settings from.public void loadAccess(Reader r) throws IOException
loadAccess
in interface IPAccessFilter
r
- the Reader were data is available
IOException
public void saveAccess(Reader r) throws IOException
saveAccess
in interface IPAccessFilter
r
- the Reader with the users.
IOException
public List<IPAccess> getAllowList()
getAllowList
in interface IPAccessFilter
public List<IPAccess> getDenyList()
getDenyList
in interface IPAccessFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |