@Regenerable public class XMLProducer extends AbstractHandler implements ToXMLable
CACHE_PRIORITY, context, HANDLERS, log, MAX_PRIORITY, PRE_CACHE| Constructor and Description |
|---|
XMLProducer(Object... dependencies)
Constructs a new XML producer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Invoked when the current response is invalidated.
|
XML |
toXML()
Returns an XML value obtained by invoking
run, together with
a JavaScript instruction for automatic updating. |
void |
update()
Invoked when a new result has been computed.
|
getHandlerIdentifier, hashCode, toStringaddCookie, addResponseInvalidator, augment, cache, getCacheAugmentedString, getCookies, getRequestURL, getResponse, getServletContext, getServletRequest, getServletResponse, getUser, getWebAppParam, getWebAppParam, getWebAppURL, getWebSite, getWebSiteURL, getWebSiteURL, handlers, handleUpdatedObjects, isSecure, jwigJS, main, makeURL, makeURL, makeURL, makeURL, makeURL, makeURL, makeURL, next, punish, sendEmail, sendEmails, sendEmailsAsynchronously, sendResponse, touchSessions, transportSessionHandlers, updatepublic XMLProducer(Object... dependencies)
run
method is invoked for recomputing the XML data, and the active clients are informed.
The run method is assumed to be 'safe' (in the HTTP sense).public void destroy()
destroy in class AbstractHandlerpublic XML toXML()
run, together with
a JavaScript instruction for automatic updating.public void update()
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.