Class StringJsonSerializer
java.lang.Object
io.vertigo.vega.plugins.webservice.handler.converter.StringJsonSerializer
- All Implemented Interfaces:
JsonSerializer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringJsonSerializer
public StringJsonSerializer()
-
-
Method Details
-
canHandle
- Specified by:
canHandlein interfaceJsonSerializer- Parameters:
paramClass- Class to test- Returns:
- If this converter can output this type of data.
-
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)
-