com.sapportals.portal.prt.resource
Interface IResourceInformation


public interface IResourceInformation

The ResourceInformation holds informations related to resources. This class is provided by the ResourceManager when it calls the IResourse.init method. A component can access the resource informations by calling the IResource.getResourceInformation() method.

See Also:
IResource, IResource.getResourceInformation(), IPropertiesResource, IPortalComponentRequest.getResource(String, String, String), IPortalComponentResponse.addResource(IResource)

Method Summary
 java.lang.String getComponent()
          Returns the name of the component the resource belongs to.
 java.lang.String getSource()
          Returns the absolute path of this resource.
 java.lang.String getType()
          Returns the resource type.
 java.lang.String getURL(IPortalComponentRequest request)
          Returns the URL referring to this resource. The generated URL depends on some servlet settings provided by the request.
 

Method Detail

getComponent

public java.lang.String getComponent()
Returns the name of the component the resource belongs to.

getType

public java.lang.String getType()
Returns the resource type. The IResource interface defines constants for standard resource types.
See Also:
IResource

getSource

public java.lang.String getSource()
Returns the absolute path of this resource.

getURL

public java.lang.String getURL(IPortalComponentRequest request)
Returns the URL referring to this resource.

The generated URL depends on some servlet settings provided by the request.

Parameters:
request -  
Returns:
The URL referring to this resource.