Preface


I originally noticed the Jakarta Commons libraries while working with Apache Jakarta Tomcat. At some point, Tomcat started to include a suite of small libraries with commons in the name. They started to show up everywhere, in all sorts of other open source projects. At first, it was slightly off-puttingwhat exactly is commons-lang.jar, and why is this tiny library showing up in all of my software?

Exploring the Jakarta Commons, I first found a broad suite of what I would characterize as "utility" codethings that often wound up in my software in packages named things like "util." Digging deeper, I found useful libraries to solve common problems, interesting algorithms, and more. In brief, by using the Jakarta Commons, I found I spent less time reinventing the wheel, and more time solving the problem at hand.

Virtually every Java developer can take advantage of various Jakarta Commons componentsfrom the utilities provided by the Collections and Lang packages, through the networking components afforded by the HttpClient and Net packages. These components underlie Apache Tomcat, Struts, and countless other projects, helping move forward both the Java industry and the Java platform.

The first few chapters cover the more web-specific packages, including FileUpload, HttpClient, and the Net suite of protocol implementations. The Pool and DBCP packages are useful for a broader range of applications. BeanUtils and JXPath provide easier ways to work with objects. Logging, Lang, and Collections are a suite of tools applicable to almost every application. Codec provides a suite of specialized conversion routines, useful for data transfer, security, and (interestingly) phonetic analysis. Finally, the CLI package provides support for building command-line applications.

CHAPTER 1: OVERVIEW

This chapter shows you where to download the various Commons components, and also how to install both the libraries and the documentation into Eclipse.

CHAPTER 2: FILEUPLOAD

This chapter shows how to easily add file upload capabilities to your web application.

CHAPTER 3: HTTPCLIENT

This chapter shows how to programmatically access HTTP resources. HttpClient provides many features, including cookie management and support for a broad range of features.

CHAPTER 4: NET

This chapter shows how a wide variety of common Internet protocols can be accessed, including FTP, NNTP, and others.

CHAPTER 5: POOL

This chapter demonstrates the use of a suite of configurable object pools.

CHAPTER 6: DBCP (DATABASE CONNECTION POOL)

This chapter covers the DBCP package, useful for Swing applications and other situations in which a container is not managing database connectivity for you.

CHAPTER 7: BEANUTILS

This chapter shows how the information provided by JavaBeans-style objects can easily be accessed at run-time.

CHAPTER 8: JXPATH

As you build applications composed of complex graphs of objects, traversing those objects can become tedious. JXPath provides an easy mechanism for walking through these graphs.

CHAPTER 9: LOGGING

Virtually every application can benefit from configurable loggingand the logging package is a good place to get started.

CHAPTER 10: LANG

Lang is one of the most useful packages, but one of the hardest to get started with. This chapter provides an overview of the Lang package, helping you get oriented.

CHAPTER 11: COLLECTIONS

This chapter covers powerful tools for working with collectionsricher object relationships.

CHAPTER 12: CODEC

This chapter shows how to use a suite of specialized conversion routines useful for data transfer, security, and phonetic analysis.

CHAPTER 13: CLI (COMMAND-LINE INTERFACE)

Learn how to present consistent, useful command-line configuration and help informationwith a bonus class path search tool.

CHAPTER 14: OTHER PROJECTS

This chapter provides a roadmap for a broad suite of other Commons projectsboth the proper and sandbox.

DOWNLOADING THE CODE

The code presented in this book is available for download from http://www.cascadetg.com/commons/.



    Apache Jakarta Commons(c) Reusable Java Components
    Real World Web Services
    ISBN: N/A
    EAN: 2147483647
    Year: 2006
    Pages: 137
    Authors: Will Iverson

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net