Package io.openems.edge.common.jsonapi
Interface EndpointRequestType<REQUEST,RESPONSE>
- All Known Implementing Classes:
AddAppInstance
,DeleteAppInstance
,GetApp
,GetAppAssistant
,GetAppDescriptor
,GetAppInstances
,GetApps
,UpdateAppInstance
public interface EndpointRequestType<REQUEST,RESPONSE>
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the request method.Gets theJsonSerializer
for the request.Gets theJsonSerializer
for the response.
-
Method Details
-
getMethod
String getMethod()Gets the name of the request method.- Returns:
- the method name
-
getRequestSerializer
JsonSerializer<REQUEST> getRequestSerializer()Gets theJsonSerializer
for the request. Used to convert the received json into a java object.- Returns:
- the request
JsonSerializer
-
getResponseSerializer
JsonSerializer<RESPONSE> getResponseSerializer()Gets theJsonSerializer
for the response. Used to convert the response java object into a json string.- Returns:
- the response
JsonSerializer
-