Package org.apache.cocoon.pipeline

Examples of org.apache.cocoon.pipeline.SetupException


    @Override
    public void setOutputStream(OutputStream outputStream) {
        try {
            super.setOutputStream(outputStream);
        } catch (IOException e) {
            throw new SetupException(e);
        }
    }
View Full Code Here


    @Override
    public void setConfiguration(Map<String, ? extends Object> configuration) {
        try {
            this.service = new URL((String) configuration.get("service"));
        } catch (MalformedURLException e) {
            throw new SetupException(("Can't create an URL for " + configuration.get("service") + "."), e);
        }
    }
View Full Code Here

        try {
            cacheKey.addCacheKey(new TimestampCacheKey(this.source, this.source.openConnection().getLastModified()));
            cacheKey.addCacheKey(new ParameterCacheKey("contextParameters", this.parameters));
        } catch (IOException e) {
            throw new SetupException(e);
        }

        return cacheKey;
    }
View Full Code Here

        try {
            cacheKey.addCacheKey(new TimestampCacheKey(this.source, this.source.openConnection().getLastModified()));
            cacheKey.addCacheKey(new ParameterCacheKey("contextParameters", this.parameters));
        } catch (IOException e) {
            throw new SetupException("Could not create cache key.", e);
        }

        return cacheKey;
    }
View Full Code Here

    public void setConfiguration(Map<String, ? extends Object> configuration) {
        try {
            this.encoding = ConfigurationUtils.getEncoding(configuration);
            this.setEncoding(this.encoding);
        } catch (UnsupportedEncodingException e) {
            throw new SetupException(e);
        }

        try {
            this.indent = ConfigurationUtils.getIndent(configuration);
            this.setIndentPerLevel(this.indent);
        } catch (NumberFormatException nfe) {
            throw new SetupException(nfe);
        }

    }
View Full Code Here

    @Override
    public void setOutputStream(OutputStream outputStream) {
        try {
            super.setOutputStream(outputStream);
        } catch (IOException e) {
            throw new SetupException(e);
        }
    }
View Full Code Here

            this(bytes, null);
        }

        public ByteArrayGenerator(byte[] bytes, String encoding) {
            if (bytes == null) {
                throw new SetupException("A byte array has to be passed.");
            }

            this.bytes = bytes;
            this.encoding = encoding;
        }
View Full Code Here

        private final File file;

        public FileGenerator(File file) {
            if (file == null) {
                throw new SetupException("A file has to be passed.");
            }

            this.file = file;
        }
View Full Code Here

        public InputStreamGenerator(InputStream inputStream) {
            super();

            if (inputStream == null) {
                throw new SetupException("An input stream has to be passed.");
            }

            this.inputStream = inputStream;
        }
View Full Code Here

        private final Node node;

        public NodeGenerator(Node document) {
            if (document == null) {
                throw new SetupException("A DOM document has to be passed.");
            }

            this.node = document;
        }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.pipeline.SetupException

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.