public static ProcessParameterIO find(Parameter<?> p, ApplicationContext context, String mime) { // enum special treatment if (p.type.isEnum()) { return new EnumPPIO(p.type); } // TODO: come up with some way to flag one as "default" List<ProcessParameterIO> all = findAll(p, context); if (all.isEmpty()) { return null; } if (mime != null) { for (ProcessParameterIO ppio : all) { if (ppio instanceof ComplexPPIO && ((ComplexPPIO) ppio).getMimeType().equals(mime)) { return ppio; } } } // fall back on the first found return all.get(0); }
if (ppio instanceof ComplexPPIO && ((ComplexPPIO) ppio).getMimeType().equals(mime)) { return ppio;
&& ((ComplexPPIO) ppio).getMimeType().equals(mime)) { return ppio;
kvp.put("executionId", executionId); kvp.put("outputId", file.getName()); kvp.put("mimetype", cppio.getMimeType()); outputReference.setHref(ResponseUtils.buildURL(request.getBaseUrl(), "ows", kvp, URLType.SERVICE)); outputReference.setMimeType(cppio.getMimeType()); } else { complex.setMimeType(cppio.getMimeType());
refInput, complexPPIO.getMimeType())); } else { throw new WPSException( post.setRequestEntity( new StringRequestEntity( (String) body, complexPPIO.getMimeType(), encoding)); } else { throw new WPSException(
.getMimeType())); } else { throw new WPSException("A POST request should contain a non empty body"); .getMimeType(), encoding)); } else { throw new WPSException(
format.setMimeType(cppio.getMimeType()); if (cppio instanceof BinaryPPIO) { format.setEncoding("base64");
format.setMimeType( cppio.getMimeType() );
format.setMimeType( cppio.getMimeType() );
format.setMimeType(cppio.getMimeType());
mime = rawData.getMimeType(); } else { mime = cppio.getMimeType(); complex.setMimeType(cppio.getMimeType());