@HTTPService(name="csere") public class ExampleService extends java.lang.Object
Constructor and Description |
---|
ExampleService() |
Modifier and Type | Method and Description |
---|---|
core.tut.pori.http.Response |
task(core.tut.pori.http.parameters.StringParameter taskId,
core.tut.pori.http.parameters.StringParameter taskType)
Generates example task details
|
core.tut.pori.http.Response |
taskDetails(core.tut.pori.http.parameters.StringParameter taskId,
core.tut.pori.http.parameters.StringParameter taskType)
Generates example task details
|
core.tut.pori.http.Response |
taskResults(core.tut.pori.http.parameters.DataGroups dataGroups,
core.tut.pori.http.parameters.Limits limits,
core.tut.pori.http.parameters.StringParameter taskId,
core.tut.pori.http.parameters.StringParameter taskType)
Generates example task results
|
core.tut.pori.http.Response |
trafficData(core.tut.pori.http.parameters.Limits limits)
Generates example traffic data
|
public ExampleService()
@HTTPServiceMethod(name="measurement") public core.tut.pori.http.Response trafficData(@HTTPMethodParameter(name="limits",required=false,defaultValue="0-0") core.tut.pori.http.parameters.Limits limits)
limits
- MeasurementList
@HTTPServiceMethod(name="task") public core.tut.pori.http.Response task(@HTTPMethodParameter(name="task_id",required=false) core.tut.pori.http.parameters.StringParameter taskId, @HTTPMethodParameter(name="task_type",required=false) core.tut.pori.http.parameters.StringParameter taskType)
taskId
- taskType
- Will default to Definitions.TASK_TYPE_DATA_COLLECT
, if missingSensorTask
,
taskDetails(StringParameter, StringParameter)
@HTTPServiceMethod(name="task/details") public core.tut.pori.http.Response taskDetails(@HTTPMethodParameter(name="task_id",required=false) core.tut.pori.http.parameters.StringParameter taskId, @HTTPMethodParameter(name="task_type",required=false) core.tut.pori.http.parameters.StringParameter taskType)
taskId
- taskType
- Will default to Definitions.TASK_TYPE_DATA_COLLECT
, if missingSensorTask
@HTTPServiceMethod(name="task/results") public core.tut.pori.http.Response taskResults(@HTTPMethodParameter(name="data_groups",required=false) core.tut.pori.http.parameters.DataGroups dataGroups, @HTTPMethodParameter(name="limits",required=false,defaultValue="0-0") core.tut.pori.http.parameters.Limits limits, @HTTPMethodParameter(name="task_id",required=false) core.tut.pori.http.parameters.StringParameter taskId, @HTTPMethodParameter(name="task_type",required=false,defaultValue="gather") core.tut.pori.http.parameters.StringParameter taskType)
dataGroups
- limits
- paging limitstaskId
- taskType
- Will default to Definitions.TASK_TYPE_DATA_COLLECT
, if missingSensorTask
Copyright © 2015-2018 Tampere University of Technology, Pori Department.