|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.html.CompressedPackageResource.CompressingResourceStream
protected abstract class CompressedPackageResource.CompressingResourceStream
IResourceStream implementation which compresses the data with gzip if the requests header Accept-Encoding contains string gzip
| Constructor Summary | |
|---|---|
protected |
CompressedPackageResource.CompressingResourceStream()
|
| Method Summary | |
|---|---|
void |
close()
Closes the resource. |
java.lang.String |
getContentType()
Gets the mime type of this resource |
java.io.InputStream |
getInputStream()
Gets the resource stream. |
java.util.Locale |
getLocale()
|
protected abstract IResourceStream |
getOriginalResourceStream()
|
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CompressedPackageResource.CompressingResourceStream()
| Method Detail |
|---|
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)protected abstract IResourceStream getOriginalResourceStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||