ATG Programming Guide

DynamoHttpServletResponse

The DynamoHttpServletResponse is a wrapper around HttpServletResponse that adds a few useful methods:

getHeader

Returns a Dictionary of all the headers that were set so far in the response.

setOutputStream

Sets the ServletOutputStream that subsequent servlets use to write their responses. You can use this to intercept the outgoing data and process it in some way, before sending it to the original output stream. For example, a caching element might set the output stream to send data both to a cache and to the browser.

isRequestComplete

Returns true if a complete response is already sent. This is typically only true if a redirect or error has been sent through this response.

getStatus

Returns the status code sent through this response object. If no status code has been set explicitly, SC_STATUS_OK is returned.