Package com.volantis.map.sti.converters

Examples of com.volantis.map.sti.converters.ConverterException


            marshallingContext.marshalDocument(request, null, null,
                    outputStream);

            marshallingContext.endDocument();
        } catch (JiBXException e) {
            throw new ConverterException(e);
        }

        // Parse the XML in byte array to W3C DOM Document
        ByteArrayInputStream inputStream = new ByteArrayInputStream(
                outputStream.toByteArray());
View Full Code Here


        // Retrieve location of the resource to transcode.
        String location = getParameterValue(ParameterNames.SOURCE_URL);

        if (location == null) {
            throw new ConverterException("missing-source-url", new Object[] {},
                    null);
        }

        transcodingJobSource.setLocation(location);
View Full Code Here

            return defaultValue;
        } else {
            try {
                return Integer.parseInt(parameterValue);
            } catch (NumberFormatException e) {
                throw new ConverterException(e);
            }
        }
    }
View Full Code Here

            transcodingResponse = (TranscodingResponse) unmarshallingContext
                    .unmarshalDocument(inputStream, null, null);

        } catch (TransformerException e) {
            // Caught in case of DOM to String transformation.
            throw new ConverterException(e);

        } catch (JiBXException e) {
            // Caught in case JiBX unmarshalling failed.
            throw new ConverterException(e);
        }

        return transcodingResponse;
    }
View Full Code Here

TOP

Related Classes of com.volantis.map.sti.converters.ConverterException

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.