org.skyscreamer.yoga.listener
Class HrefListener

java.lang.Object
  extended by org.skyscreamer.yoga.listener.HrefListener
All Implemented Interfaces:
RenderingListener
Direct Known Subclasses:
SelectorBuilderListener

public class HrefListener
extends Object
implements RenderingListener


Constructor Summary
HrefListener()
           
HrefListener(EntityConfigurationRegistry _entityConfigurationRegistry)
          Deprecated. 
HrefListener(UriGenerator uriGenerator)
           
 
Method Summary
<T> void
eventOccurred(RenderingEvent<T> event)
          The eventOccurred method is invoked by Yoga on each RenderingListener in the application's registry before the response data is returned to the user
 UriGenerator getUriGenerator()
           
<T> String
getUrl(RenderingEvent<T> event, String suffix)
           
 void setEntityConfigurationRegistry(EntityConfigurationRegistry entityConfigurationRegistry)
          Deprecated. 
 void setUriGenerator(UriGenerator uriGenerator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HrefListener

public HrefListener()

HrefListener

@Deprecated
public HrefListener(EntityConfigurationRegistry _entityConfigurationRegistry)
Deprecated. 


HrefListener

public HrefListener(UriGenerator uriGenerator)
Method Detail

setUriGenerator

public void setUriGenerator(UriGenerator uriGenerator)

getUriGenerator

public UriGenerator getUriGenerator()

setEntityConfigurationRegistry

@Deprecated
public void setEntityConfigurationRegistry(EntityConfigurationRegistry entityConfigurationRegistry)
Deprecated. 


eventOccurred

public <T> void eventOccurred(RenderingEvent<T> event)
                   throws IOException
Description copied from interface: RenderingListener
The eventOccurred method is invoked by Yoga on each RenderingListener in the application's registry before the response data is returned to the user

Specified by:
eventOccurred in interface RenderingListener
Parameters:
event - The RenderingEvent object provides the RenderingListener with context information about the Yoga call, including the HTTP request and response, the selectors used, and the response data
Throws:
IOException

getUrl

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


Copyright © 2013. All Rights Reserved.