rabbit.proxy
Class SocketAccessController

java.lang.Object
  extended by rabbit.proxy.SocketAccessController

public class SocketAccessController
extends Object

An access controller based on socket channels.

Author:
Robert Olofsson

Constructor Summary
SocketAccessController(String filters, Config config, HttpProxy proxy)
          Create a new SocketAccessController that will use a list of internal filters.
 
Method Summary
 boolean checkAccess(SocketChannel sc)
          Check if the given channel is allowed access.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 use
config - the Config to get the internal filters properties from
proxy - the HttpProxy using this access controller
Method Detail

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