io.vertx.up.uca.rs.argument.FormFiller Maven / Gradle / Ivy
package io.vertx.up.uca.rs.argument;
import io.vertx.ext.web.RoutingContext;
import io.vertx.up.uca.rs.Filler;
import io.vertx.up.runtime.ZeroSerializer;
public class FormFiller implements Filler {
@Override
public Object apply(final String name,
final Class> paramType,
final RoutingContext context) {
final String value = context.request().getFormAttribute(name);
return ZeroSerializer.getValue(paramType, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy