Package org.w3c.www.http

Examples of org.w3c.www.http.HttpCacheControl


    String hvalue = (String) a.get(hname);
    reply.setValue(hname, hvalue);
      }
  }
  if ((filter != null) && filter.isShared()) {
      HttpCacheControl hcc = reply.getCacheControl();
      if (hcc != null) {
    String priv[] = hcc.getPrivate();
    if (priv != null) {
        for (int i=0; i<priv.length; i++) {
      // remove headers that are private if we are
      // a shared cache (rfc2616#14.9, rfc2616#14.9.1)
      reply.setHeaderValue(priv[i], null);
View Full Code Here


  Reply    reply     = (Reply) rep.getClone();
  boolean  hasEntity = !(mth.equals("HEAD") || mth.equals("OPTIONS"));
  // is it a revalidation?
  if (!request.hasState(CacheState.STATE_REVALIDATION)) {
      // no, go for it!
      HttpCacheControl hcc = reply.getCacheControl();
      // first we should NOT cache headers protected by a no-cache
      // per rfc2616@14.9
      if (hcc != null) {
    String nocache[] = hcc.getNoCache();
    if (nocache != null) {
        for (int i=0; i< nocache.length; i++) {
      reply.setHeaderValue(nocache[i], null);
        }
    }
View Full Code Here

TOP

Related Classes of org.w3c.www.http.HttpCacheControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.