org.springframework.extensions.surf.resource
Interface ResourceLoader

All Known Implementing Classes:
AbstractCachingResourceLoader, AbstractResourceLoader, AlfrescoResourceLoader, CMISResourceLoader, URLResourceLoader, VirtualizedWebappResourceLoader

public interface ResourceLoader

Interface for resource loader. A resource loader is responsible for loading and creating a Resource object for a given object id. Example: The object id may be a nodeRef to a document in the Alfresco content management system. Or, it might be a URL to an asset somewhere else in the world. A resource loader knows how to retrieve the metadata and content for the resource and manufacture a Resource object for use by the Web Framework.

Author:
muzquiano

Method Summary
 String getEndpointId()
          Returns the endpoint id for this resource loader
 String getProtocolId()
          Gets the protocol id.
 Resource load(String objectId)
          Loads the resource with the given object id
 

Method Detail

getEndpointId

String getEndpointId()
Returns the endpoint id for this resource loader

Returns:
the endpoint id

getProtocolId

String getProtocolId()
Gets the protocol id.

Returns:
the protocol id

load

Resource load(String objectId)
              throws ResourceLoaderException
Loads the resource with the given object id

Parameters:
objectId -
Returns:
Throws:
ResourceLoaderException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.