|
||||||||||
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.
Constructor Summary | |
---|---|
MarkupResourceStream(IResourceStream resourceStream)
Construct. |
|
MarkupResourceStream(IResourceStream resourceStream,
ContainerInfo containerInfo,
java.lang.Class markupClass)
Construct. |
Method Summary | |
---|---|
void |
close()
Closes the resource. |
java.lang.String |
getCacheKey()
Gets cacheKey. |
ContainerInfo |
getContainerInfo()
Get the container info associated with the markup |
java.lang.String |
getContentType()
Gets the mime type of this resource |
java.io.InputStream |
getInputStream()
Gets the resource stream. |
java.util.Locale |
getLocale()
|
java.lang.Class |
getMarkupClass()
Get the actual component class the markup is directly associated with. |
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
long |
length()
Gets the size of this resource in bytes TODO 1.5: rename to lengthInBytes() or let it return some sort of size object |
java.lang.String |
locationAsString()
|
void |
setCacheKey(java.lang.String cacheKey)
Set the cache key |
void |
setLocale(java.util.Locale locale)
This method shouldn't be used for the outside, It is used by the Loaders to set the resolved locale. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarkupResourceStream(IResourceStream resourceStream)
resourceStream
- public MarkupResourceStream(IResourceStream resourceStream, ContainerInfo containerInfo, java.lang.Class markupClass)
resourceStream
- containerInfo
- markupClass
- Method Detail |
---|
public java.lang.String locationAsString()
locationAsString
in interface IFixedLocationResourceStream
public void close() throws java.io.IOException
IResourceStream
close
in interface IResourceStream
java.io.IOException
IResourceStream.close()
public java.lang.String getContentType()
IResourceStream
getContentType
in interface IResourceStream
ResourceStreamRequestTarget
handle the Content-Type automaticallyIResourceStream.getContentType()
public java.io.InputStream getInputStream() throws ResourceStreamNotFoundException
IResourceStream
getInputStream
in interface IResourceStream
ResourceStreamNotFoundException
IResourceStream.getInputStream()
public java.util.Locale getLocale()
getLocale
in interface IResourceStream
IResourceStream.getLocale()
public Time lastModifiedTime()
IModifiable
lastModifiedTime
in interface IModifiable
Time
IModifiable.lastModifiedTime()
public long length()
IResourceStream
length
in interface IResourceStream
IResourceStream.length()
public void setLocale(java.util.Locale locale)
IResourceStream
setLocale
in interface IResourceStream
locale
- The Locale where this stream did resolve to.IResourceStream.setLocale(java.util.Locale)
public java.lang.Class getMarkupClass()
public ContainerInfo getContainerInfo()
public final java.lang.String getCacheKey()
public final void setCacheKey(java.lang.String cacheKey)
cacheKey
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |