Coverage Report - org.jtheque.films.services.impl.utils.file.FTPConnectionInfos
 
Classes in this File Line Coverage Branch Coverage Complexity
FTPConnectionInfos
0 %
0/19
N/A
1
 
 1  
 package org.jtheque.films.services.impl.utils.file;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 /**
 20  
  * A bean to contain the informations of a FTP Connection.
 21  
  *
 22  
  * @author Baptiste Wicht
 23  
  */
 24  0
 public final class FTPConnectionInfos {
 25  
     private String host;
 26  
     private String path;
 27  
     private String user;
 28  
     private String password;
 29  
     private int port;
 30  
     private boolean passive;
 31  
 
 32  
     /**
 33  
      * Return the host name.
 34  
      *
 35  
      * @return the server's host name.
 36  
      */
 37  
     public String getHost() {
 38  0
         return host;
 39  
     }
 40  
 
 41  
     /**
 42  
      * Set the host name of the server.
 43  
      *
 44  
      * @param host The host name of the server.
 45  
      */
 46  
     public void setHost(String host) {
 47  0
         this.host = host;
 48  0
     }
 49  
 
 50  
     /**
 51  
      * Return the path on the server.
 52  
      *
 53  
      * @return The directory to store the file in.
 54  
      */
 55  
     public String getPath() {
 56  0
         return path;
 57  
     }
 58  
 
 59  
     /**
 60  
      * Set the path on the server to store in.
 61  
      *
 62  
      * @param path The path on the server to store in.
 63  
      */
 64  
     public void setPath(String path) {
 65  0
         this.path = path;
 66  0
     }
 67  
 
 68  
     /**
 69  
      * Return the user name.
 70  
      *
 71  
      * @return the user name.
 72  
      */
 73  
     public String getUser() {
 74  0
         return user;
 75  
     }
 76  
 
 77  
     /**
 78  
      * Set the user name.
 79  
      *
 80  
      * @param user The user name.
 81  
      */
 82  
     public void setUser(String user) {
 83  0
         this.user = user;
 84  0
     }
 85  
 
 86  
     /**
 87  
      * Return the password.
 88  
      *
 89  
      * @return The password.
 90  
      */
 91  
     public String getPassword() {
 92  0
         return password;
 93  
     }
 94  
 
 95  
     /**
 96  
      * Set the password.
 97  
      *
 98  
      * @param password The password.
 99  
      */
 100  
     public void setPassword(String password) {
 101  0
         this.password = password;
 102  0
     }
 103  
 
 104  
     /**
 105  
      * Return the port.
 106  
      *
 107  
      * @return The port.
 108  
      */
 109  
     public int getPort() {
 110  0
         return port;
 111  
     }
 112  
 
 113  
     /**
 114  
      * Set the port.
 115  
      *
 116  
      * @param port The port.
 117  
      */
 118  
     public void setPort(int port) {
 119  0
         this.port = port;
 120  0
     }
 121  
 
 122  
     /**
 123  
      * Indicate if we use passive mode or not.
 124  
      *
 125  
      * @return true if we use passive mode else false.
 126  
      */
 127  
     public boolean isPassive() {
 128  0
         return passive;
 129  
     }
 130  
 
 131  
     /**
 132  
      * Set if we must use passive mode or not.
 133  
      *
 134  
      * @param passive A boolean indicating if we must use the passive mode or not.
 135  
      */
 136  
     public void setPassive(boolean passive) {
 137  0
         this.passive = passive;
 138  0
     }
 139  
 }