Package org.cometd.common
Class JacksonJSONContext.ObjectMapperGenerator
java.lang.Object
org.cometd.common.JacksonJSONContext.ObjectMapperGenerator
- All Implemented Interfaces:
JSONContext.Generator
- Enclosing class:
- JacksonJSONContext<M extends Message.Mutable,I extends M>
protected class JacksonJSONContext.ObjectMapperGenerator extends java.lang.Object implements JSONContext.Generator
-
Constructor Summary
Constructors Modifier Constructor Description protected
ObjectMapperGenerator()
-
Method Summary
Modifier and Type Method Description java.lang.String
generate(java.lang.Object object)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ObjectMapperGenerator
protected ObjectMapperGenerator()
-
-
Method Details
-
generate
public java.lang.String generate(java.lang.Object object)- Specified by:
generate
in interfaceJSONContext.Generator
- Parameters:
object
- the object to stringify- Returns:
- the JSON string representing the object
-