Package org.sitemesh.webapp.contentfilter

Provides a mechanism for intercepting content generated by web-apps and making modifications to it.

See:
          Description

Interface Summary
Selector Rules that will be used by the ContentBufferingFilter and HttpServletResponseBuffer to determine whether the response should be buffered.
 

Class Summary
BasicSelector Basic implementation of Selector.
ContainerTweaks Provides details of Servlet container tweaks to apply - necessary because containers behave subtly different.
ContainerTweaks.TomcatTweaks Container tweaks specific to Tomcat.
ContainerTweaks.WebLogicTweaks Container tweaks specific to WebLogic.
ContentBufferingFilter Abstract Filter implementation that writes the main content of a response to a temporary buffer where it can then be post-processed before being served.
HttpServletRequestFilterable This special HttpServletRequestWrapper is used to allow filtering of the HTTP headers by adding them to an exclusion list.
HttpServletResponseBuffer Wraps an HttpServletResponse, allowing the output to be buffered.
ResponseMetaData Holds additional information about the response.
 

Package org.sitemesh.webapp.contentfilter Description

Provides a mechanism for intercepting content generated by web-apps and making modifications to it.

There are 2 mechanisms for doing this:

  1. HttpServletResponseBuffer wraps a HttpServletResponse and to forwards all content written to the response to an intermediate buffer which can be accessed. This can be passed to anything that accepts a standard HttpServlerResponse (such as a RequestDispatcher).
  2. ContentBufferingFilter is a Servlet Filter that automatically applies the HttpServletResponseBuffer to requests. To use it, subclass it and implement application specific functionality.

Both of these are suitable for working with text content, but not binary content.



Copyright © 2011. All Rights Reserved.