Back to project page droid-fu.
The source code is released under:
Apache License
If you think the Android project droid-fu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.droidfu.http; //from www . j a v a2s .c o m import java.net.ConnectException; import org.apache.http.client.methods.HttpUriRequest; public class CachedHttpRequest implements BetterHttpRequest { private String url; public CachedHttpRequest(String url) { this.url = url; } public String getRequestUrl() { return url; } public BetterHttpRequest expecting(Integer... statusCodes) { return this; } public BetterHttpRequest retries(int retries) { return this; } public BetterHttpResponse send() throws ConnectException { return new CachedHttpResponse(url); } public HttpUriRequest unwrap() { return null; } public BetterHttpRequest withTimeout(int timeout) { return this; } }