1 package org.apache.maven.scm.provider.git.repository; 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 /** 23 * This class is a container which holds information about 24 * repository URL. 25 * @author <a href="mailto:struberg@apache.org">Mark Struberg</a> 26 * 27 * @since 1.3 28 */ 29 public class RepositoryUrl 30 { 31 32 /** the protocol used to access the upstream repository */ 33 private String protocol; 34 35 /** the server to access the upstream repository */ 36 private String host; 37 38 /** the port to access the upstream repository */ 39 private String port; 40 41 /** the path on the server to access the upstream repository */ 42 private String path; 43 44 /** the user name from the repository URL */ 45 private String userName; 46 47 /** the password from the repository URL */ 48 private String password; 49 50 public String getProtocol() 51 { 52 return protocol; 53 } 54 55 public void setProtocol( String protocol ) 56 { 57 this.protocol = protocol; 58 } 59 60 public String getHost() 61 { 62 return host; 63 } 64 65 public void setHost( String host ) 66 { 67 this.host = host; 68 } 69 70 public String getPort() 71 { 72 return port; 73 } 74 75 public void setPort( String port ) 76 { 77 this.port = port; 78 } 79 80 public String getPath() 81 { 82 return path; 83 } 84 85 public void setPath( String path ) 86 { 87 this.path = path; 88 } 89 90 public String getUserName() 91 { 92 return userName; 93 } 94 95 public void setUserName( String userName ) 96 { 97 this.userName = userName; 98 } 99 100 public String getPassword() 101 { 102 return password; 103 } 104 105 public void setPassword( String password ) 106 { 107 this.password = password; 108 } 109 110 111 112 }