@FunctionalInterface public interface PathMapper
Modifier and Type | Method and Description |
---|---|
String |
getRootPath(EndpointId endpointId)
Resolve the root path for the specified
endpointId . |
static String |
getRootPath(List<PathMapper> pathMappers,
EndpointId endpointId)
Resolve the root path for the specified
endpointId from the given path
mappers. |
String getRootPath(EndpointId endpointId)
endpointId
.endpointId
- the id of an endpointnull
if this mapper doesn't support the
given endpoint IDstatic String getRootPath(List<PathMapper> pathMappers, EndpointId endpointId)
endpointId
from the given path
mappers. If no mapper matches then the ID itself is returned.pathMappers
- the path mappers (may be null
)endpointId
- the id of an endpoint