Class FilesystemContentDataFactory

  • All Implemented Interfaces:
    ContentDataFactory, org.springframework.beans.factory.InitializingBean

    public class FilesystemContentDataFactory
    extends Object
    implements ContentDataFactory, org.springframework.beans.factory.InitializingBean
    Factory that creates ContentData out of :
    The mimetype will be guessed from the file extension, or fall back to binary. The encoding will be guessed from the file itself, or fall back to defaultEncoding.
    Since:
    4.0
    • Constructor Detail

      • FilesystemContentDataFactory

        public FilesystemContentDataFactory()
    • Method Detail

      • setMimetypeService

        public void setMimetypeService​(MimetypeService mimetypeService)
      • setDefaultEncoding

        public void setDefaultEncoding​(String defaultEncoding)
      • setStoreProtocol

        public void setStoreProtocol​(String storeProtocol)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception