Examples of PortletAppDescriptorService


Examples of org.apache.pluto.descriptors.services.PortletAppDescriptorService

        assertEquals( "Dispatcher servlet incorrect for test portlet [" + testPortletName + "]",  Assembler.DISPATCH_SERVLET_CLASS, servlet.getServletClass() );       
    }

    protected void verifyAssembly( File warFile ) throws Exception {
        WebAppDescriptorService webSvc = new WebAppDescriptorServiceImpl();
        PortletAppDescriptorService portletSvc = new PortletAppDescriptorServiceImpl();
        int entryCount = 0;
        ByteArrayOutputStream portletXmlBytes = new ByteArrayOutputStream();
        ByteArrayOutputStream webXmlBytes = new ByteArrayOutputStream();
        WebAppDD webApp = null;
        PortletAppDD portletApp = null;       
               
        JarInputStream assembledWarIn = new JarInputStream( new FileInputStream( warFile ) );
        JarEntry tempEntry;
       
        while ( ( tempEntry = assembledWarIn.getNextJarEntry() ) != null  ) {
            entryCount++;
           
            if ( Assembler.PORTLET_XML.equals( tempEntry.getName() ) ) {
                IOUtils.copy( assembledWarIn, portletXmlBytes );
                portletApp = portletSvc.read( new ByteArrayInputStream( portletXmlBytes.toByteArray() ) );
            }
            if ( Assembler.SERVLET_XML.equals( tempEntry.getName() ) ) {
                IOUtils.copy( assembledWarIn, webXmlBytes );
                webApp = webSvc.read( new ByteArrayInputStream( webXmlBytes.toByteArray() ) );
            }
View Full Code Here

Examples of org.apache.pluto.descriptors.services.PortletAppDescriptorService

     */
    private static Deploy createDeployer(CLIArgs args) {
        ArrayList registrars = new ArrayList();
        PortletApplicationExploder exploder = null;
        WebAppDescriptorService webAppDescriptorService = null;
        PortletAppDescriptorService portletAppDescriptorService = null;

        args.destinationDirectory.mkdirs();
        if(!args.portletApplication.isDirectory()) {
            exploder = new PortletApplicationExploder(args.destinationDirectory);
        }
View Full Code Here

Examples of org.apache.pluto.descriptors.services.PortletAppDescriptorService

        }
       
        WebAppDescriptorService descriptorSvc = new WebAppDescriptorServiceImpl();
        WebAppDD webAppDDIn = descriptorSvc.read(webXmlIn);

        PortletAppDescriptorService portletAppDescriptorService =
                new PortletAppDescriptorServiceImpl();
        PortletAppDD portletAppDD = portletAppDescriptorService.read(portletXmlIn);
        portletXmlIn.close();
       
        for (Iterator it = portletAppDD.getPortlets().iterator();
                it.hasNext(); ) {
           
View Full Code Here

Examples of org.apache.pluto.descriptors.services.PortletAppDescriptorService

                    Marshaller marshaller = new Marshaller(serializer.asDocumentHandler());
                    marshaller.setMapping(sdmXml);
                    marshaller.marshal(webApp);
                    */
                   
                    PortletAppDescriptorService portletAppDescriptorService = new StreamPortletAppDescriptorServiceImpl(appName, pis, null);
                    File tmpf = File.createTempFile("infoglue-web-xml", null);
                    WebAppDescriptorService webAppDescriptorService = new StreamWebAppDescriptorServiceImpl(appName, wis, new FileOutputStream(tmpf));
                   
                    org.apache.pluto.driver.deploy.Deploy d = new org.apache.pluto.driver.deploy.Deploy(webAppDescriptorService, portletAppDescriptorService);
                    d.updateDescriptors();
View Full Code Here

Examples of org.apache.pluto.descriptors.services.PortletAppDescriptorService

        }

        WebAppDescriptorService descriptorSvc = new WebAppDescriptorServiceImpl();
        WebAppDD webAppDDIn = descriptorSvc.read(webXmlIn);

        PortletAppDescriptorService portletAppDescriptorService =
                new PortletAppDescriptorServiceImpl();
        PortletAppDD portletAppDD = portletAppDescriptorService.read(portletXmlIn);
        portletXmlIn.close();

        for (Iterator it = portletAppDD.getPortlets().iterator();
                it.hasNext(); ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.