org.pentaho.platform.util.web
Class SimpleUrl

java.lang.Object
  extended by org.pentaho.platform.util.web.SimpleUrl
All Implemented Interfaces:
IPentahoUrl

public class SimpleUrl
extends Object
implements IPentahoUrl


Constructor Summary
SimpleUrl(String baseUrl)
           
 
Method Summary
 String getUrl()
           
 void setParameter(String name, String value)
          Sets a URL parameter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUrl

public SimpleUrl(String baseUrl)
Method Detail

setParameter

public void setParameter(String name,
                         String value)
Description copied from interface: IPentahoUrl
Sets a URL parameter. Since the portlet URL handles all the URL parameter construction, talking to a generic interface seems more extensible.

Specified by:
setParameter in interface IPentahoUrl
Parameters:
name - Name of the parameter to set
value - Value to set the parameter to

getUrl

public String getUrl()
Specified by:
getUrl in interface IPentahoUrl
Returns:
the full URL with the parameters incorporated