Class ContentResource

  • All Implemented Interfaces:
    org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource

    public class ContentResource
    extends org.springframework.core.io.AbstractResource
    Implementation of Resource that wraps site content
    Since:
    3.1.1
    Author:
    joseross
    • Field Detail

      • contentService

        protected ContentService contentService
        The content service
      • site

        protected String site
        The site id
      • path

        protected String path
        The relative path of the content
    • Method Detail

      • exists

        public boolean exists()
        Specified by:
        exists in interface org.springframework.core.io.Resource
        Overrides:
        exists in class org.springframework.core.io.AbstractResource
      • contentLength

        public long contentLength()
        Specified by:
        contentLength in interface org.springframework.core.io.Resource
        Overrides:
        contentLength in class org.springframework.core.io.AbstractResource
      • lastModified

        public long lastModified()
        Specified by:
        lastModified in interface org.springframework.core.io.Resource
        Overrides:
        lastModified in class org.springframework.core.io.AbstractResource
      • getFilename

        public String getFilename()
        Specified by:
        getFilename in interface org.springframework.core.io.Resource
        Overrides:
        getFilename in class org.springframework.core.io.AbstractResource
      • getDescription

        public String getDescription()