/** * Extracts an attribute from the query string of the resource reference. * * @param attribute * The name of the request attribute to set. * @param parameter * The name of the query string parameter to extract. * @param first * Indicates if only the first cookie should be set. Otherwise as * a List instance might be set in the attribute value. * @return The current Filter. */ public Route extractQuery(String attribute, String parameter, boolean first) { getQueryExtracts().add(new ExtractInfo(attribute, parameter, first)); return this; }
if (!getQueryExtracts().isEmpty()) { final Form form = request.getResourceRef().getQueryAsForm(); for (final ExtractInfo ei : getQueryExtracts()) { if (ei.first) { request.getAttributes().put(ei.attribute,