Package org.alfresco.repo.virtual.ref
Interface Resource
-
- All Known Implementing Classes:
ClasspathResource,RepositoryResource
public interface ResourceAReferenceelement that identifies the main or a parameter content location.
The semantics of the resource is given byReferenceprotocol.- Author:
- Bogdan Horje
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamasStream(ActualEnvironment environment)<R> RprocessWith(ResourceProcessor<R> processor)Processes the Resource with aResourceProcessor.java.lang.Stringstringify(Stringifier stringifier)Returns the String representation of the resource.
-
-
-
Method Detail
-
stringify
java.lang.String stringify(Stringifier stringifier) throws ReferenceEncodingException
Returns the String representation of the resource.- Parameters:
stringifier-- Returns:
- Throws:
ReferenceEncodingException
-
processWith
<R> R processWith(ResourceProcessor<R> processor) throws ResourceProcessingError
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
java.io.InputStream asStream(ActualEnvironment environment) throws ActualEnvironmentException
- Throws:
ActualEnvironmentException
-
-