Package org.apache.jetspeed.headerresource

Examples of org.apache.jetspeed.headerresource.HeaderResourceFactory


        paths.add("portlet/{mediaType}/jetspeed");
        paths.add("portlet/{mediaType}");
        paths.add("generic/{mediaType}");
        paths.add("/{mediaType}");
       
        HeaderResourceFactory headerFactory = new HeaderResourceFactoryImpl();
        ContentServerAdapter contentServer = new ContentServerAdapterImpl(headerFactory, paths);
       
        pageAggregator = new PageAggregatorImpl(renderer, contentServer);
        portletAggregator = new PortletAggregatorImpl(renderer);
       
View Full Code Here


    }
   
    private void addStyle(RequestContext context, String decoratorName, String decoratorType)
    {
        log.debug("addStyle: decoratorName=" + decoratorName + ", decoratorType=" + decoratorType );
        HeaderResourceFactory headerResourceFactory=(HeaderResourceFactory)Jetspeed.getComponentManager().getComponent(HeaderResourceFactory.class);
        HeaderResource headerResource=headerResourceFactory.getHeaderResouce(context);
       
        if(decoratorType.equals(Fragment.LAYOUT))
        {
            headerResource.addStyleSheet("content/css/styles.css");
        }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.headerresource.HeaderResourceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.