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() |
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() |
String |
getDoctype()
Gets doctype.
|
String |
getEncoding()
Gets the markup encoding.
|
InputStream |
getInputStream() |
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() |
Bytes |
length() |
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) |
void |
setStyle(String style) |
void |
setVariation(String variation) |
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 IFixedLocationResourceStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface IResourceStreamIOExceptionpublic String getContentType()
getContentType in interface IResourceStreampublic InputStream getInputStream() throws ResourceStreamNotFoundException
getInputStream in interface IResourceStreamResourceStreamNotFoundExceptionpublic Locale getLocale()
getLocale in interface IResourceStreampublic Time lastModifiedTime()
lastModifiedTime in interface IModifiablepublic Bytes length()
length in interface IResourceStreampublic void setLocale(Locale locale)
setLocale in interface IResourceStreampublic 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 IResourceStreampublic String getVariation()
getVariation in interface IResourceStreampublic void setStyle(String style)
setStyle in interface IResourceStreampublic void setVariation(String variation)
setVariation in interface IResourceStreampublic final String getDoctype()
public final void setDoctype(CharSequence doctype)
doctype - doctypepublic boolean isHtml5()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.