1 package org.apache.archiva.configuration;
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
24 * The network configuration for external http request to
28 * @version $Revision$ $Date$
30 @SuppressWarnings( "all" )
31 public class NetworkConfiguration
32 implements java.io.Serializable
35 //--------------------------/
36 //- Class/Member Variables -/
37 //--------------------------/
40 * maximum total external http connections.
42 private int maxTotal = 30;
45 * maximum total external http connections per host.
47 private int maxTotalPerHost = 30;
50 * use or not http connection pooling default true.
52 private boolean usePooling = true;
60 * Get maximum total external http connections.
64 public int getMaxTotal()
67 } //-- int getMaxTotal()
70 * Get maximum total external http connections per host.
74 public int getMaxTotalPerHost()
76 return this.maxTotalPerHost;
77 } //-- int getMaxTotalPerHost()
80 * Get use or not http connection pooling default true.
84 public boolean isUsePooling()
86 return this.usePooling;
87 } //-- boolean isUsePooling()
90 * Set maximum total external http connections.
94 public void setMaxTotal( int maxTotal )
96 this.maxTotal = maxTotal;
97 } //-- void setMaxTotal( int )
100 * Set maximum total external http connections per host.
102 * @param maxTotalPerHost
104 public void setMaxTotalPerHost( int maxTotalPerHost )
106 this.maxTotalPerHost = maxTotalPerHost;
107 } //-- void setMaxTotalPerHost( int )
110 * Set use or not http connection pooling default true.
114 public void setUsePooling( boolean usePooling )
116 this.usePooling = usePooling;
117 } //-- void setUsePooling( boolean )