Examples of CacheControl


Examples of javax.ws.rs.core.CacheControl

  private static final Log LOG = LogFactory.getLog(VersionResource.class);

  private CacheControl cacheControl;

  public VersionResource() {
    cacheControl = new CacheControl();
    cacheControl.setNoCache(true);
    cacheControl.setNoTransform(false);
  }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

    this.table = table;
    this.rowspec = new RowSpec(rowspec);
    if (versions != null) {
      this.rowspec.setMaxVersions(Integer.valueOf(versions));
    }
    cacheControl = new CacheControl();
    cacheControl.setMaxAge(RESTServlet.getInstance().getMaxAge(table));
    cacheControl.setNoTransform(false);
  }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

  private String table;
  private CacheControl cacheControl;

  public SchemaResource(String table) {
    this.table = table;
    cacheControl = new CacheControl();
    cacheControl.setNoCache(true);
    cacheControl.setNoTransform(false);
  }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

    LogFactory.getLog(StorageClusterVersionResource.class);

  private CacheControl cacheControl;

  public StorageClusterVersionResource() {
    cacheControl = new CacheControl();
    cacheControl.setNoCache(true);
    cacheControl.setNoTransform(false);
  }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

  private static final Log LOG = LogFactory.getLog(TableResource.class);

  private CacheControl cacheControl;

  public TableResource() {
    cacheControl = new CacheControl();
    cacheControl.setNoCache(true);
    cacheControl.setNoTransform(false);
  }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

  private String table;
  private CacheControl cacheControl;

  public RegionsResource(String table) {
    this.table = table;
    cacheControl = new CacheControl();
    cacheControl.setNoCache(true);
    cacheControl.setNoTransform(false);
  }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

  public ScannerInstanceResource(String table, String id,
      ResultGenerator generator, int batch) throws IOException {
    this.id = id;
    this.generator = generator;
    this.batch = batch;
    cacheControl = new CacheControl();
    cacheControl.setNoCache(true);
    cacheControl.setNoTransform(false);
  }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

        } else {
            GenericEntity<List<Link>> list = new GenericEntity<List<Link>>(links) {
            };
            builder.entity(list);
        }
        CacheControl cacheControl = new CacheControl();
        cacheControl.setMaxAge(86400); // TODO 1 day or longer? What unit is this anyway?
        builder.cacheControl(cacheControl);
        return builder.build();
    }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

        } else {
            GenericEntity<List<Link>> list = new GenericEntity<List<Link>>(links) {
            };
            builder = Response.ok(list);
        }
        CacheControl cacheControl = new CacheControl();
        cacheControl.setMaxAge(86400); // TODO 1 day or longer? What unit is this anyway?
        builder.cacheControl(cacheControl);
        return builder.build();
    }
View Full Code Here

Examples of javax.ws.rs.core.CacheControl

        } else {
            builder = Response.ok(hist);
        }
        if (history.getStatus()== OperationRequestStatus.SUCCESS) {
            // add a long time cache header
            CacheControl cc = new CacheControl();
            cc.setMaxAge(1200);
            builder.cacheControl(cc);
        }

        return builder.build();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.