Java Doc for VersionInfo.java in  » Net » httpcomponents-core-4.0-beta1 » org » apache » http » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » httpcomponents core 4.0 beta1 » org.apache.http.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final public static  StringPROPERTY_MODULE
    
final public static  StringPROPERTY_RELEASE
    
final public static  StringPROPERTY_TIMESTAMP
    
final public static  StringUNAVAILABLE
     A string constant for unavailable information.
final public static  StringVERSION_PROPERTY_FILE
     The filename of the version information files.

Constructor Summary
protected  VersionInfo(String pckg, String module, String release, String time, String clsldr)
     Instantiates version information.

Method Summary
final protected static  VersionInfofromMap(String pckg, Map info, ClassLoader clsldr)
     Instantiates version information from properties.
final public  StringgetClassloader()
     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.
final public  StringgetModule()
     Obtains the name of the versioned module or informal unit.
final public  StringgetPackage()
     Obtains the package name.
final public  StringgetRelease()
     Obtains the release of the versioned module or informal unit.
final public  StringgetTimestamp()
     Obtains the timestamp of the versioned module or informal unit.
final public static  VersionInfo[]loadVersionInfo(String[] pckgs, ClassLoader clsldr)
     Loads version information for a list of packages.
final public static  VersionInfoloadVersionInfo(String pckg, ClassLoader clsldr)
     Loads version information for a package.
public  StringtoString()
     Provides the version information in human-readable format.

Field Detail
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.




Constructor Detail
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




Method Detail
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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.