@Regenerable public class XMLProducer extends AbstractHandler implements ToXMLable
CACHE_PRIORITY, context, HANDLERS, JWIG_DEFUNCT_SESSION, 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.
|
(package private) XML |
invokeRun()
Invokes the
run and returns the XML result. |
(package private) Object |
process(String referer)
Invokes the
run method of the handler, caches the result, and sends it to the client. |
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, toString
addCookie, 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, update
public 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 AbstractHandler
XML invokeRun()
run
and returns the XML result.Object process(String referer)
run
method of the handler, caches the result, and sends it to the client.process
in class AbstractHandler
public XML toXML()
run
, together with
a JavaScript instruction for automatic updating.public void update()
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.