rabbit.proxy
Class SocketAccessController
java.lang.Object
rabbit.proxy.SocketAccessController
public class SocketAccessController
- extends Object
An access controller based on socket channels.
- Author:
- Robert Olofsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketAccessController
public SocketAccessController(String filters,
Config config,
HttpProxy proxy)
- Create a new SocketAccessController that will use a list of internal
filters.
- Parameters:
filters
- a comma separated list of filters to useconfig
- the Config to get the internal filters properties fromproxy
- the HttpProxy using this access controller
checkAccess
public boolean checkAccess(SocketChannel sc)
- Check if the given channel is allowed access.
- Parameters:
sc
- the channel to check
- Returns:
- true if the channel is allowed access, false otherwise