Class AbstractController
- java.lang.Object
-
- ro.pippo.controller.Controller
-
- li.pitschmann.knx.core.plugin.api.v1.controllers.AbstractController
-
- Direct Known Subclasses:
ProjectController,ReadRequestController,StatisticController,StatusController,WriteRequestController
@Path("/api/v1") public abstract class AbstractController extends ro.pippo.controller.ControllerAbstract Controller containing common methods for concrete controller implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description AbstractController(KnxClient knxClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KnxClientgetKnxClient()protected <T> List<T>limitAndGetAsList(Collection<T> list)Returns a range ofTelements from list.
-
-
-
Constructor Detail
-
AbstractController
public AbstractController(KnxClient knxClient)
-
-
Method Detail
-
getKnxClient
protected final KnxClient getKnxClient()
-
limitAndGetAsList
protected final <T> List<T> limitAndGetAsList(Collection<T> list)
Returns a range ofTelements from list. May be limited usingstartandlimitrequest 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
-
-