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, wait
forEach, spliterator
public 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()
ResourceMapping
getPath
in interface ResourceMapping
public String getRel()
ResourceMapping
getRel
in interface ResourceMapping
public boolean isExported()
ResourceMapping
isExported
in interface ResourceMapping
public boolean isPagingResource()
ResourceMapping
isPagingResource
in interface ResourceMapping
public ResourceDescription getDescription()
ResourceMapping
getDescription
in interface ResourceMapping
public Iterator<MethodResourceMapping> iterator()
iterator
in interface Iterable<MethodResourceMapping>
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.