public class IoSessionFinder
extends java.lang.Object
IoSession
s 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 IoSession
s 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