Coverage Report - org.apache.maven.archiva.configuration.NetworkProxyConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
NetworkProxyConfiguration
0%
0/21
N/A
1
 
 1  
 /*
 2  
  * $Id$
 3  
  */
 4  
 
 5  
 package org.apache.maven.archiva.configuration;
 6  
 
 7  
   //---------------------------------/
 8  
  //- Imported classes and packages -/
 9  
 //---------------------------------/
 10  
 
 11  
 import java.util.Date;
 12  
 
 13  
 /**
 14  
  * Class NetworkProxyConfiguration.
 15  
  * 
 16  
  * @version $Revision$ $Date$
 17  
  */
 18  0
 public class NetworkProxyConfiguration
 19  
     implements java.io.Serializable
 20  
 {
 21  
 
 22  
       //--------------------------/
 23  
      //- Class/Member Variables -/
 24  
     //--------------------------/
 25  
 
 26  
     /**
 27  
      * 
 28  
      *             The ID for this proxy.
 29  
      *           
 30  
      */
 31  
     private String id;
 32  
 
 33  
     /**
 34  
      * 
 35  
      *             The network protocol to use with this proxy:
 36  
      * "http", "socks-4"
 37  
      *           .
 38  
      */
 39  0
     private String protocol = "http";
 40  
 
 41  
     /**
 42  
      * 
 43  
      *             The proxy host.
 44  
      *           
 45  
      */
 46  
     private String host;
 47  
 
 48  
     /**
 49  
      * 
 50  
      *             The proxy port.
 51  
      *           
 52  
      */
 53  0
     private int port = 8080;
 54  
 
 55  
     /**
 56  
      * 
 57  
      *             The proxy user.
 58  
      *           
 59  
      */
 60  
     private String username;
 61  
 
 62  
     /**
 63  
      * 
 64  
      *             The proxy password.
 65  
      *           
 66  
      */
 67  
     private String password;
 68  
 
 69  
 
 70  
       //-----------/
 71  
      //- Methods -/
 72  
     //-----------/
 73  
 
 74  
     /**
 75  
      * Get 
 76  
      *             The proxy host.
 77  
      *           
 78  
      * 
 79  
      * @return String
 80  
      */
 81  
     public String getHost()
 82  
     {
 83  0
         return this.host;
 84  
     } //-- String getHost()
 85  
 
 86  
     /**
 87  
      * Get 
 88  
      *             The ID for this proxy.
 89  
      *           
 90  
      * 
 91  
      * @return String
 92  
      */
 93  
     public String getId()
 94  
     {
 95  0
         return this.id;
 96  
     } //-- String getId()
 97  
 
 98  
     /**
 99  
      * Get 
 100  
      *             The proxy password.
 101  
      *           
 102  
      * 
 103  
      * @return String
 104  
      */
 105  
     public String getPassword()
 106  
     {
 107  0
         return this.password;
 108  
     } //-- String getPassword()
 109  
 
 110  
     /**
 111  
      * Get 
 112  
      *             The proxy port.
 113  
      *           
 114  
      * 
 115  
      * @return int
 116  
      */
 117  
     public int getPort()
 118  
     {
 119  0
         return this.port;
 120  
     } //-- int getPort()
 121  
 
 122  
     /**
 123  
      * Get 
 124  
      *             The network protocol to use with this proxy:
 125  
      * "http", "socks-4"
 126  
      *           .
 127  
      * 
 128  
      * @return String
 129  
      */
 130  
     public String getProtocol()
 131  
     {
 132  0
         return this.protocol;
 133  
     } //-- String getProtocol()
 134  
 
 135  
     /**
 136  
      * Get 
 137  
      *             The proxy user.
 138  
      *           
 139  
      * 
 140  
      * @return String
 141  
      */
 142  
     public String getUsername()
 143  
     {
 144  0
         return this.username;
 145  
     } //-- String getUsername()
 146  
 
 147  
     /**
 148  
      * Set 
 149  
      *             The proxy host.
 150  
      *           
 151  
      * 
 152  
      * @param host
 153  
      */
 154  
     public void setHost( String host )
 155  
     {
 156  0
         this.host = host;
 157  0
     } //-- void setHost( String )
 158  
 
 159  
     /**
 160  
      * Set 
 161  
      *             The ID for this proxy.
 162  
      *           
 163  
      * 
 164  
      * @param id
 165  
      */
 166  
     public void setId( String id )
 167  
     {
 168  0
         this.id = id;
 169  0
     } //-- void setId( String )
 170  
 
 171  
     /**
 172  
      * Set 
 173  
      *             The proxy password.
 174  
      *           
 175  
      * 
 176  
      * @param password
 177  
      */
 178  
     public void setPassword( String password )
 179  
     {
 180  0
         this.password = password;
 181  0
     } //-- void setPassword( String )
 182  
 
 183  
     /**
 184  
      * Set 
 185  
      *             The proxy port.
 186  
      *           
 187  
      * 
 188  
      * @param port
 189  
      */
 190  
     public void setPort( int port )
 191  
     {
 192  0
         this.port = port;
 193  0
     } //-- void setPort( int )
 194  
 
 195  
     /**
 196  
      * Set 
 197  
      *             The network protocol to use with this proxy:
 198  
      * "http", "socks-4"
 199  
      *           .
 200  
      * 
 201  
      * @param protocol
 202  
      */
 203  
     public void setProtocol( String protocol )
 204  
     {
 205  0
         this.protocol = protocol;
 206  0
     } //-- void setProtocol( String )
 207  
 
 208  
     /**
 209  
      * Set 
 210  
      *             The proxy user.
 211  
      *           
 212  
      * 
 213  
      * @param username
 214  
      */
 215  
     public void setUsername( String username )
 216  
     {
 217  0
         this.username = username;
 218  0
     } //-- void setUsername( String )
 219  
 
 220  
 
 221  
 }