org.apache.pluto.driver.core
Class ResourceURLProviderImpl
java.lang.Object
org.apache.pluto.driver.core.ResourceURLProviderImpl
- All Implemented Interfaces:
- ResourceURLProvider
public class ResourceURLProviderImpl
- extends Object
- implements ResourceURLProvider
Method Summary |
void |
setAbsoluteURL(String path)
Sets the absolute URL to be returned by the provider. |
void |
setFullPath(String path)
Sets a full path URI including the context root. |
String |
toString()
Returns a url to a resource as absolute URL starting with protocol so
that it can be accessed by a browser. |
ResourceURLProviderImpl
public ResourceURLProviderImpl(javax.servlet.http.HttpServletRequest req,
PortletWindow internalPortletWindow)
setAbsoluteURL
public void setAbsoluteURL(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(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 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 Object
- Returns:
- the URL as string
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.