|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.MarkupResourceStream
public class MarkupResourceStream
An IResourceStream implementation with specific extensions for markup resource streams.
| Field Summary | |
|---|---|
static String |
WICKET_XHTML_DTD
|
| Constructor Summary | |
|---|---|
MarkupResourceStream(IResourceStream resourceStream)
Construct. |
|
MarkupResourceStream(IResourceStream resourceStream,
ContainerInfo containerInfo,
Class<?> markupClass)
Construct. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String WICKET_XHTML_DTD
| Constructor Detail |
|---|
public MarkupResourceStream(IResourceStream resourceStream)
resourceStream -
public MarkupResourceStream(IResourceStream resourceStream,
ContainerInfo containerInfo,
Class<?> markupClass)
resourceStream - containerInfo - markupClass - | Method Detail |
|---|
public String locationAsString()
locationAsString in interface IFixedLocationResourceStream
public void close()
throws IOException
IResourceStream
close in interface Closeableclose in interface IResourceStreamIOExceptionpublic String getContentType()
IResourceStream
getContentType in interface IResourceStream
public InputStream getInputStream()
throws ResourceStreamNotFoundException
IResourceStream
getInputStream in interface IResourceStreamResourceStreamNotFoundExceptionIResourceStream.close()public Locale getLocale()
getLocale in interface IResourceStreampublic Time lastModifiedTime()
IModifiable
lastModifiedTime in interface IModifiableTime or
null if that information is not availablepublic Bytes length()
IResourceStream
length in interface IResourceStreamnull if unknownpublic void setLocale(Locale locale)
IResourceStream
setLocale in interface IResourceStreamlocale - 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 IResourceStreampublic String getVariation()
getVariation in interface IResourceStreampublic void setStyle(String style)
IResourceStream
setStyle in interface IResourceStreamstyle - The style where this stream did resolve to.public void setVariation(String variation)
IResourceStream
setVariation in interface IResourceStreamvariation - The Variation where this stream did resolve to.public String toString()
toString in class Objectpublic final String getDoctype()
public final void setDoctype(CharSequence doctype)
doctype - doctypepublic boolean isHtml5()
http://www.w3.org/TR/html5-diff/#doctype
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||