Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.net
Interface AcceptPolicy

All Known Implementing Classes:
AndPolicy, BasicAcceptPolicy, NotPolicy, OrPolicy, XorPolicy

public interface AcceptPolicy

Defines the rules that determine whether a connection should be accepted or rejected based exclusively on the initial connection parameters.

Accept policies allow rejection of incoming connections based on IP address (creating white and black lists), time of day, rate, etc. without any knowledge of the underlying protocol. In most cases, a simple white/black list of IP addresses in the global policy is sufficient.


Method Summary
 boolean evaluate(Connection connection)
          Evaluate if the given connection should be accepted or rejected.
 

Method Detail

evaluate

boolean evaluate(Connection connection)

Evaluate if the given connection should be accepted or rejected.

For AcceptPorts the accept policy should examine it's rules for accepting and declining. If there is no corresponding rule the global accept policy should be applied. If no rules for the global accept policy apply, the connection should be rejected.

Parameters:
connection - the connection to evaluate.
Returns:
true if the connection should be accepted, false otherwise.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.