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 Link icon

    • ObjectMapperGenerator Link icon

      protected ObjectMapperGenerator()
  • Method Details Link icon

    • generate Link icon

      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