/** * Extracts an attribute from the request entity form. * * @param attribute * The name of the request attribute to set. * @param parameter * The name of the entity form 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 extractEntity(String attribute, String parameter, boolean first) { getEntityExtracts().add(new ExtractInfo(attribute, parameter, first)); return this; }
if (!getEntityExtracts().isEmpty()) { final Form form = request.getEntityAsForm(); for (final ExtractInfo ei : getEntityExtracts()) { if (ei.first) { request.getAttributes().put(ei.attribute,