Back to project page Mamytas.
The source code is released under:
GNU General Public License
If you think the Android project Mamytas 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 mn.aug.restfulandroid.rest; /*from w w w . j a v a2s . c om*/ import java.net.URI; import java.util.HashMap; import java.util.List; import java.util.Map; import mn.aug.restfulandroid.rest.RestMethodFactory.Method; public class Request { private URI requestUri; private Map<String, List<String>> headers; private byte[] body; private Method method; public Request(Method method, URI requestUri, Map<String, List<String>> headers, byte[] body) { super(); this.method = method; this.requestUri = requestUri; this.headers = headers; this.body = body; } public Method getMethod() { return method; } public URI getRequestUri() { return requestUri; } public Map<String, List<String>> getHeaders() { return headers; } public byte[] getBody() { return body; } public void addHeader(String key, List<String> value) { if (headers == null) { headers = new HashMap<String, List<String>>(); } headers.put(key, value); } }