public class IoSessionFinder
extends java.lang.Object
IoSessions that match a boolean OGNL expression.| 构造器和说明 |
|---|
IoSessionFinder(java.lang.String query)
Creates a new instance with the specified OGNL expression that returns
a boolean value (e.g.
|
public IoSessionFinder(java.lang.String query)
query - The OGNL expressionpublic java.util.Set<IoSession> find(java.lang.Iterable<IoSession> sessions) throws OgnlException
Set of IoSessions that matches the query
from the specified sessions and returns the matches.sessions - The list of sessions to checkOgnlException - if failed to evaluate the OGNL expressionOgnlException - If we can't find a boolean value in a session's context