org.riotfamily.website.txt2img
Class ButtonStylesheetController
java.lang.Object
org.riotfamily.website.txt2img.ButtonStylesheetController
- All Implemented Interfaces:
- CacheableController, Compressible, Controller
public class ButtonStylesheetController
- extends Object
- implements CacheableController, Compressible
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonStylesheetController
public ButtonStylesheetController(ButtonService buttonService)
gzipResponse
public boolean gzipResponse(HttpServletRequest request)
- Description copied from interface:
Compressible
- Returns whether the response should be gzipped. Implementors will
usually return
true
, unless they serve multiple content
types which and not all of them are eligible for compression. They
don't have to check whether the client supports gzip
compression as all compatibility checks are done by Cachius
internally
.
- Specified by:
gzipResponse
in interface Compressible
getCacheKey
public String getCacheKey(HttpServletRequest request)
- Description copied from interface:
CacheableController
- Returns the key that is used to look up a previously cached version.
The key must include all values that govern the output, such as the
requested URL, parameters, attributes, cookie values or the name of the
controller. The key itself is not interpreted in any way and thus can
have an arbitrary format.
- Specified by:
getCacheKey
in interface CacheableController
getTimeToLive
public long getTimeToLive()
- Description copied from interface:
CacheableController
- Returns the time in milliseconds that has to be elapsed since the last
up-to-date check before another check is performed. Implementors may
return
CacheableController.CACHE_ETERNALLY
to indicate that the content should be
cached eternally.
- Specified by:
getTimeToLive
in interface CacheableController
getLastModified
public long getLastModified(HttpServletRequest request)
throws Exception
- Description copied from interface:
CacheableController
- Returns the date (as timestamp) when the content was modified for the
last time. The controller will not be executed unless this date is newer
than the timestamp of the cached version.
- Specified by:
getLastModified
in interface CacheableController
- Throws:
Exception
handleRequest
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws Exception
- Specified by:
handleRequest
in interface Controller
- Throws:
Exception