Apache Jakarta Commons: Reusable Java Components

Will Iverson

  • 出版商: Prentice Hall
  • 出版日期: 2005-02-17
  • 售價: $1,840
  • 貴賓價: 9.5$1,748
  • 語言: 英文
  • 頁數: 360
  • 裝訂: Paperback
  • ISBN: 0131478303
  • ISBN-13: 9780131478305
  • 相關分類: Java 程式語言
  • 已絕版

買這商品的人也買了...

商品描述

Description:

  • Easy-to-follow coverage of twelve indispensable Jakarta Commons packages

  • Code examples that show innovative uses of Commons components, including using HttpClient to access Web resources, FileUpload for handling HTTP file uploads, and BeanUtils for easy form generation

  • Detailed instructions for combining the Commons project libraries with the popular Eclipse IDE

Save time and money with reusable open source Java™ components

Master the Jakarta Commons Library of Open Source JavaTM Components

Using the Apache Jakarta Commons reusable Java™ components, you can leverage the work of the global open-source community to solve common programming problems reliably, quickly, and inexpensively. But, to use the Commons libraries effectively, you need far more guidance than the official documentation offers. In Apache Jakarta Commons: Reusable Java™ Components, Will Iverson covers what Java developers need to know to take full advantage of Jakarta Commons—starting right now.

Iverson begins with a definitive overview of the Commons project: goals, installation, and getting started with Commons components. Next, he presents example-rich chapters on the twelve most useful Commons packages, covering topics ranging from HTTP FileUpload to database connectivity. Iverson provides detailed code samples for every component he describes. After you've mastered the core Jakarta Commons packages, you'll constantly rely on this book's handy seventy-five page quick-reference. Iverson's coverage includes

  • Downloading Commons project libraries and installing them into Eclipse

  • Programmatically accessing resources via HTTP, FTP, NNTP, and other Internet protocols

  • Using the Jakarta Commons suite of configurable object pools

  • Managing database connectivity in Swing applications—and anywhere containers aren't doing it for you

  • Using BeanUtils to generate forms and gain runtime access to information provided by JavaBeans-style objects

  • Traversing complex object graphs with JXPath

  • Using Jakarta Commons' advanced collections tools to establish richer object relationships

  • Extending java.lang with better methods for manipulating core classes

  • Implementing conversion routines, configurable logging, command-line help, and more

  • Exploring the newest packages, including emerging "sandbox" packages

Whether you're building code for front-end Web applications, client-side software, or back-end servers, learning Jakarta Commons will make you far more efficient. Apache Jakarta Commons is the fastest way to master and get results with Commons.

About the Web Site

All of the book's sample Java programs are available for download from: http://www.cascadetg.com/commons/.

 

Table of Contents:

Preface

Acknowledgments

About the Author

1. Overview.

    Proper versus Sandbox

    License

    Obtaining and Installing

    Configuration Under Eclipse

    From Here

2. FileUpload.

    Web and User Interfaces

    Fileupload Design

    Building an Application with Fileupload

      FileUpload Application User Interface

    Sample Fileupload Application Code

      Application Presentation

      Application Logic

    Limitations and Security Issues

    Summary

3. HttpClient.

    A Simple Cookie-Based Web Site

    Understanding Httpclient

    Simple Swing Client

      Swing Client User Interface

      Swing Client Code

    Summary

4. Net.

    Net Overview

    FTP Functionality

    FTP Implementation

    NNTP Functionality

    NNTP Implementation

    Summary

5. Pool.

    Interfaces and Implementation

    Thread Pool Example

    Object Factory Example

    Worker Thread

    Summary

6. DBCP (Database Connection Pool).

    Standalone DataSources

      Client Connectivity

      Building the DataSource

    Legacy JDBC Driver

    Summary

7. BeanUtils.

    Understanding Beanutils

    Using Beanutils to Generate Forms

      Sample JavaBeans

      Presenting the Form

      FormBean

      FormBeanUtils

    Summary

8. JXPath.

    Setting up the Example Object Graph

    Exploring the Hierarchy

    XPath and JXPath Syntax

      Basic XPath

      Complex XPath

      JXPath Extensions

    Supported Data Types

    Summary

9. Logging.

    Trace Levels

    Using Logging

    Logging Output

    Summary

10. Lang.

    Base Lang Classes

      ArrayUtils

      BitField

      BooleanUtils

      CharRange, CharSet, and CharSetUtils

      ClassUtils

      ObjectUtils and ObjectUtils.Null

      RandomStringUtils

      SerializationUtils

      StringEscapeUtils

      StringUtils

      SystemUtils

      Validate

      WordUtils

    Builder

    Enum

    Exception

    Math

    Time

    Summary

11. Collections.

    Collections Concepts

      Bag

      Bean

      BidiMap

      Blocking

      Bounded

      Buffer

      Circular

      Closure

      Collating

      Comparator

      Composite

      Cursorable

      Factory

      Fast

      Fifo

      FixedSize

      Flat3

      Functor

      Hash

      Identity

      Lazy

      Linked

      List

      LRU

      Map

      Multi

      NodeCaching

      ObjectGraph

      Ordered

      Predicate

      Reference

      Set

      Singleton

      StaticBucket

      Synchronized

      Transformed/Transformer

      Typed

      Unmodifiable

    Summary

12. Codec.

    Character Encodings

    Base64 Encoding

    URL Form Encoding

    Hash Generation

    Phonetic Analysis

    Summary

13. CLI (Command-line Interface).

    ClassPathTool Overview

    Building a Command-Line Interface

    Running Command Line

    Behind the Scenes with ClassPathTool

    Summary

14. Other Projects.

    Additional Commons Proper Projects

      Betwixt

    Chain

    Configuration

    Daemon

    DbUtils

    Digester

    Discovery

    EL

    IO

    Jelly

      Jexl

      Latka

      Launcher

      Math

      Modeler

      Primitives

      Validator

    Sandbox Projects

      Attributes

      Cache

      Clazz

      Compress

      Convert

      Email

      Events

      FeedParser

      Functor

      Id

      JJar

      Mapper

      Messenger

      Resources

      Scaffold

      SQL

      ThreadPool

      Transaction

      VFS

      Workflow

    Summary

A. Lang Reference.

B. Apache License, Version 2.0.

Index.