CS 1705 Library

Package cs1705.weblog

This package provides all of the course-specific classes based on the web log analyzer example from Chapter 4 of Objects First with Java by Michael Kolling and David Barnes.

See:
          Description

Interface Summary
LogAnalyzer An interface for a web server log analyzer that processes web log data analyses hourly and weekly access patterns.
 

Class Summary
LogEntry Store the data from a single line of a web-server log file.
LogReader A class to read information from a file of web server accesses.
LogScanner A class to scan information from a web server access log.
 

Package cs1705.weblog Description

This package provides all of the course-specific classes based on the web log analyzer example from Chapter 4 of Objects First with Java by Michael Kolling and David Barnes. These classes support program assignments where students write their own web log analysis programs, using real Apache log data from a live server (in this case, typically from our departmental server).

The primary differences between the classes in this package and those discussed in the B&K text are:

  1. The LogEntry class provides access to time information using the java.util.Calendar class, and that it also provides other information about each log entry (the URL being requested, the result code sent back to the requester, the browser being used, and so on).

  2. The LogReader class, which corresponds to the B&K LogfileReader class, is designed to work on a BufferedReader input stream.


Last updated: Wed, Apr 1, 2009 • 12:29 AM EDT

Copyright © 2009 Virginia Tech.