public class IoSessionFinder extends Object
IoSession
s that match a boolean OGNL expression.Constructor and Description |
---|
IoSessionFinder(String query)
Creates a new instance with the specified OGNL expression that returns
a boolean value (e.g.
|
public IoSessionFinder(String query)
query
- The OGNL expressionpublic Set<IoSession> find(Iterable<IoSession> sessions) throws ognl.OgnlException
Set
of IoSession
s that matches the query
from the specified sessions and returns the matches.sessions
- The list of sessions to checkognl.OgnlException
- If we can't find a boolean value in a session's contextCopyright © 2004–2022 Apache MINA Project. All rights reserved.