Transports can take advantage of a UriFilter that will check to see if the source and sink URI matches that in the UMessage. Below is the proposed code from Misha:
public record UriFilter (@NonNull UUri source, @NonNull UUri sink) {
public boolean matches(UAttributes attributes) {
if (attributes == null) {
return false;
}
return UriValidator.matches(source, attributes.getSource()) && UriValidator.matches(sink, attributes.getSink());
}
Transports can take advantage of a UriFilter that will check to see if the source and sink URI matches that in the UMessage. Below is the proposed code from Misha: