org.skyscreamer.yoga.listener
Class UriGenerator

java.lang.Object
  extended by org.skyscreamer.yoga.listener.UriGenerator

public class UriGenerator
extends Object


Constructor Summary
UriGenerator()
           
UriGenerator(EntityConfigurationRegistry _entityConfigurationRegistry)
           
 
Method Summary
 String determineTemplate(Class<?> instanceType)
           
protected  String determineTemplateForUnknownType(Class<?> instanceType)
          override this if you want custom behavior
<T> String
getUrl(RenderingEvent<T> event, String suffix)
           
<T> String
getUrl(String uriTemplate, String suffix, RenderingEvent<T> event)
           
protected
<T> String
getUrlVal(String uriTemplate, String suffix, RenderingEvent<T> event)
           
 void setEntityConfigurationRegistry(EntityConfigurationRegistry entityConfigurationRegistry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriGenerator

public UriGenerator()

UriGenerator

public UriGenerator(EntityConfigurationRegistry _entityConfigurationRegistry)
Method Detail

setEntityConfigurationRegistry

public void setEntityConfigurationRegistry(EntityConfigurationRegistry entityConfigurationRegistry)

getUrl

public <T> String getUrl(RenderingEvent<T> event,
                         String suffix)
              throws IOException
Throws:
IOException

determineTemplate

public String determineTemplate(Class<?> instanceType)

determineTemplateForUnknownType

protected String determineTemplateForUnknownType(Class<?> instanceType)
override this if you want custom behavior


getUrl

public <T> String getUrl(String uriTemplate,
                         String suffix,
                         RenderingEvent<T> event)

getUrlVal

protected <T> String getUrlVal(String uriTemplate,
                               String suffix,
                               RenderingEvent<T> event)


Copyright © 2013. All Rights Reserved.