Package org.apache.mina.integration.ognl
Class IoSessionFinder
- java.lang.Object
-
- org.apache.mina.integration.ognl.IoSessionFinder
-
public class IoSessionFinder extends java.lang.Object
FindsIoSession
s that match a boolean OGNL expression.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description IoSessionFinder(java.lang.String query)
Creates a new instance with the specified OGNL expression that returns a boolean value (e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<IoSession>
find(java.lang.Iterable<IoSession> sessions)
Finds aSet
ofIoSession
s that matches the query from the specified sessions and returns the matches.
-
-
-
Method Detail
-
find
public java.util.Set<IoSession> find(java.lang.Iterable<IoSession> sessions) throws ognl.OgnlException
Finds aSet
ofIoSession
s that matches the query from the specified sessions and returns the matches.- Parameters:
sessions
- The list of sessions to check- Returns:
- A set of the session that matches the query
- Throws:
ognl.OgnlException
- If we can't find a boolean value in a session's context
-
-