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 org.cometd.bayeux.Message.Mutable,I extends M>
protected class JacksonJSONContext.ObjectMapperGenerator extends java.lang.Object implements JSONContext.Generator
-
Constructor Summary
Constructors Modifier Constructor Description protectedObjectMapperGenerator() -
Method Summary
Modifier and Type Method Description java.lang.Stringgenerate(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:
generatein interfaceJSONContext.Generator- Parameters:
object- the object to stringify- Returns:
- the JSON string representing the object
-