Class JettyJSONContext.JSONGenerator

java.lang.Object
org.cometd.common.JettyJSONContext.JSONGenerator
All Implemented Interfaces:
JSONContext.Generator
Enclosing class:
JettyJSONContext<M extends Message.Mutable>

protected class JettyJSONContext.JSONGenerator extends Object implements JSONContext.Generator
  • Constructor Details

    • JSONGenerator

      protected JSONGenerator()
  • 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