FileDocCategorySizeDatePackage
DigestingListPlugin.javaAPI DocExample1125Wed Aug 25 22:45:30 BST 2004com.oreilly.strutsckbk.ch10

DigestingListPlugin

public class DigestingListPlugin extends org.apache.struts.plugins.DigestingPlugIn

Fields Summary
private static Log
log
Constructors Summary
public DigestingListPlugin()


      
    
Methods Summary
protected voidstoreGeneratedObject(java.lang.Object obj)

        if (!(obj instanceof List)) throw new IllegalArgumentException("Digested object must be a list but is:"+obj);
        List list = (List) obj;
        URL sourceUrl =  null;
        URL rulesUrl =  null;
        try {
            sourceUrl = getConfigURL(configPath, configSource);
            rulesUrl = getConfigURL(digesterPath, digesterSource);
            DigestedList digestedList = new DigestedList(list, sourceUrl, rulesUrl );
            servlet.getServletContext().setAttribute(key, digestedList);
        } catch (IOException e) {
            log.error("Unable to create URL.", e);
        }