org.apache.pluto.spi
Interface ResourceURLProvider

All Known Implementing Classes:
ResourceURLProviderImpl, ResourceURLProviderImpl

public interface ResourceURLProvider

Version:
1.0

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.
 

Method Detail

setAbsoluteURL

void setAbsoluteURL(String path)
Sets the absolute URL to be returned by the provider. E.g. http://host/wps/portal/hello.gif

Parameters:
path - the new absolute url

setFullPath

void setFullPath(String path)
Sets a full path URI including the context root. E.g. /wps/portal/hello.gif

Parameters:
path - the new absolute url

toString

String toString()
Returns a url to a resource as absolute URL starting with protocol so that it can be accessed by a browser.

Overrides:
toString in class Object
Returns:
the URL as string


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