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 intm_classPathIdxprivate intm_contentLengthprivate longm_contentTimeprivate java.lang.Stringm_contentTypeprivate Felixm_frameworkprivate java.io.InputStreamm_isprivate BundleRevisionm_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 voidconnect()intgetContentLength()java.lang.StringgetContentType()java.io.InputStreamgetInputStream()longgetLastModified()(package private) java.net.URLgetLocalURL()Retrieve the entry as a URL using standard protocols such as file: and jar:java.security.PermissiongetPermission()-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, 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, 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:
connectin classjava.net.URLConnection- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Overrides:
getInputStreamin classjava.net.URLConnection- Throws:
java.io.IOException
-
getContentLength
public int getContentLength()
- Overrides:
getContentLengthin classjava.net.URLConnection
-
getLastModified
public long getLastModified()
- Overrides:
getLastModifiedin classjava.net.URLConnection
-
getContentType
public java.lang.String getContentType()
- Overrides:
getContentTypein classjava.net.URLConnection
-
getPermission
public java.security.Permission getPermission()
- Overrides:
getPermissionin 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
-
-