The DynamoHttpServletResponse
is a wrapper around HttpServletResponse
that adds a few useful methods:
getHeaders
Returns aDictionary
of all the headers that have been set so far in the response.
setOutputStream
Sets theServletOutputStream
that subsequent servlets will 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 we know that a complete response has already been 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.