
io.vertx.up.uca.rs.argument.PathFiller Maven / Gradle / Ivy
package io.vertx.up.uca.rs.argument;
import io.vertx.ext.web.RoutingContext;
import io.vertx.up.runtime.ZeroSerializer;
import io.vertx.up.uca.rs.Filler;
/**
* 「Co」JSR311 for .@PathParam
*
* This `Filler` is for path parsing `/api/xxx/name/{name}` format to extract to
*
* ```shell
* //
* name = value
* //
* ```
*
* @author Lang
*/
public class PathFiller implements Filler {
@Override
public Object apply(final String name,
final Class> paramType,
final RoutingContext context) {
// 1. Get path information
return ZeroSerializer.getValue(paramType, context.pathParam(name));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy