com.clickntap.smart
Class SmartCache

java.lang.Object
  extended by com.clickntap.smart.SmartCache

public class SmartCache
extends Object


Constructor Summary
SmartCache()
           
 
Method Summary
static boolean cacheControl(SmartContext ctx)
           
static String getUniqueKey(SmartContext ctx)
           
static void handleResponse(SmartContext ctx)
           
static void handleResponse(SmartContext ctx, ByteArrayOutputStream out)
           
static boolean isCached(SmartContext ctx)
           
static boolean isCached(SmartContext ctx, Long lastModified)
           
 void setCacheManager(CacheManager cacheManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartCache

public SmartCache()
Method Detail

setCacheManager

public void setCacheManager(CacheManager cacheManager)
                     throws Exception
Throws:
Exception

getUniqueKey

public static String getUniqueKey(SmartContext ctx)

isCached

public static boolean isCached(SmartContext ctx,
                               Long lastModified)
                        throws Exception
Throws:
Exception

cacheControl

public static boolean cacheControl(SmartContext ctx)
                            throws Exception
Throws:
Exception

isCached

public static boolean isCached(SmartContext ctx)
                        throws Exception
Throws:
Exception

handleResponse

public static void handleResponse(SmartContext ctx)
                           throws Exception
Throws:
Exception

handleResponse

public static void handleResponse(SmartContext ctx,
                                  ByteArrayOutputStream out)
                           throws Exception
Throws:
Exception


Copyright © 2014. All rights reserved.