org.japtproxy.misc
Class Configuration

java.lang.Object
  extended by org.japtproxy.misc.Configuration

public class Configuration
extends java.lang.Object

This class is used to read and hold the Japt-Proxy configuration.

Version:
$LastChangedRevision: 120 $
Author:
Oliver J. Siegmar

Constructor Summary
Configuration(java.io.File configFile)
          Initialize the configuration with the given config file.
 
Method Summary
 Backend getBackend(java.lang.String backendName)
           
 java.lang.String getHttpProxy()
          Returns the Http-Proxy to be used.
 java.lang.Integer getMaxVersions()
          Returns the max.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration(java.io.File configFile)
              throws InitializationException
Initialize the configuration with the given config file.

Parameters:
configFile - the config file.
Throws:
InitializationException - is thrown if the configuration is erroneous.
Method Detail

getHttpProxy

public java.lang.String getHttpProxy()
Returns the Http-Proxy to be used.

Returns:
the Http-Proxy to be used

getMaxVersions

public java.lang.Integer getMaxVersions()
Returns the max. amount of versions to be kept from a repo package.

Returns:
the max. amount of versions to be kept from a repo package

getBackend

public Backend getBackend(java.lang.String backendName)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2008. All Rights Reserved.