Class SharedMarkupResourceStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Serializable, java.lang.AutoCloseable, org.apache.wicket.util.io.IClusterable, org.apache.wicket.util.resource.IFixedLocationResourceStream, org.apache.wicket.util.resource.IResourceStream, org.apache.wicket.util.watch.IModifiable

    public class SharedMarkupResourceStream
    extends LayoutFileMarkupResourceStream
    Markup resource stream that allows a IFixedLocationResourceStream to be shared. This implementation prevents MarkupCache from using the same markup for the resource stream even if the cacheKey differs.
    Since:
    6.0.0
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.wicket.markup.MarkupResourceStream

        WICKET_XHTML_DTD
    • Constructor Summary

      Constructors 
      Constructor Description
      SharedMarkupResourceStream​(org.apache.wicket.util.resource.IResourceStream resourceStream, org.apache.wicket.MarkupContainer container, IPortalMode portalMode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String locationAsString()  
      • Methods inherited from class org.apache.wicket.markup.MarkupResourceStream

        close, getBaseMarkup, getBaseMarkupResourceStream, getCacheKey, getContainerInfo, getContentType, getDoctype, getEncoding, getInputStream, getLocale, getMarkupClass, getResource, getStyle, getVariation, getWicketId, getWicketNamespace, isHtml5, lastModifiedTime, length, setBaseMarkup, setCacheKey, setDoctype, setLocale, setStyle, setVariation, setWicketNamespace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SharedMarkupResourceStream

        public SharedMarkupResourceStream​(org.apache.wicket.util.resource.IResourceStream resourceStream,
                                          org.apache.wicket.MarkupContainer container,
                                          IPortalMode portalMode)
    • Method Detail

      • locationAsString

        public java.lang.String locationAsString()
        Specified by:
        locationAsString in interface org.apache.wicket.util.resource.IFixedLocationResourceStream
        Overrides:
        locationAsString in class org.apache.wicket.markup.MarkupResourceStream