|
||||||||||
| 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(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 IPAccessFilters - the SocketChannel to check.
public void setup(SProperties properties)
setup in interface IPAccessFilterproperties - the Properties to get the settings from.
public void loadAccess(Reader r)
throws IOException
loadAccess in interface IPAccessFilterr - the Reader were data is available
IOException
public void saveAccess(Reader r)
throws IOException
saveAccess in interface IPAccessFilterr - the Reader with the users.
IOExceptionpublic List<IPAccess> getAllowList()
getAllowList in interface IPAccessFilterpublic List<IPAccess> getDenyList()
getDenyList in interface IPAccessFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||