In this section

Site navigation below

The Code Style site has evolved by gradual refinement and accumulation of features and content. This review is part of a fully backdated site log and archive that sheds light on when, why and how particular features were implemented.

This log is sometimes updated several times per week, sometimes with a long overdue backlog of items. Many log entries refer to the Code Style Java package that delivers the servlet services and utilities used to manage this site.

Subscribe to the news feed for this log: RSS news feed

Reverse chronology

28th December 2004

Added a setRequestedSessionIdValid method to the AbstractMockHttpServletRequest class to simulate invalidated sessions and adapted the servlet API method isRequestedSessionIdValid as necessary. Added test cases to the JUnit suite for the class.

20th December 2004

Reversed the class hierarchy so that LimitedInputStream is now a subclass of MeasuredInputStream, which better follows common sense. The former arrangement, where MeasuredInputStream was a practically unlimited LimitedInputStream, was purely a legacy. Required a modification of AbstractIORequest to take a LimitedInputStream as its primary source type.

19th December 2004

Updated the ResultProxy class to complete reporting via the new SourceBroker getLength method and ResultLog setBytesRequested. Removed the overloaded getCacheValue method without ResultLog parameter; now a log is created and returned whether it is used or not.

Added unit tests for the new SourceBroker getLength implementations in all concrete classes. Removed the openOutputStream method from the StreamBroker interface, since it is unused and was causing unnecessary problems in testing FileBroker.

18th December 2004

Simplified the skip, mark and reset methods of LimitedInputStream to avoid inconsistencies with the BufferedInputStream implementation. These methods are disabled and markSupported returns false, since they are not required and were causing unnecessary complications in testing. This allowed the completion of the MeasuredInputStream class, with a limit of Integer.MAX_VALUE bytes, which will be more than enough for general purposes.

Added a getLength method to the SourceBroker interface to report the number of bytes transferred from the primary source. Applied the new specification to all implementations and their underlying requestor classes:

This modification required a change to the primary input stream field in the AbstractIORequest class to a LimitedInputStream type, and relevant assignments in subclasses FileRequest, HttpRequest and UntrustedHttpRequest.

12th December 2004

Updated the skip and available methods of MockInputStream to respond according to the "unlimited" mode with a random byte generator, or underlying ByteArrayInputStream as appropriate.

4th December 2004

Added answers to a range of FAQ pages:

Apache Tomcat

DOM menu customisation

Java servlet "how to"

Java servlets

Javascript

Javascript "how to"

Site manager

Previously on Code Style

These backdated pages record detailed changes to the Code Style Web site since July 2000, when development first got underway. Some pages may refer to documents or features that have since changed or are no longer part of the site, but the archive is checked to ensure there are no dead links.

Add this page to your chosen social bookmarking service

Style warning - please read

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