public class MyServerResource extends ServerResource { @Post public void handleForm(Form myForm) { // Equivalent from request#getParameterValues for Servlet String[] values = myForm.getValuesArray("mykey"); (...) } }
/** * Reads parameter values from the form returned {@link #getForm()}. * */ @Override public String[] getParams(String param) { return getForm().getValuesArray(param); }
String[] uris = queryForm.getValuesArray("uri"); String pluginName = queryForm.getValues("plugin");
for (String paramValue : form.getValuesArray(paramName)) { saveField(annotationRequest, paramName, paramValue, objectFactory);
String clientId = getQuery().getFirstValue("client"); Client client = clients.findById(clientId); String[] scopes = getQuery().getValuesArray("scope"); String[] previousScopes = getQuery().getValuesArray("grantedScope");
for (String name : form.getNames()) { if (StringUtils.startsWith(name, ANNOTATION_REQUEST_FILTER_PARAMETER_PREFIX)) { for (String value : form.getValuesArray(name)) { AnnotationField field = new AnnotationField(); field.setName(StringUtils.substringAfter(name, ANNOTATION_REQUEST_FILTER_PARAMETER_PREFIX)); requestedFields.getFields().addAll(Arrays.asList(form.getValuesArray(name)));
String[] providers = queryForm.getValuesArray("provider"); List<String> activeProviders = PluginController.getInstance().getQueryProvidersName(true); boolean queryAll = providers.length == 0; String[] extraFieldList = queryForm.getValuesArray("field"); HashMap<String, String> extraFields = new HashMap<String, String>();
String[] scopes = getQuery().getValuesArray("scope"); handleAction(action, scopes); return new EmptyRepresentation(); .getAuthSkipApproved(getContext()); if (sameScope) { String[] scopesArray = getQuery().getValuesArray("scope"); .getValuesArray("grantedScope")); handleAction(ACTION_ACCEPT, getQuery().getValuesArray("scope")); getLogger().fine("action handled"); return new EmptyRepresentation(); // Will redirect
.getValuesArray("activeRoles", true))); if(nextEntry.equalsIgnoreCase("activeRoles")) submittedRoles.addAll(Arrays.asList(data.getValuesArray("activeRoles", true)));
for (String tagName : form.getValuesArray(TAG_FIELD_NAME)) { Tag tag = objectFactory.createTag(); tag.setName(tagName);
String[] defaultGraphURIs = form.getValuesArray( DEFAULT_GRAPH_PARAM_NAME ); String[] namedGraphURIs = form.getValuesArray( NAMED_GRAPH_PARAM_NAME );