
io.vertx.up.runtime.ZeroJet Maven / Gradle / Ivy
package io.vertx.up.runtime;
import io.vertx.core.http.HttpMethod;
import java.util.Objects;
/*
* Zero jet for dynamic deployment here.
* This class is for zero-jet project as dynamic deployment
* I_API / I_SERVICE here used.
*
* 1) The API / SERVICE definition should be captured by `ZeroUri` class
* 2) The pattern should be captured and it will passed to security engine.
*/
public class ZeroJet {
public static void resolve(final HttpMethod method,
final String uri) {
/*
* Pattern uri resolution
* must be excluded the path that does not contains :
*/
if (Objects.nonNull(uri)) {
if (0 < uri.indexOf(":")) {
ZeroUri.resolve(method, uri);
}
}
}
public static boolean isMatch(final HttpMethod method,
final String uri) {
return ZeroUri.isMatch(method, uri);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy