Uses of Interface
org.eclipse.jetty.util.ajax.JSON.Convertor
-
Uses of JSON.Convertor in org.eclipse.jetty.util.ajax
Modifier and TypeClassDescriptionclass
class
Convert aDate
to JSON.class
Convert anEnum
to JSON.class
Converts an Object to JSON using reflection on getters methods.class
Converts POJOs to JSON and vice versa.class
Modifier and TypeMethodDescriptionAsyncJSON.Factory.getConvertor
(String className) Returns theJSON.Convertor
associated with the given class name, if any.protected JSON.Convertor
JSON.getConvertor
(Class<?> forClass) Looks up a convertor for a class.JSON.getConvertorFor
(String name) Looks up a convertor for a class name.AsyncJSON.Factory.removeConvertor
(String className) Removes theJSON.Convertor
associated with the given class name.JSON.removeConvertor
(Class<?> forClass) Unregisters aJSON.Convertor
for a class.JSON.removeConvertorFor
(String name) Unregisters aJSON.Convertor
for a named class.Modifier and TypeMethodDescriptionvoid
JSON.addConvertor
(Class<?> forClass, JSON.Convertor convertor) Registers aJSON.Convertor
for the given class.void
JSON.addConvertorFor
(String name, JSON.Convertor convertor) Registers aJSON.Convertor
for a named class.void
JSON.appendJSON
(Appendable buffer, JSON.Convertor convertor, Object object) void
AsyncJSON.Factory.putConvertor
(String className, JSON.Convertor convertor) Associates the givenJSON.Convertor
to the given class name.