001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.maven.scm.provider.git.repository;
020
021/**
022 * This class is a container which holds information about
023 * repository URL.
024 * @author <a href="mailto:struberg@apache.org">Mark Struberg</a>
025 *
026 * @since 1.3
027 */
028public class RepositoryUrl {
029
030    /** the protocol used to access the upstream repository */
031    private String protocol;
032
033    /** the server to access the upstream repository */
034    private String host;
035
036    /** the port to access the upstream repository */
037    private String port;
038
039    /** the path on the server to access the upstream repository */
040    private String path;
041
042    /** the user name from the repository URL */
043    private String userName;
044
045    /** the password from the repository URL */
046    private String password;
047
048    public String getProtocol() {
049        return protocol;
050    }
051
052    public void setProtocol(String protocol) {
053        this.protocol = protocol;
054    }
055
056    public String getHost() {
057        return host;
058    }
059
060    public void setHost(String host) {
061        this.host = host;
062    }
063
064    public String getPort() {
065        return port;
066    }
067
068    public void setPort(String port) {
069        this.port = port;
070    }
071
072    public String getPath() {
073        return path;
074    }
075
076    public void setPath(String path) {
077        this.path = path;
078    }
079
080    public String getUserName() {
081        return userName;
082    }
083
084    public void setUserName(String userName) {
085        this.userName = userName;
086    }
087
088    public String getPassword() {
089        return password;
090    }
091
092    public void setPassword(String password) {
093        this.password = password;
094    }
095}