org.apache.pluto.driver.services.container
Class ResourceURLProviderImpl

java.lang.Object
  extended by org.apache.pluto.driver.services.container.ResourceURLProviderImpl
All Implemented Interfaces:
ResourceURLProvider

public class ResourceURLProviderImpl
extends java.lang.Object
implements ResourceURLProvider


Constructor Summary
ResourceURLProviderImpl(javax.servlet.http.HttpServletRequest req, PortletWindow internalPortletWindow)
           
 
Method Summary
 void setAbsoluteURL(java.lang.String path)
          Sets the absolute URL to be returned by the provider.
 void setFullPath(java.lang.String path)
          Sets a full path URI including the context root.
 java.lang.String toString()
          Returns a url to a resource as absolute URL starting with protocol so that it can be accessed by a browser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceURLProviderImpl

public ResourceURLProviderImpl(javax.servlet.http.HttpServletRequest req,
                               PortletWindow internalPortletWindow)
Method Detail

setAbsoluteURL

public void setAbsoluteURL(java.lang.String path)
Description copied from interface: ResourceURLProvider
Sets the absolute URL to be returned by the provider. E.g. http://host/wps/portal/hello.gif

Specified by:
setAbsoluteURL in interface ResourceURLProvider
Parameters:
path - the new absolute url

setFullPath

public void setFullPath(java.lang.String path)
Description copied from interface: ResourceURLProvider
Sets a full path URI including the context root. E.g. /wps/portal/hello.gif

Specified by:
setFullPath in interface ResourceURLProvider
Parameters:
path - the new absolute url

toString

public java.lang.String toString()
Description copied from interface: ResourceURLProvider
Returns a url to a resource as absolute URL starting with protocol so that it can be accessed by a browser.

Specified by:
toString in interface ResourceURLProvider
Overrides:
toString in class java.lang.Object
Returns:
the URL as string


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.