Response Wrapper to provide access to the content length and status.
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 211 $
Adds the specified cookie to the response. This method can be called multiple times to set more than one cookie.
Parameters: cookie - the cookie to return to the client
Returns the modified-at date for a http response with
the given time.
This function uses the HTTP standard time format ("Sat, 07 Apr 2001 00:58:08 GMT")
Parameters: date - the date to use the modified-at date with the current time
Returns a boolean indicating whether the named response header has already been set.
Parameters: s - the header name a boolean indicating whether the named response header has already been set
Force the browser to disable its cache.
Ths functions sets the expires, cache control and pragma="no cache" headers
enableBrowserCache
public void enableBrowserCache(CacheControl ct, Integer maxAge, boolean mustRevalidate)(Code)
Enables the browser cache.
Parameters: ct - the type, CacheControl.PUBLIC or CacheControl.PRIVATE Parameters: maxAge - in seconds, use null if you dont want this to be set - specifies the maximum amount oftime that an object will be considered fresh.Similar to Expires, this directive allows more flexibility.[seconds] is the number of seconds from the time of the request you wish the object to be fresh for. Parameters: mustRevalidate - tells caches that they must obey any freshness information you give them about an object.The HTTP allows caches to take liberties with the freshness of objects; by specifying this header, you'retelling the cache that you want it to strictly follow your rules.
Returns the data sent to the client.
The option catchContent has to be set to true in the constructor, or a empty byte array is returned.
the data sent to the client.
Writes the cached data to the underlying response, or the given string if the
override parameter is set.
This function may only be called if ClientWriteThrough was not set to true
at creation time.
Parameters: override - overrides the data if set throws: IOException - if an io exception occured throws: FxApplicationException - if an exception occured
Methods inherited from javax.servlet.http.HttpServletResponseWrapper