Class ServiceOpenApi
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.frostserver.plugin.openapi.ServiceOpenApi
-
public class ServiceOpenApi extends Object
Handles the service requests for the DataArray plugin. This is the request to /api.- Author:
- scf
-
-
Field Summary
Fields Modifier and Type Field Description static StringPATH_GET_OPENAPI_SPECThe path for the OpenApi specification.static StringREQUEST_TYPE_GET_OPENAPI_SPECThe RequestType definition for the CreateObservations request type.
-
Constructor Summary
Constructors Constructor Description ServiceOpenApi(CoreSettings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceResponseexecuteRequest(ServiceRequest request, ServiceResponse response)static booleanparamValueAsBool(ServiceRequest request, String name, boolean dflt)static intparamValueAsInt(ServiceRequest request, String name, int dflt)
-
-
-
Field Detail
-
PATH_GET_OPENAPI_SPEC
public static final String PATH_GET_OPENAPI_SPEC
The path for the OpenApi specification.- See Also:
- Constant Field Values
-
REQUEST_TYPE_GET_OPENAPI_SPEC
public static final String REQUEST_TYPE_GET_OPENAPI_SPEC
The RequestType definition for the CreateObservations request type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceOpenApi
public ServiceOpenApi(CoreSettings settings)
-
-
Method Detail
-
executeRequest
public ServiceResponse executeRequest(ServiceRequest request, ServiceResponse response)
-
paramValueAsBool
public static boolean paramValueAsBool(ServiceRequest request, String name, boolean dflt)
-
paramValueAsInt
public static int paramValueAsInt(ServiceRequest request, String name, int dflt)
-
-