##### Coverage Report - com.ctrip.framework.apollo.util.http.HttpResponse

Classes in this File | Line Coverage | Branch Coverage | Complexity
HttpResponse |
100% | 6/6
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.framework.apollo.util.http;
2 |  |
3 |  |
     /**
4 |  |
      * @author Jason Song(song_s@ctrip.com)
5 |  |
      */
6 |  |
     public class HttpResponse<T> {
7 |  |
       private final int m_statusCode;
8 |  |
       private final T m_body;
9 |  |
10 | 48 |
       public HttpResponse(int statusCode, T body) {
11 | 48 |
         this.m_statusCode = statusCode;
12 | 48 |
         this.m_body = body;
13 | 48 |
       }
14 |  |
15 |  |
       public int getStatusCode() {
16 | 35 |
         return m_statusCode;
17 |  |
       }
18 |  |
19 |  |
       public T getBody() {
20 | 50 |
         return m_body;
21 |  |
       }
22 |  |
     }