|
Jala 1.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--helma.Http
|
+--jala.RemoteContent
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 |
<static> <final> File CACHEDIR
<static> <final> int HTTP
<static> <final> String SUFFIX
<static> <final> int XMLRPC
| Constructor Detail |
jala.RemoteContent(<String> url, <Integer> method, <File> storage)
url - The URL string of the remote site.
method - The method to retrieve the remote content.
storage - The cache directory.
| Method Detail |
void clear()
Object get(<String> key)
key - The name of the property.
Array getKeys()
Boolean needsUpdate()
void setInterval(<Number> interval)
interval - The interval value in milliseconds.
String toString()
String update()
Object valueOf()
<static> void exec()
callback - The callback method to be executed for each remote content file.
cache - An optional target directory.
<static> void flush(<File> cache)
cache - An optional target directory.
<static> void forEach(<Function> callback, <File> cache)
callback - The callback method to be executed for each remote content file.
cache - An optional target directory.
|
Jala 1.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||