NextApp Echo
App Container 1.0.5

nextapp.echoservlet
Interface CacheableService

All Superinterfaces:
Service
All Known Implementing Classes:
AwtImagePeer, CacheableServiceWrapper, Controller, ResourceImagePeer, StaticBinary, StaticText, StreamImagePeer

public interface CacheableService
extends Service

An interface implemented by services that may be cached for a period of time by the client browser. If a service desires to be cacheable for the entire browser session, it should always return a constant value from its getVersion() method.


Method Summary
 int getVersion()
          Returns the version of the service to be retrieved.
 
Methods inherited from interface nextapp.echoservlet.Service
getId, service
 

Method Detail

getVersion

public int getVersion()
Returns the version of the service to be retrieved. When a service is requested with an updated version number, a non-cached copy will be used. getVersion() should return distinct values whenever the service's content may have changed.

Returns:
The current version number of the service.

NextApp Echo
App Container 1.0.5