|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPAccessFilter
This interface holds the method needed to do socket based access filtering.
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 filter. |
Method Detail |
---|
boolean doIPFiltering(SocketChannel s)
s
- the Socket to check.
void setup(SProperties properties)
properties
- the SProperties to get the settings from.List<IPAccess> getAllowList()
List<IPAccess> getDenyList()
void loadAccess(Reader r) throws IOException
r
- the Reader were data is available
IOException
void saveAccess(Reader r) throws IOException
r
- the Reader with the users.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |