Clover coverage report - Code Coverage for tapestry release 3.1-alpha-1
Coverage timestamp: Mon Feb 21 2005 09:16:14 EST
file stats: LOC: 85   Methods: 8
NCLOC: 39   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
DecodedRequest.java - 100% 100% 100%
coverage
 1   
 // Copyright 2004, 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry.request;
 16   
 
 17   
 /**
 18   
  *  Contains properties of an {@link javax.servlet.http.HttpServletRequest}
 19   
  *  that have been extracted from the request (or otherwise determined).
 20   
  * 
 21   
  *  <p>An alternative idea would have been to create a new 
 22   
  *  {@link javax.servlet.http.HttpServletRequest}
 23   
  *  wrapper that overode the various methods.  That struck me as causing
 24   
  *  more confusion; instead (in the few places it counts), classes will
 25   
  *  get the decoded properties from the {@link RequestContext}.
 26   
  *
 27   
  *  @see IRequestDecoder
 28   
  *  @see RequestContext#getScheme()
 29   
  *  @see RequestContext#getServerName()
 30   
  *  @see RequestContext#getServerPort()
 31   
  *  @see RequestContext#getRequestURI()
 32   
  * 
 33   
  *  @author Howard Lewis Ship
 34   
  *  @version DecodedRequest.java,v 1.1 2002/08/20 21:49:58 hship Exp
 35   
  *  @since 2.2
 36   
  * 
 37   
  **/
 38   
 
 39   
 public class DecodedRequest
 40   
 {
 41   
     private String _scheme;
 42   
     private String _serverName;
 43   
     private String _requestURI;
 44   
     private int _serverPort;
 45   
 
 46  173
     public int getServerPort()
 47   
     {
 48  173
         return _serverPort;
 49   
     }
 50   
 
 51  173
     public String getScheme()
 52   
     {
 53  173
         return _scheme;
 54   
     }
 55   
 
 56  173
     public String getServerName()
 57   
     {
 58  173
         return _serverName;
 59   
     }
 60   
 
 61  185
     public String getRequestURI()
 62   
     {
 63  185
         return _requestURI;
 64   
     }
 65   
 
 66  185
     public void setServerPort(int serverPort)
 67   
     {
 68  185
         _serverPort = serverPort;
 69   
     }
 70   
 
 71  185
     public void setScheme(String scheme)
 72   
     {
 73  185
         _scheme = scheme;
 74   
     }
 75   
 
 76  185
     public void setServerName(String serverName)
 77   
     {
 78  185
         _serverName = serverName;
 79   
     }
 80   
 
 81  185
     public void setRequestURI(String URI)
 82   
     {
 83  185
         _requestURI = URI;
 84   
     }
 85   
 }