Package org.xwiki.skin
Interface Resource<I extends org.xwiki.filter.input.InputSource>
-
- Type Parameters:
I- the type of theInputSource
public interface Resource<I extends org.xwiki.filter.input.InputSource>- Since:
- 7.0M1
- Version:
- $Id: d2a94674a99041a4a70fc7366898fe02ed4f5712 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetId()IgetInputSource()Provide anInputSourceto read the resource.default InstantgetInstant()StringgetPath()ResourceRepositorygetRepository()StringgetResourceName()StringgetURL(boolean forceSkinAction)Create a URL for the resource.
-
-
-
Method Detail
-
getRepository
ResourceRepository getRepository()
- Returns:
- the repository containing the resource
-
getId
String getId()
- Returns:
- the unique identifier of the resource
-
getPath
String getPath()
- Returns:
- the path of the resource
-
getResourceName
String getResourceName()
- Returns:
- the name of the resource (usually a relative path)
- Since:
- 8.3RC1
-
getInputSource
I getInputSource() throws Exception
Provide anInputSourceto read the resource.- Returns:
- an
InputSourceto read the resource - Throws:
Exception- when failing to create aInputSourcefor the resource
-
getInstant
@Unstable default Instant getInstant() throws Exception
- Returns:
- the instant that resource was last modified or null if it's unknown
- Throws:
Exception- when failing to get the instant of the resource- Since:
- 15.8RC1
-
-