Class JcrResourceStream

  • All Implemented Interfaces:
    Closeable, Serializable, AutoCloseable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<Void>, org.apache.wicket.util.io.IClusterable, org.apache.wicket.util.resource.IResourceStream, org.apache.wicket.util.watch.IModifiable

    public class JcrResourceStream
    extends NodeModelWrapper<Void>
    implements org.apache.wicket.util.resource.IResourceStream
    See Also:
    Serialized Form
    • Constructor Detail

      • JcrResourceStream

        public JcrResourceStream​(org.apache.wicket.model.IModel<Node> model)
    • Method Detail

      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface org.apache.wicket.util.resource.IResourceStream
      • getInputStream

        public InputStream getInputStream()
                                   throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
        Specified by:
        getInputStream in interface org.apache.wicket.util.resource.IResourceStream
        Throws:
        org.apache.wicket.util.resource.ResourceStreamNotFoundException
      • length

        public org.apache.wicket.util.lang.Bytes length()
        Specified by:
        length in interface org.apache.wicket.util.resource.IResourceStream
      • getLocale

        public Locale getLocale()
        Specified by:
        getLocale in interface org.apache.wicket.util.resource.IResourceStream
      • setLocale

        public void setLocale​(Locale locale)
        Specified by:
        setLocale in interface org.apache.wicket.util.resource.IResourceStream
      • getStyle

        public String getStyle()
        Specified by:
        getStyle in interface org.apache.wicket.util.resource.IResourceStream
      • setStyle

        public void setStyle​(String style)
        Specified by:
        setStyle in interface org.apache.wicket.util.resource.IResourceStream
      • getVariation

        public String getVariation()
        Specified by:
        getVariation in interface org.apache.wicket.util.resource.IResourceStream
      • setVariation

        public void setVariation​(String variation)
        Specified by:
        setVariation in interface org.apache.wicket.util.resource.IResourceStream
      • lastModifiedTime

        public Instant lastModifiedTime()
        Specified by:
        lastModifiedTime in interface org.apache.wicket.util.watch.IModifiable