Package com.gistlabs.mechanize.cache.api

Examples of com.gistlabs.mechanize.cache.api.CacheEntry.head()


  public HttpResponse executeHEAD(final HttpUriRequest request, final HttpContext context, final MechanizeFilter chain) {
    String uri = request.getURI().toString();
    CacheEntry previous = cache.get(uri);

    if (previous!=null && previous.isValid())
      return previous.head();

    if (previous!=null)
      previous.prepareConditionalGet(request);

    HttpResponse response = chain.execute(request, context); // call the chain
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.