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