KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > portalImpl > aggregation > AbstractFragmentContainer


1 /*
2  * Copyright 2003,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17
18  */

19
20 package org.apache.pluto.portalImpl.aggregation;
21
22 import java.io.IOException JavaDoc;
23 import java.util.ArrayList JavaDoc;
24 import java.util.Collection JavaDoc;
25
26 import javax.servlet.ServletConfig JavaDoc;
27 import javax.servlet.ServletException JavaDoc;
28 import javax.servlet.http.HttpServletRequest JavaDoc;
29 import javax.servlet.http.HttpServletResponse JavaDoc;
30
31 import org.apache.pluto.portalImpl.core.PortalURL;
32
33 public abstract class AbstractFragmentContainer extends AbstractFragment
34 {
35
36     private ArrayList JavaDoc children = new ArrayList JavaDoc();
37
38     public AbstractFragmentContainer(String JavaDoc id,
39                                      ServletConfig JavaDoc 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 JavaDoc
44     {
45         super(id, config, parent, fragDesc, navigation);
46     }
47
48     public void preService(HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response)
49         throws ServletException JavaDoc, IOException JavaDoc
50     {
51     }
52
53     public void postService(HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response)
54         throws ServletException JavaDoc, IOException JavaDoc
55     {
56     }
57
58     public Collection JavaDoc 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