Package org.apache.felix.framework
Class URLHandlersBundleURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.apache.felix.framework.URLHandlersBundleURLConnection
-
class URLHandlersBundleURLConnection extends java.net.URLConnection
-
-
Field Summary
Fields Modifier and Type Field Description private int
m_classPathIdx
private int
m_contentLength
private long
m_contentTime
private java.lang.String
m_contentType
private Felix
m_framework
private java.io.InputStream
m_is
private BundleRevision
m_targetRevision
-
Constructor Summary
Constructors Constructor Description URLHandlersBundleURLConnection(java.net.URL url)
URLHandlersBundleURLConnection(java.net.URL url, Felix framework)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
int
getContentLength()
long
getContentLengthLong()
java.lang.String
getContentType()
java.io.InputStream
getInputStream()
long
getLastModified()
(package private) java.net.URL
getLocalURL()
Retrieve the entry as a URL using standard protocols such as file: and jar:java.security.Permission
getPermission()
-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
Field Detail
-
m_framework
private Felix m_framework
-
m_targetRevision
private BundleRevision m_targetRevision
-
m_classPathIdx
private int m_classPathIdx
-
m_contentLength
private int m_contentLength
-
m_contentTime
private long m_contentTime
-
m_contentType
private java.lang.String m_contentType
-
m_is
private java.io.InputStream m_is
-
-
Constructor Detail
-
URLHandlersBundleURLConnection
public URLHandlersBundleURLConnection(java.net.URL url)
-
URLHandlersBundleURLConnection
public URLHandlersBundleURLConnection(java.net.URL url, Felix framework) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
connect
public void connect() throws java.io.IOException
- Specified by:
connect
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getContentLength
public int getContentLength()
- Overrides:
getContentLength
in classjava.net.URLConnection
-
getContentLengthLong
public long getContentLengthLong()
- Overrides:
getContentLengthLong
in classjava.net.URLConnection
-
getLastModified
public long getLastModified()
- Overrides:
getLastModified
in classjava.net.URLConnection
-
getContentType
public java.lang.String getContentType()
- Overrides:
getContentType
in classjava.net.URLConnection
-
getPermission
public java.security.Permission getPermission()
- Overrides:
getPermission
in classjava.net.URLConnection
-
getLocalURL
java.net.URL getLocalURL()
Retrieve the entry as a URL using standard protocols such as file: and jar:- Returns:
- the local URL
-
-