88dd73e15a49fffa8a97b6415cadc3d2ecf14309
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemanager / impl / src / main / java / org / opendaylight / mwtn / base / http / BaseHTTPResponse.java
1 package org.opendaylight.mwtn.base.http;
2
3 public class BaseHTTPResponse {
4
5         public static final int CODE404 = 404;
6         public static final int CODE200 = 200;
7         public static final BaseHTTPResponse UNKNOWN = new BaseHTTPResponse(-1, "");
8         public final int code;
9         public final String body;
10
11         public BaseHTTPResponse(int code,String body)
12         {
13                 this.code=code;
14                 this.body=body;
15         }
16
17         @Override
18         public String toString() {
19                 return "BaseHTTPResponse [code=" + code + ", body=" + body + "]";
20         }
21 }