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