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.
|
Iterable<MethodResourceMapping> |
getExportedMappings()
Returns the mappings for all exported query methods.
|
MethodResourceMapping |
getExportedMethodMappingForPath(String path)
Returns the
MethodResourceMapping for the given path. |
MethodResourceMapping |
getExportedMethodMappingForRel(String 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.
|
String |
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 Iterable<MethodResourceMapping> getExportedMappings()
public MethodResourceMapping getExportedMethodMappingForRel(String rel)
MappingResourceMetadata for the given relation name.rel - must not be null or empty.public MethodResourceMapping getExportedMethodMappingForPath(String path)
MethodResourceMapping for the given path.path - must not be null or empty.public Path getPath()
ResourceMappinggetPath in interface ResourceMappingpublic String 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–2017 Pivotal Software, Inc.. All rights reserved.