Jala 1.3

Class jala.RemoteContent

Object
   |
   +--helma.Http
         |
         +--jala.RemoteContent

class jala.RemoteContent
extends helma.Http


API to define, fetch and update content from a remote site.
Defined in RemoteContent.js


Field Summary
<static>  <final> File CACHEDIR
          The default cache directory.
<static>  <final> int HTTP
          A constant representing the HTTP retrieval method.
<static>  <final> String SUFFIX
          The default name of the cache directory.
<static>  <final> int XMLRPC
          A constant representing the XML-RPC retrieval method.
 
Constructor Summary
jala.RemoteContent (<String> url, <Integer> method, <File> storage)
            Construct a new remote content handler.
 
Method Summary
 void clear()
           Flushes (empties) the cached remote content.
 Object get(<String> key)
           Get an arbitrary property of the remote content.
 Array getKeys()
           Get all available property names.
 Boolean needsUpdate()
           Tests whether the remote content needs to be updated.
 void setInterval(<Number> interval)
           Set the interval the remote content's cache is bound to be updated.
 String toString()
           Get a string representation of the remote content.
 String update()
           Get the updated and cached remote content.
 Object valueOf()
           Get the value of the remote content.
<static> void exec()
           Apply a custom method on all remote content in a file-based cache.
<static> void flush(<File> cache)
           Remove all remote content from a file-based cache.
<static> void forEach(<Function> callback, <File> cache)
           Apply a custom method on all remote content in a file-based cache.

Field Detail

CACHEDIR

<static> <final> File CACHEDIR

HTTP

<static> <final> int HTTP

SUFFIX

<static> <final> String SUFFIX

XMLRPC

<static> <final> int XMLRPC

Constructor Detail

jala.RemoteContent

jala.RemoteContent(<String> url, <Integer> method, <File> storage)

Method Detail

clear

void clear()

get

Object get(<String> key)

getKeys

Array getKeys()

needsUpdate

Boolean needsUpdate()

setInterval

void setInterval(<Number> interval)

toString

String toString()

update

String update()

valueOf

Object valueOf()

exec

<static> void exec()

flush

<static> void flush(<File> cache)

forEach

<static> void forEach(<Function> callback, <File> cache)

Jala 1.3

Documentation generated by JSDoc on Tue Jan 8 15:45:31 2008