Interface ServiceIdExtractor
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ServiceIdExtractor
Extract the serviceId from a given URL. This interface was introduced to address one shortcoming of theHalClient
: it was assuming that all links in aHalResource
are pointing to the same service. Therefore allCaravanHttpRequest
s were created with the serviceId that was initially passed when creating the HalClient, not the serviceId where the URL is actually pointing to. This interface now allows to specify a rule that can extract the serviceId from a given path.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getServiceId(String href)
-