Package org.alfresco.repo.virtual.ref
Interface Resource
- All Known Implementing Classes:
ClasspathResource,RepositoryResource
public interface Resource
A
The semantics of the resource is given by
Reference element that identifies the main or a parameter content location. The semantics of the resource is given by
Reference protocol.- Author:
- Bogdan Horje
-
Method Summary
Modifier and TypeMethodDescriptionasStream(ActualEnvironment environment) <R> RprocessWith(ResourceProcessor<R> processor) Processes the Resource with aResourceProcessor.stringify(Stringifier stringifier) Returns the String representation of the resource.
-
Method Details
-
stringify
Returns the String representation of the resource.- Parameters:
stringifier-- Returns:
- Throws:
ReferenceEncodingException
-
processWith
Processes the Resource with aResourceProcessor. This method has the role of the accept method in the Visitor pattern, in this case the Visitor being theResourceProcessorand the Element - the Resource.- Parameters:
processor-- Returns:
- Throws:
ResourceProcessingError
-
asStream
- Throws:
ActualEnvironmentException
-