Android Open Source - verfluchter-android Rest Response

From Project

Back to project page verfluchter-android.


The source code is released under:

--2010-08-23 23:59:46-- Translacja ???czenie si? z||:80... po??czono. ??danie HTTP wys?ano, oczeki...

If you think the Android project verfluchter-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

 * This file is part of verfluchter-android.
 */*from   w w  w  .  j av  a 2  m*/
 * verfluchter-android is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * verfluchter-android is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with Foobar.  If not, see <>.


import org.apache.http.Header;
import org.apache.http.cookie.Cookie;

import java.util.List;

 * @author Konrad Ktoso Malawski
public class RestResponse {
    int responseCode;
    String response;
    String errorMessage;
    Header[] headers;
    List<Cookie> cookies;

    public RestResponse(int responseCode, String response, Header[] headers, List<Cookie> cookies, String errorMessage) {
        this.responseCode = responseCode;
        this.response = response;
        this.headers = headers;
        this.cookies = cookies;
        this.errorMessage = errorMessage;

    public int getResponseCode() {
        return responseCode;

    public String getResponse() {
        return response;

    public String getErrorMessage() {
        return errorMessage;

    public Header[] getHeaders() {
        return headers;

    public List<Cookie> getCookies() {
        return cookies;

    public Cookie getCookie(String cookieName) {
        for (Cookie cookie : cookies) {
                return cookie;
        return null;

Java Source Code List