Class StringJsonSerializer

    • Constructor Detail

      • StringJsonSerializer

        public StringJsonSerializer()
    • Method Detail

      • canHandle

        public boolean canHandle​(Class<?> paramClass)
        Specified by:
        canHandle in interface JsonSerializer
        Parameters:
        paramClass - Class to test
        Returns:
        If this converter can output this type of data.
      • toJson

        public String toJson​(Object result,
                             javax.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)