public interface WebResource
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.Bundle |
getBundle()
The bundle that offers the
WebResource. |
Map<ContentEncoding,Integer> |
getCacheState()
After a
WebResource is requested with a ContentEncoding, the content is cached
in the memory. |
long |
getContentLength(ContentEncoding contentEncoding)
The length of the content of the
WebResource in the specific ContentEncoding. |
String |
getContentType()
The content type of the
WebResource. |
String |
getETag()
The calculated ETag of the
WebResource that can be used to save bandwidth. |
String |
getFileName()
The fileName of the
WebResource. |
InputStream |
getInputStream(ContentEncoding contentEncoding,
int beginIndex)
Creates a new
InputStream to read the content of the WebResource. |
long |
getLastModified()
The date when the
WebResource was last modified. |
String |
getLastModifiedRFC1123GMT()
The RFC1123 GMT representation of the value of
getLastModified(). |
String |
getLibrary()
The name of the library of the
WebResource. |
org.osgi.framework.Version |
getVersion()
The exact version of the
WebResource. |
org.osgi.framework.Bundle getBundle()
WebResource.Map<ContentEncoding,Integer> getCacheState()
WebResource is requested with a ContentEncoding, the content is cached
in the memory.WebResource in the cache for each
ContentEncoding.long getContentLength(ContentEncoding contentEncoding)
WebResource in the specific ContentEncoding.contentEncoding - The ContentEncoding of the WebResource.String getContentType()
WebResource.String getETag()
WebResource that can be used to save bandwidth.String getFileName()
WebResource.InputStream getInputStream(ContentEncoding contentEncoding, int beginIndex) throws IOException
InputStream to read the content of the WebResource.contentEncoding - The ContentEncoding that we should get the data with.beginIndex - The beginning inded of the content.InputStream.IOException - if a read error occures.long getLastModified()
WebResource was last modified. This is normally the date of the
resource within the bundle.String getLastModifiedRFC1123GMT()
getLastModified(). This is normally
used to pass the Last-Modified response header value.String getLibrary()
WebResource. E.g.: jquery.org.osgi.framework.Version getVersion()
WebResource.Copyright © 2011–2015 Everit Kft.. All rights reserved.