Coverage Report - com.ctrip.framework.apollo.util.http.HttpResponse
 
Classes in this File Line Coverage Branch Coverage Complexity
HttpResponse
100%
6/6
N/A
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  39
   public HttpResponse(int statusCode, T body) {
 11  39
     this.m_statusCode = statusCode;
 12  39
     this.m_body = body;
 13  39
   }
 14  
 
 15  
   public int getStatusCode() {
 16  19
     return m_statusCode;
 17  
   }
 18  
 
 19  
   public T getBody() {
 20  41
     return m_body;
 21  
   }
 22  
 }