Package com.xpn.xwiki.web.sx
Class SxResourceSource
- java.lang.Object
-
- com.xpn.xwiki.web.sx.SxResourceSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.xpn.xwiki.web.sx.SxSource
SxSource.CachePolicy
-
-
Constructor Summary
Constructors Constructor Description SxResourceSource(String resourceName)
Constructor of this source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SxSource.CachePolicy
getCachePolicy()
String
getContent()
long
getLastModifiedDate()
-
-
-
Constructor Detail
-
SxResourceSource
public SxResourceSource(String resourceName)
Constructor of this source.- Parameters:
resourceName
- the full path of the resource to use as extension. Example:path/to/hello.js
-
-
Method Detail
-
getCachePolicy
public SxSource.CachePolicy getCachePolicy()
- Specified by:
getCachePolicy
in interfaceSxSource
- Returns:
- the cache policy associated with this extension source.
-
getContent
public String getContent()
- Specified by:
getContent
in interfaceSxSource
- Returns:
- the content of the extension source. For example, a javascript script for a javascript extension.
-
getLastModifiedDate
public long getLastModifiedDate()
- Specified by:
getLastModifiedDate
in interfaceSxSource
- Returns:
- the last date at which the extension source has been modified.
-
-