package ru.r2cloud.web;

import java.util.HashMap;
import java.util.Map;

import com.eclipsesource.json.JsonValue;

import fi.iki.elonen.NanoHTTPD.Response.IStatus;

public class ModelAndView {

	private String data;
	private Map<String, String> headers;
	private IStatus status;

	public IStatus getStatus() {
		return status;
	}

	public void setStatus(IStatus status) {
		this.status = status;
	}

	public Map<String, String> getHeaders() {
		return headers;
	}

	public void setHeaders(Map<String, String> headers) {
		this.headers = headers;
	}

	public void addHeader(String name, String value) {
		if (headers == null) {
			headers = new HashMap<String, String>();
		}
		headers.put(name, value);
	}

	public String getData() {
		return data;
	}

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

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

}

@@ -22,34 +22,8 @@
 b;%0A%0A
-import java.util.HashMap;%0A
 impo
@@ -437,250 +437,8 @@
 %09%7D%0A%0A
-%09public void setHeaders(Map%3CString, String%3E headers) %7B%0A%09%09this.headers = headers;%0A%09%7D%0A%0A%09public void addHeader(String name, String value) %7B%0A%09%09if (headers == null) %7B%0A%09%09%09headers = new HashMap%3CString, String%3E();%0A%09%09%7D%0A%09%09headers.put(name, value);%0A%09%7D%0A%0A
 %09pub

remove unused