Class GetRuleByApiId

java.lang.Object
net.lightapi.portal.rule.query.handler.GetRuleByApiId
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class GetRuleByApiId extends Object implements com.networknt.rpc.HybridHandler
Get a list of rules that are associated with an API by API id. This endpoint is used by the API to load the rules for the API during the server startup. The return object is a list of maps.
Author:
Steve Hu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static net.lightapi.portal.db.PortalDbProvider
     

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.undertow.server.HttpServerExchange exchange, Object input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Field Details

    • dbProvider

      public static net.lightapi.portal.db.PortalDbProvider dbProvider
  • Constructor Details

    • GetRuleByApiId

      public GetRuleByApiId()
  • Method Details

    • handle

      public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
      Specified by:
      handle in interface com.networknt.rpc.HybridHandler