Back to project page Joetz-Android-V2.
The source code is released under:
GNU General Public License
If you think the Android project Joetz-Android-V2 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.example.jens.myapplication.apimanager; // w w w . j av a 2 s. c o m import org.apache.http.entity.StringEntity; import org.json.JSONObject; import java.io.UnsupportedEncodingException; /** * Request parameters for server requests.<br /> * All of these are optional */ public class RequestParams{ private String authKey; private JSONObject jsonObject; private String contentType; private StringEntity rawBody; private String acceptHeader; public String getAuthKey() { return authKey; } public RequestParams setAuthKey(String authKey) { this.authKey = authKey; return this; } public String getContentType() { return contentType; } public RequestParams setContentType(String contentType) { this.contentType = contentType; return this; } public StringEntity getRawBody() { return rawBody; } public RequestParams setRawBody(String rawBody){ try { this.rawBody = new StringEntity(rawBody); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return this; } public String getAcceptHeader() { return acceptHeader; } public RequestParams setAcceptHeader(String acceptHeader) { this.acceptHeader = acceptHeader; return this; } }