org.riotfamily.website.txt2img
Class ButtonService

java.lang.Object
  extended by org.riotfamily.website.txt2img.ButtonService
All Implemented Interfaces:
ApplicationContextAware

public class ButtonService
extends Object
implements ApplicationContextAware


Constructor Summary
ButtonService(CacheService cacheService, ResourceStamper resourceStamper)
           
 
Method Summary
 String getInlineStyle(String style, String label, HttpServletRequest request)
           
 long getLastModified()
           
 boolean isReloadable()
           
 void serveImage(String style, String label, HttpServletRequest request, HttpServletResponse response)
           
 void setApplicationContext(ApplicationContext ctx)
           
 void setReloadable(boolean reloadable)
           
 void writeRules(PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonService

public ButtonService(CacheService cacheService,
                     ResourceStamper resourceStamper)
Method Detail

isReloadable

public boolean isReloadable()

setReloadable

public void setReloadable(boolean reloadable)

setApplicationContext

public void setApplicationContext(ApplicationContext ctx)
Specified by:
setApplicationContext in interface ApplicationContextAware

getInlineStyle

public String getInlineStyle(String style,
                             String label,
                             HttpServletRequest request)
                      throws Exception
Throws:
Exception

serveImage

public void serveImage(String style,
                       String label,
                       HttpServletRequest request,
                       HttpServletResponse response)
                throws Exception
Throws:
Exception

writeRules

public void writeRules(PrintWriter out)

getLastModified

public long getLastModified()