Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.maven.cactus.sample.util.* (2)

org.apache.maven.cactus.sample: Javadoc index of package org.apache.maven.cactus.sample.


Package Samples:

org.apache.maven.cactus.sample.util

Classes:

GenericResponseWrapper: Wrapper around a HttpServletResponse that we use to easily write filters that manipulate the output stream. Indeed, we cannot pass the output stream of our filter direectly to the next filter in the chain because then we won't be able to write to it (the response will have been committed). Instead, we pass this wrapper class and then copy its data to our filter output stream. Note: This code was adapted from the Filter tutorial found here
FilterServletOutputStream: Helper class to help write filters that manipulates the output stream. This is because normally, the ServletOutputStream cannot be modified after a resource has committed it. Note: This code was adapted from the Filter tutorial found here
SampleBodyTag: Sample tag that interacts with its body. The tag acts as a filter for its body. "Target" and "Replacement" Strings are defined by the tag's attributes and each "occurrence" of the target is replaced by the "replacement".
SampleFilter: Sample filter that implements some very simple business logic. The goal is to provide some functional tests for Cactus and examples for Cactus users. This filter simply adds a header and a footer to the returned HTML.
SampleServlet: Sample servlet that implements some very simple business logic. The goal is to provide some functional tests for Cactus and examples for Cactus users. This servlet simply checks is a user is authenticated
TestSampleServlet: Tests of the SampleServlet Servlet class.
TestSampleFilter: Tests of the SampleFilter filter class.
TestSampleBodyTag: Tests of the SampleBodyTag class.
TestHttpUnitIntegration: Test the HtppUnit integration.

Home | Contact Us | Privacy Policy | Terms of Service