Class IoSessionFinder

java.lang.Object
org.apache.mina.integration.ognl.IoSessionFinder

public class IoSessionFinder extends Object
Finds IoSessions that match a boolean OGNL expression.
  • Field Details

    • query

      private final String query
    • typeConverter

      private final ognl.TypeConverter typeConverter
    • expression

      private final Object expression
  • Constructor Details

    • IoSessionFinder

      public IoSessionFinder(String query)
      Creates a new instance with the specified OGNL expression that returns a boolean value (e.g. "id == 0x12345678").
      Parameters:
      query - The OGNL expression
  • Method Details

    • find

      public Set<IoSession> find(Iterable<IoSession> sessions) throws ognl.OgnlException
      Finds a Set of IoSessions 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