1 16 19 20 package org.apache.pluto.portalImpl.aggregation; 21 22 import java.io.IOException ; 23 import java.util.ArrayList ; 24 import java.util.Collection ; 25 26 import javax.servlet.ServletConfig ; 27 import javax.servlet.ServletException ; 28 import javax.servlet.http.HttpServletRequest ; 29 import javax.servlet.http.HttpServletResponse ; 30 31 import org.apache.pluto.portalImpl.core.PortalURL; 32 33 public abstract class AbstractFragmentContainer extends AbstractFragment 34 { 35 36 private ArrayList children = new ArrayList (); 37 38 public AbstractFragmentContainer(String id, 39 ServletConfig config, 40 org.apache.pluto.portalImpl.aggregation.Fragment parent, 41 org.apache.pluto.portalImpl.om.page.Fragment fragDesc, 42 org.apache.pluto.portalImpl.aggregation.navigation.Navigation navigation) 43 throws Exception 44 { 45 super(id, config, parent, fragDesc, navigation); 46 } 47 48 public void preService(HttpServletRequest request, HttpServletResponse response) 49 throws ServletException , IOException 50 { 51 } 52 53 public void postService(HttpServletRequest request, HttpServletResponse response) 54 throws ServletException , IOException 55 { 56 } 57 58 public Collection getChildFragments() 59 { 60 return children; 61 } 62 63 public void addChild(org.apache.pluto.portalImpl.aggregation.Fragment child) 64 { 65 children.add(child); 66 } 67 68 abstract public void createURL(PortalURL url); 69 70 abstract public boolean isPartOfURL(PortalURL url); 71 72 } 73 | Popular Tags |