Coverage Report - org.apache.tomcat.maven.common.deployer.TomcatManagerResponse
 
Classes in this File Line Coverage Branch Coverage Complexity
TomcatManagerResponse
81 %
9/11
N/A
1
 
 1  
 package org.apache.tomcat.maven.common.deployer;
 2  
 /*
 3  
  * Licensed to the Apache Software Foundation (ASF) under one
 4  
  * or more contributor license agreements.  See the NOTICE file
 5  
  * distributed with this work for additional information
 6  
  * regarding copyright ownership.  The ASF licenses this file
 7  
  * to you under the Apache License, Version 2.0 (the
 8  
  * "License"); you may not use this file except in compliance
 9  
  * with the License.  You may obtain a copy of the License at
 10  
  *
 11  
  *   http://www.apache.org/licenses/LICENSE-2.0
 12  
  *
 13  
  * Unless required by applicable law or agreed to in writing,
 14  
  * software distributed under the License is distributed on an
 15  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 16  
  * KIND, either express or implied.  See the License for the
 17  
  * specific language governing permissions and limitations
 18  
  * under the License.
 19  
  */
 20  
 
 21  
 /**
 22  
  * @author Olivier Lamy
 23  
  * @since 2.0
 24  
  */
 25  
 public class TomcatManagerResponse
 26  
 {
 27  
     private int statusCode;
 28  
 
 29  
     private String reasonPhrase;
 30  
 
 31  
     private String httpResponseBody;
 32  
 
 33  
     public TomcatManagerResponse()
 34  3
     {
 35  
         // no op
 36  3
     }
 37  
 
 38  
     public int getStatusCode()
 39  
     {
 40  3
         return statusCode;
 41  
     }
 42  
 
 43  
     public TomcatManagerResponse setStatusCode( int statusCode )
 44  
     {
 45  3
         this.statusCode = statusCode;
 46  3
         return this;
 47  
     }
 48  
 
 49  
     public String getReasonPhrase()
 50  
     {
 51  0
         return reasonPhrase;
 52  
     }
 53  
 
 54  
     public TomcatManagerResponse setReasonPhrase( String reasonPhrase )
 55  
     {
 56  3
         this.reasonPhrase = reasonPhrase;
 57  3
         return this;
 58  
     }
 59  
 
 60  
     public String getHttpResponseBody()
 61  
     {
 62  0
         return httpResponseBody;
 63  
     }
 64  
 
 65  
     public TomcatManagerResponse setHttpResponseBody( String httpResponseBody )
 66  
     {
 67  3
         this.httpResponseBody = httpResponseBody;
 68  3
         return this;
 69  
     }
 70  
 }