| java.lang.Object org.apache.http.util.VersionInfo
VersionInfo | public class VersionInfo (Code) | | Provides access to version information for HTTP components.
Instances of this class provide version information for a single module
or informal unit, as explained
here.
Static methods are used to extract version information from property
files that are automatically packaged with HTTP component release JARs.
All available version information is provided in strings, where
the string format is informal and subject to change without notice.
Version information is provided for debugging output and interpretation
by humans, not for automated processing in applications.
author: Oleg Kalnichevski author: and others |
PROPERTY_MODULE | final public static String PROPERTY_MODULE(Code) | | |
PROPERTY_RELEASE | final public static String PROPERTY_RELEASE(Code) | | |
PROPERTY_TIMESTAMP | final public static String PROPERTY_TIMESTAMP(Code) | | |
UNAVAILABLE | final public static String UNAVAILABLE(Code) | | A string constant for unavailable information.
|
VERSION_PROPERTY_FILE | final public static String VERSION_PROPERTY_FILE(Code) | | The filename of the version information files.
|
VersionInfo | protected VersionInfo(String pckg, String module, String release, String time, String clsldr)(Code) | | Instantiates version information.
Parameters: pckg - the package Parameters: module - the module, or null Parameters: release - the release, or null Parameters: time - the build time, or null Parameters: clsldr - the class loader, or null |
fromMap | final protected static VersionInfo fromMap(String pckg, Map info, ClassLoader clsldr)(Code) | | Instantiates version information from properties.
Parameters: pckg - the package for the version information Parameters: info - the map from string keys to string values,for example java.util.Properties Parameters: clsldr - the classloader, or null the version information |
getClassloader | final public String getClassloader()(Code) | | Obtains the classloader used to read the version information.
This is just the toString output of the classloader,
since the version information should not keep a reference to
the classloader itself. That could prevent garbage collection.
the classloader description, never null |
getModule | final public String getModule()(Code) | | Obtains the name of the versioned module or informal unit.
This data is read from the version information for the package.
the module name, never null |
getPackage | final public String getPackage()(Code) | | Obtains the package name.
The package name identifies the module or informal unit.
the package name, never null |
getRelease | final public String getRelease()(Code) | | Obtains the release of the versioned module or informal unit.
This data is read from the version information for the package.
the release version, never null |
getTimestamp | final public String getTimestamp()(Code) | | Obtains the timestamp of the versioned module or informal unit.
This data is read from the version information for the package.
the timestamp, never null |
loadVersionInfo | final public static VersionInfo[] loadVersionInfo(String[] pckgs, ClassLoader clsldr)(Code) | | Loads version information for a list of packages.
Parameters: pckgs - the packages for which to load version info Parameters: clsldr - the classloader to load from, ornull for the thread context classloader the version information for all packages found,never null |
loadVersionInfo | final public static VersionInfo loadVersionInfo(String pckg, ClassLoader clsldr)(Code) | | Loads version information for a package.
Parameters: pckg - the package for which to load version information,for example "org.apache.http".The package name should NOT end with a dot. Parameters: clsldr - the classloader to load from, ornull for the thread context classloader the version information for the argument package, ornull if not available |
toString | public String toString()(Code) | | Provides the version information in human-readable format.
a string holding this version information |
|
|