org.jboss.resteasy.spi.touri
Class ObjectToURI

java.lang.Object
  extended by org.jboss.resteasy.spi.touri.ObjectToURI

public class ObjectToURI
extends java.lang.Object

This class encapsulates how an object can be converted to a URI string. There are three basic ways to perform the transformation:

  1. adding a @URITemplate("your-uri-template") to an object
  2. having an object extend URIable and have the object perform custom logic
  3. registering a custom URIResolver

Version:
$Revision: 1 $
Author:
Solomon Duskis

Constructor Summary
ObjectToURI()
           
 
Method Summary
static ObjectToURI getInstance()
           
 void registerURIResolver(URIResolver uriResolver)
           
 java.lang.String resolveURI(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectToURI

public ObjectToURI()
Method Detail

getInstance

public static ObjectToURI getInstance()

registerURIResolver

public void registerURIResolver(URIResolver uriResolver)

resolveURI

public java.lang.String resolveURI(java.lang.Object object)


Copyright © 2010. All Rights Reserved.