|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
|
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()
|
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
close
in interface Closeable
close
in interface IResourceStream
IOException
public String getContentType()
getContentType
in interface IResourceStream
public InputStream getInputStream() throws ResourceStreamNotFoundException
getInputStream
in interface IResourceStream
ResourceStreamNotFoundException
public Locale getLocale()
getLocale
in interface IResourceStream
public Time lastModifiedTime()
lastModifiedTime
in interface IModifiable
public Bytes length()
length
in interface IResourceStream
public void setLocale(Locale locale)
setLocale
in interface IResourceStream
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)
setStyle
in interface IResourceStream
public void setVariation(String variation)
setVariation
in interface IResourceStream
public String toString()
toString
in class Object
public final String getDoctype()
public final void setDoctype(CharSequence doctype)
doctype
- doctypepublic boolean isHtml5()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |