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 Object implements JSONContext.Generator
  • Constructor Details

    • ObjectMapperGenerator

      protected ObjectMapperGenerator()
  • Method Details

    • generate

      public String generate(Object object)
      Specified by:
      generate in interface JSONContext.Generator
      Parameters:
      object - the object to stringify
      Returns:
      the JSON string representing the object