it.eng.spagobi.qbe.commons.urlgenerator
Class PortletQbeUrlGenerator

java.lang.Object
  extended by it.eng.spagobi.qbe.commons.urlgenerator.PortletQbeUrlGenerator
All Implemented Interfaces:
IQbeUrlGenerator

public class PortletQbeUrlGenerator
extends java.lang.Object
implements IQbeUrlGenerator

The Class PortletQbeUrlGenerator.

Author:
Andrea Zoppello The implementation of IQbeUrlGenerator used when QBE is used as a PORTLET

Constructor Summary
PortletQbeUrlGenerator()
           
 
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 url)
          Gets the resource url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletQbeUrlGenerator

public PortletQbeUrlGenerator()
Method Detail

getActionUrl

public java.lang.String getActionUrl(javax.servlet.http.HttpServletRequest httpServletRequest,
                                     java.util.Map parameters)
Description copied from interface: IQbeUrlGenerator
Gets the action url.

Specified by:
getActionUrl in interface IQbeUrlGenerator
Parameters:
httpServletRequest - the http servlet request
parameters - an HashMap of parameters
Returns:
a URL given the Map parameters

getResourceUrl

public java.lang.String getResourceUrl(javax.servlet.http.HttpServletRequest httpServletRequest,
                                       java.lang.String url)
Description copied from interface: IQbeUrlGenerator
Gets the resource url.

Specified by:
getResourceUrl in interface IQbeUrlGenerator
Parameters:
httpServletRequest - the http servlet request
url - a String representic a link to static resource img, css, js and so on
Returns:
the resource url