org.apache.mina.integration.ognl
Class IoSessionFinder
java.lang.Object
org.apache.mina.integration.ognl.IoSessionFinder
public class IoSessionFinder
- extends Object
Finds IoSession
s that match a boolean OGNL expression.
- Version:
- $Rev: 671827 $, $Date: 2008-06-26 10:49:48 +0200 (jeu, 26 jun 2008) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
Constructor Summary |
IoSessionFinder(String query)
Creates a new instance with the specified OGNL expression that returns
a boolean value (e.g. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IoSessionFinder
public IoSessionFinder(String query)
- Creates a new instance with the specified OGNL expression that returns
a boolean value (e.g. "id == 0x12345678").
find
public Set<IoSession> find(Iterable<IoSession> sessions)
throws ognl.OgnlException
- Finds a
Set
of IoSession
s that matches the query
from the specified sessions and returns the matches.
- Throws:
ognl.OgnlException
- if failed to evaluate the OGNL expression
Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.