public class SearchResourceMappings extends Object implements Iterable<MethodResourceMapping>, ResourceMapping
ResourceMapping for all search resources.| Constructor and Description |
|---|
SearchResourceMappings(List<MethodResourceMapping> mappings)
Creates a new
SearchResourceMappings from the given |
| Modifier and Type | Method and Description |
|---|---|
ResourceDescription |
getDescription()
Returns the resource's description.
|
Stream<MethodResourceMapping> |
getExportedMappings()
Returns the mappings for all exported query methods.
|
MethodResourceMapping |
getExportedMethodMappingForPath(String path)
Returns the
MethodResourceMapping for the given path. |
MethodResourceMapping |
getExportedMethodMappingForRel(org.springframework.hateoas.LinkRelation rel)
Returns the
MappingResourceMetadata for the given relation name. |
Method |
getMappedMethod(String path)
Returns the method mapped to the given path.
|
Path |
getPath()
Returns the path the resource is exposed under.
|
org.springframework.hateoas.LinkRelation |
getRel()
Returns the relation for the resource exported.
|
boolean |
isExported()
Returns whether the component shall be exported at all.
|
boolean |
isPagingResource()
Returns whether the resource is paging one.
|
Iterator<MethodResourceMapping> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SearchResourceMappings(List<MethodResourceMapping> mappings)
SearchResourceMappings from the givenmappings - public Method getMappedMethod(String path)
path - must not be null or empty.public Stream<MethodResourceMapping> getExportedMappings()
public MethodResourceMapping getExportedMethodMappingForRel(org.springframework.hateoas.LinkRelation rel)
MappingResourceMetadata for the given relation name.rel - must not be null.public MethodResourceMapping getExportedMethodMappingForPath(String path)
MethodResourceMapping for the given path.path - must not be null or empty.public Path getPath()
ResourceMappinggetPath in interface ResourceMappingpublic org.springframework.hateoas.LinkRelation getRel()
ResourceMappinggetRel in interface ResourceMappingpublic boolean isExported()
ResourceMappingisExported in interface ResourceMappingpublic boolean isPagingResource()
ResourceMappingisPagingResource in interface ResourceMappingpublic ResourceDescription getDescription()
ResourceMappinggetDescription in interface ResourceMappingpublic Iterator<MethodResourceMapping> iterator()
iterator in interface Iterable<MethodResourceMapping>Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.