org.apache.abdera.protocol.util
Class CacheControlUtil

java.lang.Object
  extended by org.apache.abdera.protocol.util.CacheControlUtil

public class CacheControlUtil
extends Object

Provides parsing and properly handling of the HTTP Cache-Control header.


Nested Class Summary
static class CacheControlUtil.CacheControlParser
          Parser for the Cache-Control header
static class CacheControlUtil.Directive
          Cache Control Directives
 
Constructor Summary
CacheControlUtil()
           
 
Method Summary
static String buildCacheControl(AbstractRequest request)
          Construct the Cache-Control header from info in the request object
static boolean isIdempotent(String method)
          Idempotent methods are handled differently in caches than other methods
static void parseCacheControl(String cc, AbstractRequest request)
          Parse the Cache-Control header
static void parseCacheControl(String cc, AbstractResponse response)
          Parse the Cache-Control header
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheControlUtil

public CacheControlUtil()
Method Detail

isIdempotent

public static boolean isIdempotent(String method)
Idempotent methods are handled differently in caches than other methods


buildCacheControl

public static String buildCacheControl(AbstractRequest request)
Construct the Cache-Control header from info in the request object


parseCacheControl

public static void parseCacheControl(String cc,
                                     AbstractRequest request)
Parse the Cache-Control header


parseCacheControl

public static void parseCacheControl(String cc,
                                     AbstractResponse response)
Parse the Cache-Control header



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.