Class StatusController
- java.lang.Object
-
- ro.pippo.controller.Controller
-
- li.pitschmann.knx.core.plugin.api.v1.controllers.StatusController
-
public final class StatusController extends ro.pippo.controller.ControllerController for requesting the KNX client status pool
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description StatusController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KnxClientgetKnxClient()XmlProjectgetXmlProject()protected <T> List<T>limitAndGetAsList(Collection<T> list)Returns a range ofTelements from list.List<StatusResponse>statusAll()Endpoint to get all KNX statusStatusResponsestatusOne(String groupAddressStr)
-
-
-
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)
-
getXmlProject
@Nullable public final XmlProject getXmlProject()
-
getKnxClient
public 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
-
-