Package org.apache.cocoon.components.source

Examples of org.apache.cocoon.components.source.InspectableSource


            if (source instanceof RestrictableSource)
                ((RestrictableSource)source).setSourceCredential(new SourceCredential(principal, password));

            if (source instanceof InspectableSource) {
                InspectableSource inspectablesource = (InspectableSource)source;

                SourceProperty property = new SourceProperty(namespace, name, value);

                inspectablesource.setSourceProperty(property);
            } else
                throw new ProcessingException("Source isn't inspectable");
        } catch (SourceException se) {
            if (getLogger().isDebugEnabled())
                getLogger().debug("Exception occurs while modifying the source", se);
View Full Code Here


            if (source instanceof RestrictableSource)
                ((RestrictableSource)source).setSourceCredential(new SourceCredential(principal, password));

            if (source instanceof InspectableSource) {
                InspectableSource inspectablesource = (InspectableSource)source;

                inspectablesource.removeSourceProperty(namespace, name);
            } else
                throw new ProcessingException("Source isn't inspectable");
        } catch (SourceException se) {
            if (getLogger().isDebugEnabled())
                getLogger().debug("Exception occurs while modifying the source", se);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.source.InspectableSource

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.