Package org.alfresco.repo.virtual.ref
Class ClasspathResource
- java.lang.Object
-
- org.alfresco.repo.virtual.ref.ClasspathResource
-
-
Constructor Summary
Constructors Constructor Description ClasspathResource(String classpath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamasStream(ActualEnvironment environment)booleanequals(Object obj)StringgetClasspath()inthashCode()<R> RprocessWith(ResourceProcessor<R> processor)Processes the Resource with aResourceProcessor.Stringstringify(Stringifier stringifier)Returns the String representation of the resource.
-
-
-
Constructor Detail
-
ClasspathResource
public ClasspathResource(String classpath)
-
-
Method Detail
-
getClasspath
public String getClasspath()
-
stringify
public String stringify(Stringifier stringifier) throws ReferenceEncodingException
Description copied from interface:ResourceReturns the String representation of the resource.- Specified by:
stringifyin interfaceResource- Returns:
- Throws:
ReferenceEncodingException
-
processWith
public <R> R processWith(ResourceProcessor<R> processor) throws ResourceProcessingError
Description copied from interface:ResourceProcesses 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.- Specified by:
processWithin interfaceResource- Returns:
- Throws:
ResourceProcessingError
-
asStream
public InputStream asStream(ActualEnvironment environment) throws ActualEnvironmentException
- Specified by:
asStreamin interfaceResource- Throws:
ActualEnvironmentException
-
-