1 package org.apache.archiva.admin.repository.remote;
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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
22 import org.apache.archiva.admin.repository.AbstractRepository;
24 import java.io.Serializable;
27 * @author Olivier Lamy
30 public class RemoteRepository
31 extends AbstractRepository
32 implements Serializable
37 private String userName;
39 private String password;
41 private int timeout = 60;
43 public RemoteRepository()
48 public RemoteRepository( String id, String name, String url, String layout )
50 super( id, name, layout );
54 public RemoteRepository( String id, String name, String url, String layout, String userName, String password,
57 super( id, name, layout );
59 this.userName = userName;
60 this.password = password;
61 this.timeout = timeOut;
64 public String getUrl()
69 public void setUrl( String url )
74 public String getUserName()
79 public void setUserName( String userName )
81 this.userName = userName;
84 public String getPassword()
89 public void setPassword( String password )
91 this.password = password;
94 public int getTimeout()
99 public void setTimeout( int timeout )
101 this.timeout = timeout;
105 public String toString()
107 final StringBuilder sb = new StringBuilder();
108 sb.append( "RemoteRepository" );
109 sb.append( "{url='" ).append( url ).append( '\'' );
110 sb.append( ", userName='" ).append( userName ).append( '\'' );
111 sb.append( ", password='" ).append( password ).append( '\'' );
112 sb.append( ", timeout=" ).append( timeout );
114 sb.append( super.toString() );
115 return sb.toString();