de.smartics.resteasy.hypermedia.adapter
Class RestEasyResourceDiscovery

Package class diagram package RestEasyResourceDiscovery
java.lang.Object
  extended by de.smartics.resteasy.hypermedia.adapter.RestEasyResourceDiscovery

public final class RestEasyResourceDiscovery
     
     
extends Object

A brute force adapter to access the information of RESTUtils.


Method Summary
static Resources createDiscovery(Object entity, javax.ws.rs.core.UriInfo uriInfo)
          Calculates the service discovery.
static boolean isUnencodeSlashInPath()
          Returns the flag that controls whether (true) or not ( false) encoded slashes in the URL paths should be unencoded.
static 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isUnencodeSlashInPath

public static 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 static 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.

createDiscovery

public static Resources createDiscovery(Object entity,
                                        javax.ws.rs.core.UriInfo uriInfo)
                                 throws IllegalStateException
Calculates the service discovery.

Parameters:
entity - the resource to analyze for link information.
uriInfo - the helper to construct links.
Returns:
the service discovery.
Throws:
IllegalStateException - if the method is unable to interface with a private method of RESTUtils.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.