info.magnolia.imaging.parameters
Class ContentParameterProviderFactory

java.lang.Object
  extended by info.magnolia.imaging.parameters.AbstractWorkspaceAndPathParameterProviderFactory<info.magnolia.cms.core.Content>
      extended by info.magnolia.imaging.parameters.ContentParameterProviderFactory
All Implemented Interfaces:
ParameterProviderFactory<javax.servlet.http.HttpServletRequest,info.magnolia.cms.core.Content>

public class ContentParameterProviderFactory
extends AbstractWorkspaceAndPathParameterProviderFactory<info.magnolia.cms.core.Content>

This is a ParameterProviderFactory which determines the workspace and node to use based on the request uri. (the using HttpServletRequest.getPathInfo(), to be accurate) It assumes that the first path element is the name of the ImageGenerator in use; that the second is the name of the workspace where the node we want is, and that the rest is the path to the node in question.

Version:
$Id$

Constructor Summary
ContentParameterProviderFactory()
           
 
Method Summary
 CachingStrategy<info.magnolia.cms.core.Content> getCachingStrategy()
           
protected  ParameterProvider<info.magnolia.cms.core.Content> newParameterProviderForPath(info.magnolia.cms.core.HierarchyManager hm, String path)
           
 
Methods inherited from class info.magnolia.imaging.parameters.AbstractWorkspaceAndPathParameterProviderFactory
newParameterProviderFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentParameterProviderFactory

public ContentParameterProviderFactory()
Method Detail

newParameterProviderForPath

protected ParameterProvider<info.magnolia.cms.core.Content> newParameterProviderForPath(info.magnolia.cms.core.HierarchyManager hm,
                                                                                        String path)
                                                                                 throws javax.jcr.RepositoryException
Specified by:
newParameterProviderForPath in class AbstractWorkspaceAndPathParameterProviderFactory<info.magnolia.cms.core.Content>
Throws:
javax.jcr.RepositoryException

getCachingStrategy

public CachingStrategy<info.magnolia.cms.core.Content> getCachingStrategy()


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.