|
||||||||||
| 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 address.
| Constructor Summary | |
|---|---|
AccessFilter()
|
|
| Method Summary | |
|---|---|
boolean |
doIPFiltering(java.nio.channels.SocketChannel s)
Filter based on a socket. |
java.util.List<IPAccess> |
getAllowList()
Get the list of allowed ips |
java.util.List<IPAccess> |
getDenyList()
Get the list of denied ips |
void |
loadAccess(java.io.Reader r)
Loads in the accessess allowed 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(java.nio.channels.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(java.io.Reader r)
throws java.io.IOException
loadAccess in interface IPAccessFilterr - the Reader were data is available
java.io.IOException - if loading failspublic java.util.List<IPAccess> getAllowList()
getAllowList in interface IPAccessFilterpublic java.util.List<IPAccess> getDenyList()
getDenyList in interface IPAccessFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||