io.vertx.up.uca.rs.router.UriHub Maven / Gradle / Ivy
package io.vertx.up.uca.rs.router;
import io.vertx.ext.web.Route;
import io.vertx.up.atom.agent.Event;
/**
* Hub for Uri basic
* path, method, order
* register to route to generate mime support
*/
public class UriHub implements Hub {
@Override
public void mount(final Route route,
final Event event) {
if (null == event.getMethod()) {
// Support filter JSR340
route.path(event.getPath())
.order(event.getOrder());
} else {
route.path(event.getPath())
.method(event.getMethod())
.order(event.getOrder());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy