org.riotfamily.riot.resource
Class JoiningResourceController

java.lang.Object
  extended by org.riotfamily.cachius.spring.AbstractCacheableController
      extended by org.riotfamily.riot.resource.AbstractResourceController
          extended by org.riotfamily.riot.resource.JoiningResourceController
All Implemented Interfaces:
CacheableController, Compressible, BeanNameAware, Controller, LastModified

public class JoiningResourceController
extends AbstractResourceController

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
 
Fields inherited from interface org.riotfamily.cachius.spring.CacheableController
CACHE_ETERNALLY
 
Constructor Summary
JoiningResourceController()
           
 
Method Summary
protected  long getLastModified(String path)
           
 boolean gzipResponse(HttpServletRequest request)
          Returns whether the response should be gzipped.
protected  boolean serveResource(String path, HttpServletRequest request, HttpServletResponse response)
           
 void setCompressor(Compressor compressor)
           
 void setContentType(String contentType)
           
 
Methods inherited from class org.riotfamily.riot.resource.AbstractResourceController
contentTypeShouldBeZipped, getCacheKeyInternal, getContentType, getLastModified, getReader, getResourcePath, getTimeToLive, handleRequest, lookupResource, serveBinary, serveText, setCheckForModifications, setFileTypeMap, setFilters, setMappings, setPathAttribute, setPathParameter
 
Methods inherited from class org.riotfamily.cachius.spring.AbstractCacheableController
appendCacheKey, bypassCache, getBeanName, getCacheKey, setAddUriToCacheKey, setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoiningResourceController

public JoiningResourceController()
Method Detail

setCompressor

public void setCompressor(Compressor compressor)

setContentType

public void setContentType(String contentType)

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
Overrides:
gzipResponse in class AbstractResourceController

getLastModified

protected long getLastModified(String path)
Overrides:
getLastModified in class AbstractResourceController

serveResource

protected boolean serveResource(String path,
                                HttpServletRequest request,
                                HttpServletResponse response)
                         throws IOException
Overrides:
serveResource in class AbstractResourceController
Throws:
IOException