Package org.apache.cocoon

Examples of org.apache.cocoon.ProcessingException


        varConf.addVariable("src", src);
        varConf.addVariables(parameters);
        try {
            this.conf = varConf.getConfiguration();
        } catch (ConfigurationException ce) {
            throw new ProcessingException("Couldn't create dynamic config ", ce);
        }
    }
View Full Code Here


    throws ProcessingException {
        if (this.sessionManager == null) {
            try {
                this.sessionManager = (SessionManager)this.manager.lookup(SessionManager.ROLE);
            } catch (ComponentException ce) {
                throw new ProcessingException("Error during lookup of SessionManager component.", ce);
            }
        }
        return this.sessionManager;
    }
View Full Code Here

    /**
     * Get the XML from the response object
     */
    public DocumentFragment getXML(String path)
    throws ProcessingException {
        throw new ProcessingException("ResponseSessionContext: Getting of xml not allowed.");
    }
View Full Code Here

    }

    public void setXML(String path, DocumentFragment fragment)
    throws ProcessingException {
        if (this.response == null) {
            throw new ProcessingException("Response Object missing");
        }
        if (path != null) {
            if (path.startsWith("/header/") == true) {
                String name = path.substring(8);
                this.response.setHeader(name, DOMUtil.createText(fragment));
            } else if (path.equals("/cookie") == true) {
                this.response.addCookie(this.createCookie(DOMUtil.createParameters(fragment, null)));
            } else {
                throw new ProcessingException("Invalid response path '"+path+"'");
            }
        }
    }
View Full Code Here

     * method is context specific.
     */
    public void appendXML(String path, DocumentFragment fragment)
    throws ProcessingException {
        if (this.response == null) {
            throw new ProcessingException("Response Object missing");
        }
        if (path != null) {
            if (path.startsWith("/header/") == true) {
                String name = path.substring(8);
                this.response.addHeader(name, DOMUtil.createText(fragment));
            } else if (path.equals("/cookie") == true) {
                this.response.addCookie(this.createCookie(DOMUtil.createParameters(fragment, null)));
            } else {
                throw new ProcessingException("Invalid response path '"+path+"'");
            }
        }

    }
View Full Code Here

    }

    public void removeXML(String path)
    throws ProcessingException {
        throw new ProcessingException("ResponseSessionContext: Removing of xml not allowed");
    }
View Full Code Here

    /**
     * Set a context attribute.
     */
    public void setAttribute(String key, Object value)
    throws ProcessingException {
        throw new ProcessingException("ResponseSessionContext: Setting of attributes not allowed");
    }
View Full Code Here

    /**
     * Get a context attribute.
     */
    public Object getAttribute(String key)
    throws ProcessingException {
        throw new ProcessingException("ResponseSessionContext: Getting of attributes not allowed");
    }
View Full Code Here

    /**
     * Get a context attribute.
     */
    public Object getAttribute(String key, Object defaultObject)
    throws ProcessingException {
        throw new ProcessingException("ResponseSessionContext: Getting of attributes not allowed");
    }
View Full Code Here

    /**
     * Get a copy the first node specified by the path.
     */
    public Node getSingleNode(String path)
    throws ProcessingException {
        throw new ProcessingException("ResponseSessionContext: Getting of xml not allowed");
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.ProcessingException

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.