Back to project page httpbreeze.
The source code is released under:
GNU General Public License
If you think the Android project httpbreeze 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.http.breeze.rest; /*from w w w .j a v a2s .c o m*/ import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; public abstract class HttpRequestExecutorTemplate implements HttpRequestExecutor { protected HttpRequest httpRequest; protected HttpRequestExecutorTemplate(HttpRequest httpRequest) { super(); this.httpRequest = httpRequest; } public final String makeRequest() throws MalformedURLException, UnsupportedEncodingException,IOException{ String response = null; switch(this.httpRequest.getMethod()){ case GET: response = executeAsGetRequest(); break; case POST: response = executeAsPostRequest(); break; } return response; } }