Class ImplicitJsonConverter
java.lang.Object
io.vertigo.vega.plugins.webservice.handler.converter.ImplicitJsonConverter
- All Implemented Interfaces:
JsonConverter,JsonSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass[]voidpopulateWebServiceCallContext(Object input, WebServiceParam webServiceParam, WebServiceCallContext routeContext) Converter source object into value object and put it into RouteContext.toJson(Object result, jakarta.servlet.http.HttpServletResponse response, WebServiceDefinition webServiceDefinition) Convert result to json.
-
Constructor Details
-
ImplicitJsonConverter
public ImplicitJsonConverter()
-
-
Method Details
-
canHandle
- Specified by:
canHandlein interfaceJsonConverter- Specified by:
canHandlein interfaceJsonSerializer- Parameters:
paramClass- Class to test- Returns:
- If this converter can output this type of data.
-
populateWebServiceCallContext
public void populateWebServiceCallContext(Object input, WebServiceParam webServiceParam, WebServiceCallContext routeContext) Converter source object into value object and put it into RouteContext.- Specified by:
populateWebServiceCallContextin interfaceJsonConverter- Parameters:
input- SourcewebServiceParam- ParamrouteContext- RouteContext
-
getSupportedInputs
- Specified by:
getSupportedInputsin interfaceJsonConverter- Returns:
- Input types
-
toJson
public String toJson(Object result, jakarta.servlet.http.HttpServletResponse response, WebServiceDefinition webServiceDefinition) Convert result to json.- Specified by:
toJsonin interfaceJsonSerializer- Parameters:
result- Resultresponse- ResponsewebServiceDefinition- WebService definition- Returns:
- Json (or empty string)
-