Class VFileJsonConverter

java.lang.Object
io.vertigo.vega.plugins.webservice.handler.converter.VFileJsonConverter
All Implemented Interfaces:
JsonConverter, JsonSerializer

public final class VFileJsonConverter extends Object implements JsonConverter, JsonSerializer
  • Constructor Details

    • VFileJsonConverter

      public VFileJsonConverter()
  • Method Details

    • canHandle

      public boolean canHandle(Class<?> paramClass)
      Specified by:
      canHandle in interface JsonConverter
      Specified by:
      canHandle in interface JsonSerializer
      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:
      populateWebServiceCallContext in interface JsonConverter
      Parameters:
      input - Source
      webServiceParam - Param
      routeContext - RouteContext
    • getSupportedInputs

      public Class[] getSupportedInputs()
      Specified by:
      getSupportedInputs in interface JsonConverter
      Returns:
      Input types
    • toJson

      public String toJson(Object result, jakarta.servlet.http.HttpServletResponse response, WebServiceDefinition webServiceDefinition)
      Convert result to json.
      Specified by:
      toJson in interface JsonSerializer
      Parameters:
      result - Result
      response - Response
      webServiceDefinition - WebService definition
      Returns:
      Json (or empty string)