Class EPRenderEventServiceImpl

java.lang.Object
com.espertech.esper.common.internal.event.render.EPRenderEventServiceImpl
All Implemented Interfaces:
EPRenderEventService

public class EPRenderEventServiceImpl extends Object implements EPRenderEventService
Provider for rendering services of EventBean events.
  • Constructor Details

    • EPRenderEventServiceImpl

      public EPRenderEventServiceImpl()
  • Method Details

    • getJSONRenderer

      public JSONEventRenderer getJSONRenderer(EventType eventType, JSONRenderingOptions options)
      Returns a render for the JSON format, valid only for the given event type and its subtypes.
      Specified by:
      getJSONRenderer in interface EPRenderEventService
      Parameters:
      eventType - to return renderer for
      options - rendering options
      Returns:
      JSON format renderer
    • getJSONRenderer

      public JSONEventRenderer getJSONRenderer(EventType eventType)
      Returns a render for the JSON format, valid only for the given event type and its subtypes.
      Specified by:
      getJSONRenderer in interface EPRenderEventService
      Parameters:
      eventType - to return renderer for
      Returns:
      JSON format renderer
    • renderJSON

      public String renderJSON(String title, EventBean theEvent)
      Quick-access method to render a given event in the JSON format.

      Use the #getJSONRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.

      Specified by:
      renderJSON in interface EPRenderEventService
      Parameters:
      title - the JSON root title
      theEvent - the event to render
      Returns:
      JSON formatted text
    • renderJSON

      public String renderJSON(String title, EventBean theEvent, JSONRenderingOptions options)
      Quick-access method to render a given event in the JSON format.

      Use the #getJSONRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.

      Specified by:
      renderJSON in interface EPRenderEventService
      Parameters:
      title - the JSON root title
      theEvent - the event to render
      options - are JSON rendering options
      Returns:
      JSON formatted text
    • getXMLRenderer

      public XMLEventRenderer getXMLRenderer(EventType eventType)
      Returns a render for the XML format, valid only for the given event type and its subtypes.
      Specified by:
      getXMLRenderer in interface EPRenderEventService
      Parameters:
      eventType - to return renderer for
      Returns:
      XML format renderer
    • getXMLRenderer

      public XMLEventRenderer getXMLRenderer(EventType eventType, XMLRenderingOptions options)
      Returns a render for the XML format, valid only for the given event type and its subtypes.
      Specified by:
      getXMLRenderer in interface EPRenderEventService
      Parameters:
      eventType - to return renderer for
      options - rendering options
      Returns:
      XML format renderer
    • renderXML

      public String renderXML(String rootElementName, EventBean theEvent)
      Quick-access method to render a given event in the XML format.

      Use the #getXMLRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.

      Specified by:
      renderXML in interface EPRenderEventService
      Parameters:
      rootElementName - the root element name that may also include namespace information
      theEvent - the event to render
      Returns:
      XML formatted text
    • renderXML

      public String renderXML(String rootElementName, EventBean theEvent, XMLRenderingOptions options)
      Quick-access method to render a given event in the XML format.

      Use the #getXMLRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.

      Specified by:
      renderXML in interface EPRenderEventService
      Parameters:
      rootElementName - the root element name that may also include namespace information
      theEvent - the event to render
      options - are XML rendering options
      Returns:
      XML formatted text