Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.wap.push
Class CacheOperation

java.lang.Object
  extended by ie.ncl.wap.push.WSPRequest
      extended by 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

Field Summary
 
Fields inherited from class ie.ncl.wap.push.WSPRequest
SECURITY_METHOD_NETWPIN, SECURITY_METHOD_USERNETWPIN, SECURITY_METHOD_USERPIN, SECURITY_METHOD_USERPINMAC
 
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
 

Constructor Detail

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
Method Detail

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

Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit