public class IoSessionFinder extends Object
IoSessions 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 IoSessions that matches the query
from the specified sessions and returns the matches.sessions - The list of sessions to checkognl.OgnlException - if failed to evaluate the OGNL expressionognl.OgnlException - If we can't find a boolean value in a session's contextCopyright © 2004–2017 Apache MINA Project. All rights reserved.