Your banner ad here

In this section

Follow Code Style

Site navigation below

This page is part of a searchable archive of the Code Style site log. Technical implementation notes that shed light on when, why and how the site has evolved since 2000.

RSS news feed Follow the latest entries to the site log.

Reverse chronology

27th November 2004

Completed the first release version of the RSS user agent identifiers listing and added a site RSS guide as a subsection index. Adapted the CSWideImport.css stylesheet to allow extra-wide user agent strings to be displayed across the full screen width. Also improved layout of the navigation side bar and site search panel in wide format display, whose widths were not previously adjusted to this mode. Added the RSS feed listing to the "At a glance" box-out.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

24th November 2004

Incorporated all servlet 2.3 methods in the AbstractMockHttpSession class to simplify the creation of concrete types for different API versions.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

22th November 2004

Re-named and re-cast the former AbstractMockServletRequest and AbstractMockServletResponse to introduce new classes by these names, to emulate generic ServletRequest and ServletResponse types. Moved the generic servlet request and response methods to these new abstract classes and added servlet 2.3 methods to their abstract HTTP type subclasses. Also made the types (and API version) of the concrete classes explicit in their names:

The concrete types are little more than shells that extend the abstract bases, so that later API versions can be implemented with minimal extra code.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

20th November 2004

Changed the hashCode method in several classes to use the bitwise XOR operator, ^, and assignment operator, ^=, where the default equals method is overridden, in ResultKey, ResultValue and Client. Also simplified the equals method in the Parameters class to check null, check the instance type and compare hashCode values, rather than compare field by field.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

14th November 2004

Re-visited the recent AWT components to complete JavaDoc comments and remove magic numbers for FileSavePanel, TrimPanel, AppendPanel and LogManager.

Added Jetbot and amended NextGenSearchBot entries in the robots.txt exclusion policy.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

13th November 2004

Removed the setSessionId method from the AbstractMockServletRequest class and moved it to the concrete MockServlet20Request class. Made the HttpSession field protected for access in subclasses. Amended test cases to adapt to the new session assignment scheme.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

7th November 2004

Created a first draft Appender utility class for appending an array of files to an output stream. Also created a TextCopier class for manipulating copies between Reader and Writer interfaces. Includes a straight line-for-line copy, a trim copy that starts at a given string marker and ends at another; and filter and select copies that exclude and include lines with specified string tokens.

Re-factored elements from the LogManager application to create separate TrimPanel and AppendPanel components. TrimPanel has input and output file selectors, to trim the files using the TextCopier trim method. AppendPanel appends multiple input files to a single output file via the Appender class. Both panels are designed for use in a CardLayout.

Updated the FileSavePanel and FileSelectPanel components to a use a GridBagLayout. Added a MenuBar to the LogManager application to switch between append and trim function panels.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

1st November 2004

Added a failure counter to the Client class with incrementor and accessor methods. Removed redundant private default constructor and excluded the creation date from the hashCode and equals method comparisons. Completed coverage tests.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

Previously on Code Style

Find technical implementation notes on all aspects of the Code Style site.

Add this page to your chosen social bookmarking service

Style warning - please read

Home · CSS · Java · Javascript · HTML · Help · Log