String mimeType = output.getComplexOutput().getDefault().getFormat().getMimeType(); if(mimeType.contains("xml") || (mimeType.contains("XML"))){ return GTVectorDataBinding.class;
private void createDeserialized(ProcessDescriptionType pProcessDescription, ExecuteDocument pExecuteDocument, Map pSerializedData, Map pDeserializedData) throws ExceptionReport { for (OutputDescriptionType outputDescription : processDescription.getProcessOutputs().getOutputArray()) { String ouputId = outputDescription.getIdentifier().getStringValue(); if (outputDescription.getComplexOutput() != null) { Object data = createDeserializedComplexData(pProcessDescription, pExecuteDocument, outputDescription, pSerializedData); pDeserializedData.put(ouputId, data); } else if (outputDescription.getLiteralOutput() != null) { LOGGER.error("Deserialization of literal output data is not supported."); throw new ExceptionReport("Serialization of literal output data is not supported.", ExceptionReport.OPERATION_NOT_SUPPORTED); } else if (outputDescription.getBoundingBoxOutput() != null) { LOGGER.error("Deserialization of BBOX output data is not supported."); throw new ExceptionReport("Serialization of BBOX output data is not supported.", ExceptionReport.OPERATION_NOT_SUPPORTED); } } }
if (outputDescription.getComplexOutput() != null)
schema = pOutputDescription.getComplexOutput().getDefault().getFormat().getSchema(); mimeType = pOutputDescription.getComplexOutput().getDefault().getFormat().getMimeType(); encoding = pOutputDescription.getComplexOutput().getDefault().getFormat().getEncoding();
String defaultMimeType = outputType.getComplexOutput().getDefault().getFormat().getMimeType(); ComplexDataDescriptionType potenitalFormat = outputType.getComplexOutput().getDefault().getFormat(); if(schema != null && encoding == null){ if(schema.equalsIgnoreCase(potenitalFormat.getSchema())){ ComplexDataDescriptionType[] formats =outputType.getComplexOutput().getSupported().getFormatArray(); for(ComplexDataDescriptionType potenitalFormat : formats){ if(potenitalFormat.getMimeType().equalsIgnoreCase(mimeType)){ finalSchema = outputType.getComplexOutput().getDefault().getFormat().getSchema(); finalMimeType = outputType.getComplexOutput().getDefault().getFormat().getMimeType(); finalEncoding = outputType.getComplexOutput().getDefault().getFormat().getEncoding(); String defaultEncoding = outputType.getComplexOutput().getDefault().getFormat().getEncoding(); int found = 0; String foundEncoding = null; if(defaultEncoding.equalsIgnoreCase(encoding)){ foundEncoding = outputType.getComplexOutput().getDefault().getFormat().getEncoding(); encodingFormat = outputType.getComplexOutput().getDefault().getFormat(); found = found +1; }else{ ComplexDataDescriptionType[] formats = outputType.getComplexOutput().getSupported().getFormatArray(); for(ComplexDataDescriptionType tempFormat : formats){ if(tempFormat.getEncoding().equalsIgnoreCase(encoding)){ String defaultSchema = outputType.getComplexOutput().getDefault().getFormat().getSchema(); int found = 0; String foundSchema = null;
public String getDefaultMimeType(String paramID){ String mimeType = null; // check inputs for a match for (InputDescriptionType currentInput : processDescription.getDataInputs().getInputArray()){ if (currentInput.getIdentifier().getStringValue().equalsIgnoreCase(paramID)){ mimeType = currentInput.getComplexData().getDefault().getFormat().getMimeType(); } } for (OutputDescriptionType currentOutput : processDescription.getProcessOutputs().getOutputArray()){ if (currentOutput.getIdentifier().getStringValue().equalsIgnoreCase(paramID)){ mimeType = currentOutput.getComplexOutput().getDefault().getFormat().getMimeType(); } } return mimeType; }
schema = pOutputDescription.getComplexOutput().getDefault().getFormat().getSchema(); mimeType = pOutputDescription.getComplexOutput().getDefault().getFormat().getMimeType(); encoding = pOutputDescription.getComplexOutput().getDefault().getFormat().getEncoding();
String mimeType = wpsOut.getComplexOutput().getDefault().getFormat().getMimeType(); processor.addData(outputID, new MediaData(null, mimeType)); break;
mimeType = outputDesc.getComplexOutput().getDefault().getFormat().getMimeType(); encoding = outputDesc.getComplexOutput().getDefault().getFormat().getEncoding(); schema = outputDesc.getComplexOutput().getDefault().getFormat().getSchema();
String defaultEncoding = outputDesc.getComplexOutput().getDefault() .getFormat().getEncoding(); if (defaultEncoding == null) { } else { ComplexDataDescriptionType[] supportedFormats = outputDesc .getComplexOutput().getSupported().getFormatArray(); for (ComplexDataDescriptionType data : supportedFormats) { String e = data.getEncoding();
mimeType = currentDesc.getComplexOutput().getDefault().getFormat().getMimeType(); schema = currentDesc.getComplexOutput().getDefault().getFormat().getSchema();
String defaultMimeType = outputDesc.getComplexOutput().getDefault() .getFormat().getMimeType(); if (defaultMimeType == null) { } else { for (ComplexDataDescriptionType data : outputDesc .getComplexOutput().getSupported().getFormatArray()) { String m = data.getMimeType(); if (m != null && m.equals(mimeType)) {
outputDef.setIdentifier(outputDesc.getIdentifier()); String defaultSchema = outputDesc.getComplexOutput().getDefault() .getFormat().getSchema(); if ((defaultSchema != null && defaultSchema.equals(schema)) } else { for (ComplexDataDescriptionType data : outputDesc .getComplexOutput().getSupported().getFormatArray()) { if (data.getSchema() != null && data.getSchema().equals(schema)) { outputDef.setSchema(schema);
} else { if (outputDes.isSetComplexOutput()) { mimeType = outputDes.getComplexOutput() .getDefault().getFormat().getMimeType(); LOGGER.warn("Using default mime type: " mimeType = "text/xml"; } else if (outputDes.isSetComplexOutput()) { mimeType = outputDes.getComplexOutput().getDefault() .getFormat().getMimeType(); LOGGER.warn("Using default mime type: " + mimeType
String schema = d[i].getComplexOutput().getDefault().getFormat().getSchema(); String encoding = d[i].getComplexOutput().getDefault().getFormat().getEncoding(); String mimeType = d[i].getComplexOutput().getDefault().getFormat().getMimeType(); generateComplexDataOutput(d[i].getIdentifier().getStringValue(), false, false, schema, mimeType, encoding, d[i].getTitle());