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 javax.servlet.ServletConfig; 23 24 import org.apache.pluto.portalImpl.aggregation.navigation.Navigation; 25 import org.apache.pluto.portalImpl.core.PortalURL; 26 27 public class RootFragment extends AbstractFragmentContainer 28 { 29 30 31 public RootFragment(ServletConfig config) 32 throws Exception 33 { 34 super(null, 35 config, 36 null, 37 null, 38 new Navigation(null, 39 null) ); 40 getNavigation().setLinkedFragment(this); 41 } 42 43 public void createURL(PortalURL url) 44 { 45 // do nothing 46 // we assume that the given url points already to the base portal servlet 47 } 48 49 public boolean isPartOfURL(PortalURL url) 50 { 51 return true; 52 } 53 54 }