Class FilterURLConnection

  • All Implemented Interfaces:
    FileBrowsingConnection

    @API(src=PUBLIC,
         type=EXTENDABLE)
    public class FilterURLConnection
    extends java.net.URLConnection
    implements FileBrowsingConnection
    URLConnection that delegates all methods to the connection given as a parameter.
    Since:
    17
    • Field Detail

      • delegateConnection

        protected java.net.URLConnection delegateConnection
        The underlying connection.
    • Constructor Detail

      • FilterURLConnection

        public FilterURLConnection​(java.net.URLConnection delegateConnection)
        Constructor.
        Parameters:
        delegateConnection - The underlying connection.
    • Method Detail

      • getInputStream

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

        public java.io.OutputStream getOutputStream()
                                             throws java.io.IOException
        Overrides:
        getOutputStream in class java.net.URLConnection
        Throws:
        java.io.IOException
        See Also:
        URLConnection.getOutputStream()
      • connect

        public void connect()
                     throws java.io.IOException
        Specified by:
        connect in class java.net.URLConnection
        Throws:
        java.io.IOException
        See Also:
        URLConnection.connect()
      • addRequestProperty

        public void addRequestProperty​(java.lang.String key,
                                       java.lang.String value)
        Overrides:
        addRequestProperty in class java.net.URLConnection
        See Also:
        URLConnection.addRequestProperty(java.lang.String, java.lang.String)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • getAllowUserInteraction

        public boolean getAllowUserInteraction()
        Overrides:
        getAllowUserInteraction in class java.net.URLConnection
        See Also:
        URLConnection.getAllowUserInteraction()
      • getConnectTimeout

        public int getConnectTimeout()
        Overrides:
        getConnectTimeout in class java.net.URLConnection
        See Also:
        URLConnection.getConnectTimeout()
      • getContent

        public java.lang.Object getContent()
                                    throws java.io.IOException
        Overrides:
        getContent in class java.net.URLConnection
        Throws:
        java.io.IOException
        See Also:
        URLConnection.getContent()
      • getContent

        public java.lang.Object getContent​(java.lang.Class[] classes)
                                    throws java.io.IOException
        Overrides:
        getContent in class java.net.URLConnection
        Throws:
        java.io.IOException
        See Also:
        URLConnection.getContent(java.lang.Class[])
      • getContentEncoding

        public java.lang.String getContentEncoding()
        Overrides:
        getContentEncoding in class java.net.URLConnection
        See Also:
        URLConnection.getContentEncoding()
      • getContentLength

        public int getContentLength()
        Overrides:
        getContentLength in class java.net.URLConnection
        See Also:
        URLConnection.getContentLength()
      • getContentType

        public java.lang.String getContentType()
        Overrides:
        getContentType in class java.net.URLConnection
        See Also:
        URLConnection.getContentType()
      • getDate

        public long getDate()
        Overrides:
        getDate in class java.net.URLConnection
        See Also:
        URLConnection.getDate()
      • getDefaultUseCaches

        public boolean getDefaultUseCaches()
        Overrides:
        getDefaultUseCaches in class java.net.URLConnection
        See Also:
        URLConnection.getDefaultUseCaches()
      • getDoInput

        public boolean getDoInput()
        Overrides:
        getDoInput in class java.net.URLConnection
        See Also:
        URLConnection.getDoInput()
      • getDoOutput

        public boolean getDoOutput()
        Overrides:
        getDoOutput in class java.net.URLConnection
        See Also:
        URLConnection.getDoOutput()
      • getExpiration

        public long getExpiration()
        Overrides:
        getExpiration in class java.net.URLConnection
        See Also:
        URLConnection.getExpiration()
      • getHeaderField

        public java.lang.String getHeaderField​(int n)
        Overrides:
        getHeaderField in class java.net.URLConnection
        See Also:
        URLConnection.getHeaderField(int)
      • getHeaderField

        public java.lang.String getHeaderField​(java.lang.String name)
        Overrides:
        getHeaderField in class java.net.URLConnection
        See Also:
        URLConnection.getHeaderField(java.lang.String)
      • getHeaderFieldDate

        public long getHeaderFieldDate​(java.lang.String name,
                                       long Default)
        Overrides:
        getHeaderFieldDate in class java.net.URLConnection
        See Also:
        URLConnection.getHeaderFieldDate(java.lang.String, long)
      • getHeaderFieldInt

        public int getHeaderFieldInt​(java.lang.String name,
                                     int Default)
        Overrides:
        getHeaderFieldInt in class java.net.URLConnection
        See Also:
        URLConnection.getHeaderFieldInt(java.lang.String, int)
      • getHeaderFieldKey

        public java.lang.String getHeaderFieldKey​(int n)
        Overrides:
        getHeaderFieldKey in class java.net.URLConnection
        See Also:
        URLConnection.getHeaderFieldKey(int)
      • getHeaderFields

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaderFields()
        Overrides:
        getHeaderFields in class java.net.URLConnection
        See Also:
        URLConnection.getHeaderFields()
      • getIfModifiedSince

        public long getIfModifiedSince()
        Overrides:
        getIfModifiedSince in class java.net.URLConnection
        See Also:
        URLConnection.getIfModifiedSince()
      • getLastModified

        public long getLastModified()
        Overrides:
        getLastModified in class java.net.URLConnection
        See Also:
        URLConnection.getLastModified()
      • getPermission

        public java.security.Permission getPermission()
                                               throws java.io.IOException
        Overrides:
        getPermission in class java.net.URLConnection
        Throws:
        java.io.IOException
        See Also:
        URLConnection.getPermission()
      • getReadTimeout

        public int getReadTimeout()
        Overrides:
        getReadTimeout in class java.net.URLConnection
        See Also:
        URLConnection.getReadTimeout()
      • getRequestProperties

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getRequestProperties()
        Overrides:
        getRequestProperties in class java.net.URLConnection
        See Also:
        URLConnection.getRequestProperties()
      • getRequestProperty

        public java.lang.String getRequestProperty​(java.lang.String key)
        Overrides:
        getRequestProperty in class java.net.URLConnection
        See Also:
        URLConnection.getRequestProperty(java.lang.String)
      • getURL

        public java.net.URL getURL()
        Overrides:
        getURL in class java.net.URLConnection
        See Also:
        URLConnection.getURL()
      • getUseCaches

        public boolean getUseCaches()
        Overrides:
        getUseCaches in class java.net.URLConnection
        See Also:
        URLConnection.getUseCaches()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • setAllowUserInteraction

        public void setAllowUserInteraction​(boolean allowuserinteraction)
        Overrides:
        setAllowUserInteraction in class java.net.URLConnection
        See Also:
        URLConnection.setAllowUserInteraction(boolean)
      • setConnectTimeout

        public void setConnectTimeout​(int timeout)
        Overrides:
        setConnectTimeout in class java.net.URLConnection
        See Also:
        URLConnection.setConnectTimeout(int)
      • setDefaultUseCaches

        public void setDefaultUseCaches​(boolean defaultusecaches)
        Overrides:
        setDefaultUseCaches in class java.net.URLConnection
        See Also:
        URLConnection.setDefaultUseCaches(boolean)
      • setDoInput

        public void setDoInput​(boolean doinput)
        Overrides:
        setDoInput in class java.net.URLConnection
        See Also:
        URLConnection.setDoInput(boolean)
      • setDoOutput

        public void setDoOutput​(boolean dooutput)
        Overrides:
        setDoOutput in class java.net.URLConnection
        See Also:
        URLConnection.setDoOutput(boolean)
      • setIfModifiedSince

        public void setIfModifiedSince​(long ifmodifiedsince)
        Overrides:
        setIfModifiedSince in class java.net.URLConnection
        See Also:
        URLConnection.setIfModifiedSince(long)
      • setReadTimeout

        public void setReadTimeout​(int timeout)
        Overrides:
        setReadTimeout in class java.net.URLConnection
        See Also:
        URLConnection.setReadTimeout(int)
      • setRequestProperty

        public void setRequestProperty​(java.lang.String key,
                                       java.lang.String value)
        Overrides:
        setRequestProperty in class java.net.URLConnection
        See Also:
        URLConnection.setRequestProperty(java.lang.String, java.lang.String)
      • setUseCaches

        public void setUseCaches​(boolean usecaches)
        Overrides:
        setUseCaches in class java.net.URLConnection
        See Also:
        URLConnection.setUseCaches(boolean)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.net.URLConnection
        See Also:
        URLConnection.toString()