|
||||||||||
| 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.
| 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<? extends Component> |
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 IFixedLocationResourceStreamIFixedLocationResourceStream.locationAsString()
public void close()
throws java.io.IOException
IResourceStream
close in interface java.io.Closeableclose in interface IResourceStreamjava.io.IOExceptionIResourceStream.close()public java.lang.String getContentType()
IResourceStream
getContentType in interface IResourceStreamResourceStreamRequestTarget handle the Content-Type automaticallyIResourceStream.getContentType()
public java.io.InputStream getInputStream()
throws ResourceStreamNotFoundException
IResourceStream
getInputStream in interface IResourceStreamResourceStreamNotFoundExceptionIResourceStream.getInputStream()public java.util.Locale getLocale()
getLocale in interface IResourceStreamIResourceStream.getLocale()public Time lastModifiedTime()
IModifiable
lastModifiedTime in interface IModifiableTimeIModifiable.lastModifiedTime()public long length()
IResourceStream
length in interface IResourceStreamIResourceStream.length()public void setLocale(java.util.Locale locale)
IResourceStream
setLocale in interface IResourceStreamlocale - The Locale where this stream did resolve to.IResourceStream.setLocale(java.util.Locale)public java.lang.Class<? extends Component> 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.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||