All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nezha.httpfetch.HttpResult Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package com.github.nezha.httpfetch;

import java.util.Map;

/**
 * Created by daiqiang on 17/6/12.
 */
public class HttpResult {

    private Integer statusCode;

    private Object data;

    private Map headers;

    private Exception exception;

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Map getHeaders() {
        return headers;
    }

    public void setHeaders(Map headers) {
        this.headers = headers;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    public boolean hasException() {
        return exception != null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy