it.eng.spagobi.qbe.commons.urlgenerator
Interface IQbeUrlGenerator

All Known Implementing Classes:
PortletQbeUrlGenerator, WebQbeUrlGenerator

public interface IQbeUrlGenerator

The Interface IQbeUrlGenerator.

Author:
Andrea Zoppello This is the interface for classes that implements logic to generate URLS This is because we want reuse JSP in Standalone Web applications and Portlet Enviroments

Method Summary
 java.lang.String getActionUrl(javax.servlet.http.HttpServletRequest httpServletRequest, java.util.Map parameters)
          Gets the action url.
 java.lang.String getResourceUrl(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String originalUrl)
          Gets the resource url.
 

Method Detail

getActionUrl

java.lang.String getActionUrl(javax.servlet.http.HttpServletRequest httpServletRequest,
                              java.util.Map parameters)
Gets the action url.

Parameters:
parameters - an HashMap of parameters
httpServletRequest - the http servlet request
Returns:
a URL given the Map parameters

getResourceUrl

java.lang.String getResourceUrl(javax.servlet.http.HttpServletRequest httpServletRequest,
                                java.lang.String originalUrl)
Gets the resource url.

Parameters:
originalUrl - a String representic a link to static resource img, css, js and so on
httpServletRequest - the http servlet request
Returns:
the resource url