All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.zero88.msa.bp.micro.filter.HttpEndpointPathPredicate Maven / Gradle / Ivy

package io.github.zero88.msa.bp.micro.filter;

import io.github.zero88.utils.Urls;
import io.vertx.servicediscovery.Record;
import io.vertx.servicediscovery.types.HttpLocation;

import lombok.NonNull;

final class HttpEndpointPathPredicate implements ByPathPredicate {

    @Override
    public boolean test(@NonNull Record record, @NonNull String path) {
        HttpLocation location = new HttpLocation(record.getLocation());
        return location.getRoot().equals(Urls.combinePath(path));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy