|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
org.apache.sling.bundleresource.impl.BundleResourceURLConnection
public class BundleResourceURLConnection
A Bundle based UIRLConnection
which uses the bundle's last
modification time as the last modification time of the URL in contrast to the
(Apache Felix) URLConnection used for the bundle entry, which always returns
zero.
Field Summary |
---|
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
protected |
BundleResourceURLConnection(org.osgi.framework.Bundle bundle,
String bundlePath,
URL url)
|
Method Summary | |
---|---|
void |
connect()
Connects this URLConnection to access the data and metadata such as the content length, last modification time and content type. |
int |
getContentLength()
Returns the content length of the Bundle provided URLConnection |
String |
getContentType()
Returns the content type of the Bundle provided URLConnection |
InputStream |
getInputStream()
Returns the input stream of the Bundle provided URLConnection |
long |
getLastModified()
Returns the last modification time of the underlying bundle, which is the last time the bundle was installed or updated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BundleResourceURLConnection(org.osgi.framework.Bundle bundle, String bundlePath, URL url)
Method Detail |
---|
public void connect() throws IOException
connect
in class URLConnection
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
public int getContentLength()
getContentLength
in class URLConnection
public long getLastModified()
getLastModified
in class URLConnection
public String getContentType()
getContentType
in class URLConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |