Package org.geoserver.wps.transmute

Examples of org.geoserver.wps.transmute.ComplexTransmuter


     */
    private Object decodeReferenceData(final String identifier, final InputReferenceType reference) {
        Object            data       = null;
        URL               url        = null;
        Parameter<?>      param      = this.inputParameters.get(identifier);
        ComplexTransmuter transmuter = (ComplexTransmuter)this.getDefaultTransmuter(param.type);

        try {
            url = new URL(reference.getHref());
        } catch(MalformedURLException e) {
            throw new WPSException("NoApplicableCode", "Malformed parameter URL.");
        }

        try {
            data = transmuter.decode(url.openStream());
        } catch(IOException e) {
            throw new WPSException("NoApplicableCode", "IOException.");
        }

        return data;
View Full Code Here


     */
    private Object decodeReferenceData(final String identifier, final InputReferenceType reference) {
        Object            data       = null;
        URL               url        = null;
        Parameter<?>      param      = this.inputParameters.get(identifier);
        ComplexTransmuter transmuter = (ComplexTransmuter)this.getDefaultTransmuter(param.type);

        try {
            url = new URL(reference.getHref());
        } catch(MalformedURLException e) {
            throw new WPSException("NoApplicableCode", "Malformed parameter URL.");
        }

        try {
            data = transmuter.decode(url.openStream());
        } catch(IOException e) {
            throw new WPSException("NoApplicableCode", "IOException.");
        }

        return data;
View Full Code Here

TOP

Related Classes of org.geoserver.wps.transmute.ComplexTransmuter

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.