Class URLHandlersBundleURLConnection


  • class URLHandlersBundleURLConnection
    extends java.net.URLConnection
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • m_framework

        private Felix m_framework
      • 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 class java.net.URLConnection
        Throws:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Overrides:
        getInputStream in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getContentLength

        public int getContentLength()
        Overrides:
        getContentLength in class java.net.URLConnection
      • getContentLengthLong

        public long getContentLengthLong()
        Overrides:
        getContentLengthLong in class java.net.URLConnection
      • getLastModified

        public long getLastModified()
        Overrides:
        getLastModified in class java.net.URLConnection
      • getContentType

        public java.lang.String getContentType()
        Overrides:
        getContentType in class java.net.URLConnection
      • getPermission

        public java.security.Permission getPermission()
        Overrides:
        getPermission in class java.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