Package org.sitemesh.webapp.contentfilter

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

See: Description

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 © 2015. All Rights Reserved.