Class SmsAggregatingAgentsQueryHandler


  • public class SmsAggregatingAgentsQueryHandler
    extends Object
    A handler for handling queries on the realm-config/agents resource.
    Since:
    14.0.0
    • Constructor Detail

      • SmsAggregatingAgentsQueryHandler

        public SmsAggregatingAgentsQueryHandler​(ServiceSchema schema,
                                                Debug debug)
                                         throws SMSException
        Create an instance of the SmsAggregatingAgentsQueryHandler
        Parameters:
        schema - The Agents Service Schema
        debug - The debugger
        Throws:
        SMSException - Thrown if sub schema cannot be accessed
    • Method Detail

      • handleQuery

        public org.forgerock.util.promise.Promise<org.forgerock.json.resource.QueryResponse,​org.forgerock.json.resource.ResourceException> handleQuery​(org.forgerock.services.context.Context context,
                                                                                                                                                             org.forgerock.json.resource.QueryRequest request,
                                                                                                                                                             org.forgerock.json.resource.QueryResourceHandler handler)
                                                                                                                                                      throws org.forgerock.json.resource.InternalServerErrorException
        Search and filters the agents to match the filtering criteria
        Parameters:
        context - The request context
        request - The query request
        handler - The query resource handler
        Returns:
        The query result
        Throws:
        org.forgerock.json.resource.InternalServerErrorException - Thrown when query fails