org.riotfamily.riot.runtime.macro
Class RiotMacroHelper

java.lang.Object
  extended by org.riotfamily.riot.runtime.macro.RiotMacroHelper

public class RiotMacroHelper
extends Object

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
RiotMacroHelper(RiotRuntime runtime, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 String getDeeplinkForHandler(String handlerName, Object attributes)
           
 RiotRuntime getRuntime()
           
 String getUrlForHandler(String handlerName, Object attributes)
           
 RiotUser getUser()
           
 String include(String url)
           
 boolean isAuthenticatedUser()
           
 String resolveAndEncodeUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiotMacroHelper

public RiotMacroHelper(RiotRuntime runtime,
                       HttpServletRequest request,
                       HttpServletResponse response)
Method Detail

isAuthenticatedUser

public boolean isAuthenticatedUser()

getRuntime

public RiotRuntime getRuntime()

getUser

public RiotUser getUser()

resolveAndEncodeUrl

public String resolveAndEncodeUrl(String url)

include

public String include(String url)
               throws ServletException,
                      IOException
Throws:
ServletException
IOException

getUrlForHandler

public String getUrlForHandler(String handlerName,
                               Object attributes)

getDeeplinkForHandler

public String getDeeplinkForHandler(String handlerName,
                                    Object attributes)