Class AbstractController
- java.lang.Object
-
- li.pitschmann.knx.core.plugin.api.v1.controllers.AbstractController
-
- Direct Known Subclasses:
HeartbeatController,ProjectController,ReadRequestController,StatisticController,StatusController,WriteRequestController
public abstract class AbstractController extends Object
Abstract Controller containing common methods for concrete controller implementations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractController(li.pitschmann.knx.core.communication.KnxClient knxClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected li.pitschmann.knx.core.communication.KnxClientgetKnxClient()protected <T> List<T>limitAndGetAsList(io.javalin.http.Context ctx, Collection<T> list)Returns a range ofTelements from list.
-
-
-
Method Detail
-
getKnxClient
protected final li.pitschmann.knx.core.communication.KnxClient getKnxClient()
-
limitAndGetAsList
protected final <T> List<T> limitAndGetAsList(io.javalin.http.Context ctx, 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:
ctx- the context from Javalinlist- the list that may be limited- Returns:
- a new list of elements from
Collection
-
-