Fields and methods of the jala.RemoteContent class.
Construct a new remote content handler.
parameters
String | url | The URL string of the remote site. |
Integer | method | The method to retrieve the remote content. |
File | storage | The cache directory. |
methods
- setInterval(interval)
- get(key)
- getKeys()
- update()
- clear()
- toString()
- valueOf()
inherits
setProxy(proxyString) from helma.Http
getProxy() from helma.Http
setCredentials(username, password) from helma.Http
setContent(stringOrObject) from helma.Http
setMethod(m) from helma.Http
getMethod() from helma.Http
setHeader(name, value) from helma.Http
getHeader(name) from helma.Http
setCookie(name, value) from helma.Http
getCookie(name) from helma.Http
setCookies(cookies) from helma.Http
getCookies() from helma.Http
setTimeout(timeout) from helma.Http
setReadTimeout(timeout) from helma.Http
getTimeout() from helma.Http
getReadTimeout() from helma.Http
setFollowRedirects(value) from helma.Http
getFollowRedirects() from helma.Http
setUserAgent(agent) from helma.Http
getUserAgent() from helma.Http
setBinaryMode(mode) from helma.Http
getBinaryMode() from helma.Http
setMaxResponseSize(Size) from helma.Http
getMaxResponseSize() from helma.Http
setResponseHandler(Response) from helma.Http
getResponseHandler() from helma.Http
getUrl(url, opt) from helma.Http
A constant representing the HTTP retrieval method.
A constant representing the XML-RPC retrieval method.
The default name of the cache directory.
The default cache directory.
Methods
Set the interval the remote content's
cache is bound to be updated.
parameters
Number | interval | The interval value in milliseconds. |
Get an arbitrary property of the remote content.
parameters
String | key | The name of the property. |
returns
The value of the property. |
Tests whether the remote content needs to be updated.
returns
True if the remote content needs to be updated. |
Get the updated and cached remote content.
returns
The content as retrieved from the remote site. |
Flushes (empties) the cached remote content.
Get a string representation of the remote content.
returns
The remote content as string. |
Get the value of the remote content.
returns
The remote content including response header data. |
Remove all remote content from a file-based cache.
parameters
File | cache | An optional target directory. |
Apply a custom method on all remote content in a file-based cache.
parameters
Function | callback | The callback method to be executed for each remote content file. |
File | cache | An optional target directory. |
Apply a custom method on all remote content in a file-based cache.
parameters
Function | callback | The callback method to be executed for each remote content file. |
File | cache | An optional target directory. |