001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.7, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.archiva.configuration; 007 008/** 009 * 010 * The network configuration for external http request to 011 * repositories. 012 * 013 * 014 * @version $Revision$ $Date$ 015 */ 016@SuppressWarnings( "all" ) 017public class NetworkConfiguration 018 implements java.io.Serializable 019{ 020 021 //--------------------------/ 022 //- Class/Member Variables -/ 023 //--------------------------/ 024 025 /** 026 * maximum total external http connections. 027 */ 028 private int maxTotal = 30; 029 030 /** 031 * maximum total external http connections per host. 032 */ 033 private int maxTotalPerHost = 30; 034 035 /** 036 * use or not http connection pooling default true. 037 */ 038 private boolean usePooling = true; 039 040 041 //-----------/ 042 //- Methods -/ 043 //-----------/ 044 045 /** 046 * Get maximum total external http connections. 047 * 048 * @return int 049 */ 050 public int getMaxTotal() 051 { 052 return this.maxTotal; 053 } //-- int getMaxTotal() 054 055 /** 056 * Get maximum total external http connections per host. 057 * 058 * @return int 059 */ 060 public int getMaxTotalPerHost() 061 { 062 return this.maxTotalPerHost; 063 } //-- int getMaxTotalPerHost() 064 065 /** 066 * Get use or not http connection pooling default true. 067 * 068 * @return boolean 069 */ 070 public boolean isUsePooling() 071 { 072 return this.usePooling; 073 } //-- boolean isUsePooling() 074 075 /** 076 * Set maximum total external http connections. 077 * 078 * @param maxTotal 079 */ 080 public void setMaxTotal( int maxTotal ) 081 { 082 this.maxTotal = maxTotal; 083 } //-- void setMaxTotal( int ) 084 085 /** 086 * Set maximum total external http connections per host. 087 * 088 * @param maxTotalPerHost 089 */ 090 public void setMaxTotalPerHost( int maxTotalPerHost ) 091 { 092 this.maxTotalPerHost = maxTotalPerHost; 093 } //-- void setMaxTotalPerHost( int ) 094 095 /** 096 * Set use or not http connection pooling default true. 097 * 098 * @param usePooling 099 */ 100 public void setUsePooling( boolean usePooling ) 101 { 102 this.usePooling = usePooling; 103 } //-- void setUsePooling( boolean ) 104 105}