Class ResourceStreamResource

    • Constructor Detail

      • ResourceStreamResource

        public ResourceStreamResource()
        Constructor.
      • ResourceStreamResource

        public ResourceStreamResource​(org.apache.wicket.util.resource.IResourceStream stream)
        Constructor.
        Parameters:
        stream - the resource stream to read from
    • Method Detail

      • setTextEncoding

        public ResourceStreamResource setTextEncoding​(String textEncoding)
        Parameters:
        textEncoding -
        Returns:
        this object, for chaining
      • getCacheDuration

        public Duration getCacheDuration()
        Returns:
        the duration for which the resource will be cached by the browser
      • setCacheDuration

        public ResourceStreamResource setCacheDuration​(Duration cacheDuration)
        Parameters:
        cacheDuration - the duration for which the resource will be cached by the browser
        Returns:
        this object, for chaining
      • getResourceStream

        protected org.apache.wicket.util.resource.IResourceStream getResourceStream​(IResource.Attributes attributes)
        Lazy or dynamic initialization of the wrapped IResourceStream(Writer)
        Parameters:
        attributes - The request attributes
        Returns:
        the underlying IResourceStream. May be null.