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.
|
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() |
public SearchResourceMappings(List<MethodResourceMapping> mappings)
SearchResourceMappings
from the givenmappings
- public Method getMappedMethod(String 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-2013-2014 Pivotal. All Rights Reserved.