Back to project page FrameLite.
The source code is released under:
GNU General Public License
If you think the Android project FrameLite 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.miku.framelite.api.http; //from w w w.ja v a 2 s. c o m import org.apache.http.HttpEntity; import org.apache.http.util.EntityUtils; /** * Http Get??? * Get???url?????? getUrl()?????????getBody() * * @author xr.lee * * @param <T> ??????????? */ public abstract class HttpStringGetRequest<T> extends AbstractHttpRequest<T, String> { @Override final protected HttpType getHttpType() { return HttpType.GET; } protected abstract String getUrl(); @Override final protected HttpEntity getBody() { return null; } @Override protected String handleRawContent(HttpEntity rawHttpEntity) throws Exception{ String ret=null; ret = EntityUtils.toString(rawHttpEntity); if (ret != null) { rawHttpEntity.consumeContent(); } return ret; } }