PropertiesContentProvider extends AbstractJrxmlContentProvider { @Override public void inspectInputParametersFromJrxml( Map<String, ParameterDescription> parameterDescriptions, List<JAXBElement<? extends ProcessletInputDefinition>> inputs, XMLAdapter jrxmlAdapter, Map<String, String> parameters, List<String> handledParameters ) { if ( !containsLanguageInput( inputs ) ) { LiteralInputDefinition localeInput = getInputDefinition( parameterDescriptions ); inputs.add( new JAXBElement<LiteralInputDefinition>( new QName( "ProcessInput" ), LiteralInputDefinition.class, localeInput ) ); } for ( String key : parameters.keySet() ) { if ( key.startsWith( resourceBundle.getPrefix() ) ) { handledParameters.add( key ); } } } PropertiesContentProvider( Workspace workspace,
                                      org.deegree.services.wps.provider.jrxml.jaxb.process.ResourceBundle resourceBundle ); @Override void inspectInputParametersFromJrxml( Map<String, ParameterDescription> parameterDescriptions,
                                                 List<JAXBElement<? extends ProcessletInputDefinition>> inputs,
                                                 XMLAdapter jrxmlAdapter, Map<String, String> parameters,
                                                 List<String> handledParameters ); @Override Pair<InputStream, Boolean> prepareJrxmlAndReadInputParameters( InputStream jrxml,
                                                                          Map<String, Object> params,
                                                                          ProcessletInputs in,
                                                                          List<CodeType> processedIds,
                                                                          Map<String, String> parameters );  }
@Test public void testInspectInputParametersFromJrxml() { List<JAXBElement<? extends ProcessletInputDefinition>> inputs = new ArrayList<JAXBElement<? extends ProcessletInputDefinition>>(); XMLAdapter jrxmlAdapter = new XMLAdapter( TestPropertiesContentProviderTest.class.getResourceAsStream( "../templateWithPropsFromResourceBundle.jrxml" ) ); List<String> handledParameters = new ArrayList<String>(); propertiesContentProvider.inspectInputParametersFromJrxml( new HashMap<String, ParameterDescription>(), inputs, jrxmlAdapter, parameters, handledParameters ); assertEquals( 4, handledParameters.size() ); assertEquals( 1, inputs.size() ); }