ie.ncl.wap.push
Class CacheOperation
java.lang.Object
ie.ncl.wap.push.WSPRequest
ie.ncl.wap.push.CacheOperation
public class CacheOperation
- extends WSPRequest
A Cache Operation is used to expire objects
- eg internet/WAP pages - stored on a mobile phone.
The next time such pages are accessed, they will be re-loaded
from the originating server.
Cache Operations are supported by phones that are WAP 1.2 compliant
(e.g. Ericsson T68)
For example say the page www.abc.com/page.wml
is downloaded and stored on a mobile phone. The next time
the user of the phone accesses that page, it may be retrieved from the phone's
memory or cache. However, if the content is modified at the source
then the page stored in memory is out of date.
The Cache Operation is used to indicate this to the phone and that it
is to re-load the page from the originating server.
A Cache Operation can invalidate a single URL or a group of URLs (folder).
Cache Operations are sent to mobile phones using the WAP Push object.
- See Also:
WAPPush
Constructor Summary |
CacheOperation(java.net.URL base)
Create a CacheOperation specifying the base URL for
all pages and folders that are being invalidated. |
Method Summary |
java.lang.String |
getXml()
|
void |
invalidateFolder(java.lang.String relativePath)
Invalidate all pages below this path
given the relative pathfrom the base URL. |
void |
invalidatePage(java.lang.String relativePath)
Invalidate a particular page
given the relative pathfrom the base URL. |
Methods inherited from class ie.ncl.wap.push.WSPRequest |
encode, encodeToSms, encodeToSms, encodeToSms, encodeToSms, entityEncode, generateMac, getAttributes, getContentType, getEncoding, getHeader, getHeaderNames, getNetworkPin, getTransactionID, getUserPin, main, setAttributes, setEncoding, setHeader, setNetworkPin, setTransactionID, setUserPin, toSmartMessage, toSmartMessage, toSmartMessage, toSmartMessage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheOperation
public CacheOperation(java.net.URL base)
throws java.net.MalformedURLException
- Create a CacheOperation specifying the base URL for
all pages and folders that are being invalidated.
- Throws:
java.net.MalformedURLException
invalidatePage
public void invalidatePage(java.lang.String relativePath)
- Invalidate a particular page
given the relative pathfrom the base URL.
invalidateFolder
public void invalidateFolder(java.lang.String relativePath)
- Invalidate all pages below this path
given the relative pathfrom the base URL.
getXml
public java.lang.String getXml()
- Specified by:
getXml
in class WSPRequest