Package rabbit.cache

Examples of rabbit.cache.CacheEntry


    }

    private HttpHeader checkIfMatch (Connection con,
             HttpHeader header,
             Connection.RequestHandler rh) {
  CacheEntry entry = rh.entry;
  if (entry == null)
      return null;
  HttpHeader oldresp = rh.dataHook;
  HttpHeader expfail = checkExpectations (con, header, oldresp);
  if (expfail != null)
View Full Code Here


  setMayCache (true);
  // TODO: if the need arise, think about implementing smart partial updates.
    }

    private void checkIfRange (RequestHandler rh) {
  CacheEntry entry = rh.entry;
  if (entry == null)
      return;
  String ifRange = request.getHeader ("If-Range");
  if (ifRange == null)
      return;
View Full Code Here

     * @param in the request being made.
     * @param rh the RequestHandler for this request
     */
    public HttpHeader is304 (HttpHeader in, Connection con,
           Connection.RequestHandler rh) {
  CacheEntry entry = rh.entry;
  if (entry == null)
      return null;
  HttpHeader oldresp = rh.dataHook;

  /* if we should have gotten anything but a 2xx or a 304,
View Full Code Here

TOP

Related Classes of rabbit.cache.CacheEntry

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.