|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.net.policies.BasicAcceptPolicy
public class BasicAcceptPolicy
The simplest possible accept policy that either accepts or rejects all connections.
| Constructor Summary | |
|---|---|
BasicAcceptPolicy(boolean alwaysAccept)
Create a basic accept policy that either accepts or denies all incoming connections. |
|
| Method Summary | |
|---|---|
boolean |
evaluate(Connection connection)
Ignores the connection and returns the static result set in the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicAcceptPolicy(boolean alwaysAccept)
Create a basic accept policy that either accepts or denies all incoming connections.
alwaysAccept - true if the policy should accept all connections.| Method Detail |
|---|
public boolean evaluate(Connection connection)
Ignores the connection and returns the static result set in the constructor.
evaluate in interface AcceptPolicyconnection - the connection being evaluated by the two policies.
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||