Interface EPRenderEventService
EventBean
events.-
Method Summary
Modifier and TypeMethodDescriptiongetJSONRenderer
(EventType eventType) Returns a render for the JSON format, valid only for the given event type and its subtypes.getJSONRenderer
(EventType eventType, JSONRenderingOptions options) Returns a render for the JSON format, valid only for the given event type and its subtypes.getXMLRenderer
(EventType eventType) Returns a render for the XML format, valid only for the given event type and its subtypes.getXMLRenderer
(EventType eventType, XMLRenderingOptions options) Returns a render for the XML format, valid only for the given event type and its subtypes.renderJSON
(String title, EventBean theEvent) Quick-access method to render a given event in the JSON format.renderJSON
(String title, EventBean theEvent, JSONRenderingOptions options) Quick-access method to render a given event in the JSON format.Quick-access method to render a given event in the XML format.renderXML
(String rootElementName, EventBean theEvent, XMLRenderingOptions options) Quick-access method to render a given event in the XML format.
-
Method Details
-
getJSONRenderer
Returns a render for the JSON format, valid only for the given event type and its subtypes.- Parameters:
eventType
- to return renderer foroptions
- rendering options- Returns:
- JSON format renderer
-
getJSONRenderer
Returns a render for the JSON format, valid only for the given event type and its subtypes.- Parameters:
eventType
- to return renderer for- Returns:
- JSON format renderer
-
renderJSON
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.
- Parameters:
title
- the JSON root titletheEvent
- the event to render- Returns:
- JSON formatted text
-
renderJSON
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.
- Parameters:
title
- the JSON root titletheEvent
- the event to renderoptions
- are JSON rendering options- Returns:
- JSON formatted text
-
getXMLRenderer
Returns a render for the XML format, valid only for the given event type and its subtypes.- Parameters:
eventType
- to return renderer for- Returns:
- XML format renderer
-
getXMLRenderer
Returns a render for the XML format, valid only for the given event type and its subtypes.- Parameters:
eventType
- to return renderer foroptions
- rendering options- Returns:
- XML format renderer
-
renderXML
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.
- Parameters:
rootElementName
- the root element name that may also include namespace informationtheEvent
- the event to render- Returns:
- XML formatted text
-
renderXML
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.
- Parameters:
rootElementName
- the root element name that may also include namespace informationtheEvent
- the event to renderoptions
- are XML rendering options- Returns:
- XML formatted text
-