public class MarkupResourceStream extends Object implements IResourceStream, IFixedLocationResourceStream
Modifier and Type | Field and Description |
---|---|
static String |
WICKET_XHTML_DTD |
Constructor and Description |
---|
MarkupResourceStream(IResourceStream resourceStream)
Construct.
|
MarkupResourceStream(IResourceStream resourceStream,
ContainerInfo containerInfo,
Class<?> markupClass)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the resource.
|
Markup |
getBaseMarkup()
In case of markup inheritance, the base markup resource.
|
MarkupResourceStream |
getBaseMarkupResourceStream()
Get the resource stream containing the base markup (markup inheritance)
|
String |
getCacheKey()
Gets cacheKey.
|
ContainerInfo |
getContainerInfo()
Get the container info associated with the markup
|
String |
getContentType()
Gets the mime type of this resource
|
String |
getDoctype()
Gets doctype.
|
String |
getEncoding()
Gets the markup encoding.
|
InputStream |
getInputStream()
Gets the resource stream.
|
Locale |
getLocale() |
Class<? extends Component> |
getMarkupClass()
Get the actual component class the markup is directly associated with.
|
IResourceStream |
getResource()
Gets the resource that contains this markup
|
String |
getStyle() |
String |
getVariation() |
String |
getWicketId() |
String |
getWicketNamespace()
Get the wicket namespace valid for this specific markup
|
boolean |
isHtml5() |
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed.
|
Bytes |
length()
Gets the size of this resource
|
String |
locationAsString() |
void |
setBaseMarkup(Markup baseMarkup)
In case of markup inheritance, the base markup.
|
void |
setCacheKey(String cacheKey)
Set the cache key
|
void |
setDoctype(CharSequence doctype)
Sets doctype.
|
void |
setLocale(Locale locale)
This method shouldn't be used from the outside.
|
void |
setStyle(String style)
This method shouldn't be used from the outside.
|
void |
setVariation(String variation)
This method shouldn't be used from the outside.
|
void |
setWicketNamespace(String wicketNamespace)
Sets wicketNamespace.
|
String |
toString() |
public static final String WICKET_XHTML_DTD
public MarkupResourceStream(IResourceStream resourceStream)
resourceStream
- public MarkupResourceStream(IResourceStream resourceStream, ContainerInfo containerInfo, Class<?> markupClass)
resourceStream
- containerInfo
- markupClass
- public String locationAsString()
locationAsString
in interface IFixedLocationResourceStream
public void close() throws IOException
IResourceStream
close
in interface Closeable
close
in interface AutoCloseable
close
in interface IResourceStream
IOException
public String getContentType()
IResourceStream
getContentType
in interface IResourceStream
public InputStream getInputStream() throws ResourceStreamNotFoundException
IResourceStream
getInputStream
in interface IResourceStream
ResourceStreamNotFoundException
IResourceStream.close()
public Locale getLocale()
getLocale
in interface IResourceStream
public Time lastModifiedTime()
IModifiable
lastModifiedTime
in interface IModifiable
Time
or
null
if that information is not availablepublic Bytes length()
IResourceStream
length
in interface IResourceStream
null
if unknownpublic void setLocale(Locale locale)
IResourceStream
setLocale
in interface IResourceStream
locale
- The Locale where this stream did resolve to.public Class<? extends Component> getMarkupClass()
public ContainerInfo getContainerInfo()
public final String getCacheKey()
public final void setCacheKey(String cacheKey)
cacheKey
- public IResourceStream getResource()
public String getEncoding()
public String getWicketNamespace()
public final String getWicketId()
public final void setWicketNamespace(String wicketNamespace)
wicketNamespace
- wicketNamespacepublic MarkupResourceStream getBaseMarkupResourceStream()
public void setBaseMarkup(Markup baseMarkup)
baseMarkup
- The base markuppublic Markup getBaseMarkup()
public String getStyle()
getStyle
in interface IResourceStream
public String getVariation()
getVariation
in interface IResourceStream
public void setStyle(String style)
IResourceStream
setStyle
in interface IResourceStream
style
- The style where this stream did resolve to.public void setVariation(String variation)
IResourceStream
setVariation
in interface IResourceStream
variation
- The Variation where this stream did resolve to.public final String getDoctype()
public final void setDoctype(CharSequence doctype)
doctype
- doctypepublic boolean isHtml5()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.