Package org.w3c.www.protocol.http

Examples of org.w3c.www.protocol.http.Request


    /**
     * This cached entry needs revalidation, it will modify the
     * request to do that.
     */
    public Request setRequestRevalidation(Request request) {
  Request origreq = (Request) request.getClone();
  request.setState(CacheState.STATE_RESOURCE, this);
  request.setState(CacheState.STATE_ORIGREQ, origreq);
  // At this point, we use the suggested way of using date as etag:
  request.setIfModifiedSince(getLastModified());
  // But if we do have an etag, we also uses it, as recommended:
View Full Code Here


      String url=reply.getUrl();

      //
      // forge request for this reply
      //
      Request request = HttpManager.getManager().createRequest() ;
      request.setMethod("GET");
      request.setURL(new URL(url));

      //
      // remove old page if present
      //
      removeURL(url);
View Full Code Here

TOP

Related Classes of org.w3c.www.protocol.http.Request

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.