@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. |
static PathMapper |
useEndpointId()
Deprecated.
since 2.1.0 in favor of
getRootPath(List, EndpointId) with a
null list |
String getRootPath(EndpointId endpointId)
endpointId
.endpointId
- the id of an endpointnull
if this mapper doesn't support the
given endpoint ID@Deprecated static PathMapper useEndpointId()
getRootPath(List, EndpointId)
with a
null
listPathMapper
that uses the endpoint ID as the path.PathMapper
that uses the lowercase endpoint ID as the pathstatic 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 endpointCopyright © 2018 Pivotal Software, Inc.. All rights reserved.