CSS font stacks, developer FAQs & web standards

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

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.

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

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.

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

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.

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

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.

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

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.

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

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"

Web site manager

Actions: Ask a question about this post, 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