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 java.lang.Object
implements JSONContext.Generator
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected JSONGenerator()  
  • 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

    • JSONGenerator

      protected JSONGenerator()
  • Method Details

    • generate

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