java.lang.Object | |
↳ | org.apache.http.util.VersionInfo |
This class is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PROPERTY_MODULE | ||||||||||
String | PROPERTY_RELEASE | ||||||||||
String | PROPERTY_TIMESTAMP | ||||||||||
String | UNAVAILABLE | A string constant for unavailable information. | |||||||||
String | VERSION_PROPERTY_FILE | The filename of the version information files. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiates version information.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtains the classloader used to read the version information.
| |||||||||||
Obtains the name of the versioned module or informal unit.
| |||||||||||
Obtains the package name.
| |||||||||||
Obtains the release of the versioned module or informal unit.
| |||||||||||
Obtains the timestamp of the versioned module or informal unit.
| |||||||||||
Loads version information for a list of packages.
| |||||||||||
Loads version information for a package.
| |||||||||||
Provides the version information in human-readable format.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiates version information from properties.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
A string constant for unavailable information.
The filename of the version information files.
Instantiates version information.
pckg | the package |
---|---|
module | the module, or null |
release | the release, or null |
time | the build time, or null |
clsldr | the class loader, or null
|
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.
null
Obtains the name of the versioned module or informal unit. This data is read from the version information for the package.
null
Obtains the package name. The package name identifies the module or informal unit.
null
Obtains the release of the versioned module or informal unit. This data is read from the version information for the package.
null
Obtains the timestamp of the versioned module or informal unit. This data is read from the version information for the package.
null
Loads version information for a list of packages.
pckgs | the packages for which to load version info |
---|---|
clsldr | the classloader to load from, or
null for the thread context classloader |
null
Loads version information for a package.
pckg | the package for which to load version information, for example "org.apache.http". The package name should NOT end with a dot. |
---|---|
clsldr | the classloader to load from, or
null for the thread context classloader |
null
if not available
Provides the version information in human-readable format.
Instantiates version information from properties.
pckg | the package for the version information |
---|---|
info | the map from string keys to string values,
for example Properties |
clsldr | the classloader, or null |