Class ContentStoreResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.craftercms.engine.util.spring.ContentStoreResource
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource
,org.springframework.core.io.Resource
public class ContentStoreResource
extends org.springframework.core.io.AbstractResource
A
Resource
for a Crafter content store Content
.- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.core.io.AbstractResource
createRelative, equals, getFileForLastModifiedCheck, getURI, hashCode, isFile, isOpen, isReadable, readableChannel, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString
-
Field Details
-
siteContext
-
url
-
-
Constructor Details
-
ContentStoreResource
-
-
Method Details
-
exists
public boolean exists()- Specified by:
exists
in interfaceorg.springframework.core.io.Resource
- Overrides:
exists
in classorg.springframework.core.io.AbstractResource
-
getURL
- Specified by:
getURL
in interfaceorg.springframework.core.io.Resource
- Overrides:
getURL
in classorg.springframework.core.io.AbstractResource
- Throws:
IOException
-
contentLength
- Specified by:
contentLength
in interfaceorg.springframework.core.io.Resource
- Overrides:
contentLength
in classorg.springframework.core.io.AbstractResource
- Throws:
IOException
-
lastModified
- Specified by:
lastModified
in interfaceorg.springframework.core.io.Resource
- Overrides:
lastModified
in classorg.springframework.core.io.AbstractResource
- Throws:
IOException
-
getFile
- Specified by:
getFile
in interfaceorg.springframework.core.io.Resource
- Overrides:
getFile
in classorg.springframework.core.io.AbstractResource
- Throws:
IOException
-
getFilename
- Specified by:
getFilename
in interfaceorg.springframework.core.io.Resource
- Overrides:
getFilename
in classorg.springframework.core.io.AbstractResource
-
getDescription
-
getInputStream
- Throws:
IOException
-
getContent
protected org.craftercms.core.service.Content getContent()
-