de.smartics.resteasy.hypermedia.adapter
Class DiscoveredResourceRepository
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink>
org.jboss.resteasy.links.RESTServiceDiscovery
de.smartics.resteasy.hypermedia.adapter.DiscoveredResourceRepository
-
All Implemented Interfaces:
-
Resources,
ResourcesAdmin,
Serializable,
Cloneable,
Iterable<org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink>,
Collection<org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink>,
List<org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink>,
RandomAccess
-
public class DiscoveredResourceRepository
-
extends org.jboss.resteasy.links.RESTServiceDiscovery
-
implements
Resources,
ResourcesAdmin
Adapter to add additional features to handle breadcumbs.
-
See Also:
-
Serialized Form
Nested classes/interfaces inherited from class org.jboss.resteasy.links.RESTServiceDiscovery |
org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink |
Methods inherited from class org.jboss.resteasy.links.RESTServiceDiscovery |
getLinkForRel |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
DiscoveredResourceRepository
public DiscoveredResourceRepository()
isUnencodeSlashInPath
public boolean isUnencodeSlashInPath()
-
Returns the flag that controls whether (
true
) or not (
false
) encoded slashes in the URL paths should be unencoded.
-
-
-
Returns:
-
the value of the flag.
setUnencodeSlashInPath
public void setUnencodeSlashInPath(boolean unencodeSlashInPath)
-
Sets the flag that controls whether (
true
) or not (
false
) encoded slashes in the URL paths should be unencoded.
-
-
-
Parameters:
-
unencodeSlashInPath
- the value of the flag.
addLink
public void addLink(URI uri,
String rels)
-
Description copied from interface:
ResourcesAdmin
-
Adds the URI with the given relations.
-
-
Specified by:
-
addLink
in interface
ResourcesAdmin
-
Overrides:
-
addLink
in class
org.jboss.resteasy.links.RESTServiceDiscovery
-
-
Parameters:
-
uri
- the URI to add as link.
-
rels
- the whitespace separated list of relations for the link.
getLinksForRel
public List<LinkDescriptor> getLinksForRel(String rel)
-
Returns links associated with a given relation.
-
-
Specified by:
-
getLinksForRel
in interface
Resources
-
-
Parameters:
-
rel
- a single relation value.
-
Returns:
-
the associated links, may be empty.
links
public List<LinkDescriptor> links()
-
Description copied from interface:
Resources
-
Returns an iterator over the resource links in this repository.
-
-
Specified by:
-
links
in interface
Resources
-
-
Returns:
-
an iterator over the resource links in this repository.
Copyright © 2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.