Examples of toSAX()


Examples of org.apache.cocoon.environment.Source.toSAX()

       
                    if (conf == null)
                    conf = new ConfigurationHelper();
       
                    SAXConfigurationHandler builder = new SAXConfigurationHandler();
                    source.toSAX(builder);
       
                    conf.lastModified = source.getLastModified();
                    conf.configuration = builder.getConfiguration();
       
                    XSPFormValidatorHelper.cacheConfiguration(descriptor, conf);
View Full Code Here

Examples of org.apache.cocoon.environment.Source.toSAX()

            org.apache.cocoon.serialization.LinkSerializer ls =
                new org.apache.cocoon.serialization.LinkSerializer();
            ls.setOutputStream(this.stream);
            try {
                final Source redirectSource = this.resolve(newURL);
                redirectSource.toSAX(ls);
            } catch (SAXException se) {
                throw new IOException("SAXException: " + se);
            } catch (ProcessingException pe) {
                throw new IOException("ProcessingException: " + pe);
            }
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.adapter.CopletAdapter.toSAX()

        CopletAdapter copletAdapter = null;
        ServiceSelector adapterSelector = null;
        try {
            adapterSelector = (ServiceSelector) this.manager.lookup(CopletAdapter.ROLE + "Selector");
            copletAdapter = (CopletAdapter) adapterSelector.select(adapterName);
            copletAdapter.toSAX(cid, new IncludeXMLConsumer(handler));
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup component.", ce);
        } finally {
            if (null != copletAdapter) {
                adapterSelector.release(copletAdapter);
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.adapter.CopletAdapter.toSAX()

        CopletAdapter copletAdapter = null;
        ServiceSelector adapterSelector = null;
        try {
            adapterSelector = (ServiceSelector) this.manager.lookup(CopletAdapter.ROLE + "Selector");
            copletAdapter = (CopletAdapter) adapterSelector.select(adapterName);
            copletAdapter.toSAX(cid, new IncludeXMLConsumer(handler));
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup component.", ce);
        } finally {
            if (null != copletAdapter) {
                adapterSelector.release(copletAdapter);
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.adapter.CopletAdapter.toSAX()

        CopletAdapter copletAdapter = null;
        try {
            copletAdapterSelector = (ServiceSelector)this.manager.lookup(CopletAdapter.ROLE+"Selector");
            copletAdapter = (CopletAdapter)copletAdapterSelector.select(this.copletControllerName);
           
            copletAdapter.toSAX(this.copletInstanceData, handler);
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup coplet adaptor or adaptor selector.", ce);
        } finally {
            if ( null != copletAdapter ) {
                 copletAdapterSelector.release( copletAdapter );
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.adapter.CopletAdapter.toSAX()

        CopletAdapter copletAdapter = null;
        try {
            copletAdapterSelector = (ComponentSelector)this.componentManager.lookup(CopletAdapter.ROLE+"Selector");
            copletAdapter = (CopletAdapter)copletAdapterSelector.select(this.copletControllerName);
           
            copletAdapter.toSAX(this.copletInstanceData, handler);
        } catch (ComponentException ce) {
            throw new SAXException("Unable to lookup coplet adaptor or adaptor selector.", ce);
        } finally {
            if ( null != copletAdapter ) {
                 copletAdapterSelector.release( copletAdapter );
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.adapter.CopletAdapter.toSAX()

        CopletAdapter copletAdapter = null;
        try {
            copletAdapterSelector = (ServiceSelector)this.manager.lookup(CopletAdapter.ROLE+"Selector");
            copletAdapter = (CopletAdapter)copletAdapterSelector.select(this.copletControllerName);
           
            copletAdapter.toSAX(this.copletInstanceData, handler);
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup coplet adaptor or adaptor selector.", ce);
        } finally {
            if ( null != copletAdapter ) {
                 copletAdapterSelector.release( copletAdapter );
View Full Code Here

Examples of org.apache.cocoon.portal.layout.renderer.Renderer.toSAX()

            }

            Renderer portalLayoutRenderer = service.getComponentManager().getRenderer( portalLayout.getRendererName());      

            contentHandler.startDocument();
            portalLayoutRenderer.toSAX(portalLayout, service, contentHandler);
            contentHandler.endDocument();
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup portal service.", ce);
        } catch (Exception e) {
            getLogger().error("Caught exception", e);
View Full Code Here

Examples of org.apache.cocoon.portal.layout.renderer.Renderer.toSAX()

     */
    protected void processLayout(Layout layout, PortalService service, ContentHandler handler) throws SAXException {
        if ( layout != null ) {
            final String rendererName = layout.getRendererName();
            final Renderer renderer = service.getComponentManager().getRenderer(rendererName);
            renderer.toSAX(layout, service, handler);
        }
    }

}
View Full Code Here

Examples of org.apache.cocoon.portal.layout.renderer.Renderer.toSAX()

            Layout portalLayout = service.getComponentManager().getProfileManager().getPortalLayout(null, null);

            Renderer portalLayoutRenderer = service.getComponentManager().getRenderer( portalLayout.getRendererName());      

            contentHandler.startDocument();
            portalLayoutRenderer.toSAX(portalLayout, service, contentHandler);
            contentHandler.endDocument();
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup portal service.", ce);
        } finally {
            this.manager.release(service);
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.