Class StatusController


  • public final class StatusController
    extends ro.pippo.controller.Controller
    Controller for requesting the KNX client status pool
    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • StatusController

        public StatusController()
    • Method Detail

      • statusAll

        @GET("/status")
        @Produces("application/json")
        public List<StatusResponse> statusAll()
        Endpoint to get all KNX status
        Returns:
      • statusOne

        @GET("/status/{ga: \\d+(\\/\\d+)?(\\/\\d+)?}")
        @Produces("application/json")
        public StatusResponse statusOne​(@Param("ga")
                                        String groupAddressStr)
      • getKnxClient

        public final KnxClient getKnxClient()
      • limitAndGetAsList

        protected final <T> List<T> limitAndGetAsList​(Collection<T> list)
        Returns a range of T elements from list. May be limited using start and limit request parameters.
        Type Parameters:
        T - the type of list value to be limited
        Parameters:
        list - the list that may be limited
        Returns:
        a new list of elements from Collection