de.smartics.resteasy.hypermedia.adapter
Class DiscoveredResourceRepository

Package class diagram package DiscoveredResourceRepository
java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink>
              extended by org.jboss.resteasy.links.RESTServiceDiscovery
                  extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.jboss.resteasy.links.RESTServiceDiscovery
org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DiscoveredResourceRepository()
           
 
Method Summary
 void addLink(URI uri, String rels)
          Adds the URI with the given relations.
 List<LinkDescriptor> getLinksForRel(String rel)
          Returns links associated with a given relation.
 boolean isUnencodeSlashInPath()
          Returns the flag that controls whether (true) or not ( false) encoded slashes in the URL paths should be unencoded.
 List<LinkDescriptor> links()
          Returns an iterator over the resource links in this repository.
 void setUnencodeSlashInPath(boolean unencodeSlashInPath)
          Sets the flag that controls whether (true) or not ( false) encoded slashes in the URL paths should be unencoded.
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

DiscoveredResourceRepository

public DiscoveredResourceRepository()
Method Detail

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.