Class SpringResourceURLConnection


  • public class SpringResourceURLConnection
    extends io.microsphere.net.DelegatingURLConnection
    Spring Resource URLConnection
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    Resource, ResourceLoader
    • Field Summary

      • Fields inherited from class java.net.URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringResourceURLConnection​(java.net.URL rawURL, org.springframework.core.io.Resource resource)
      Constructs a URL connection to the specified URL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.core.io.Resource getResource()
      Get the Resource
      • Methods inherited from class io.microsphere.net.DelegatingURLConnection

        addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, setAllowUserInteraction, setConnectTimeout, setDefaultUseCaches, setDoInput, setDoOutput, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
      • Methods inherited from class java.net.URLConnection

        getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap
      • Methods inherited from class java.lang.Object

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

      • SpringResourceURLConnection

        public SpringResourceURLConnection​(java.net.URL rawURL,
                                           org.springframework.core.io.Resource resource)
                                    throws java.io.IOException
        Constructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created.
        Parameters:
        rawURL - the raw URL
        resource - the Resource
        Throws:
        java.io.IOException
    • Method Detail

      • getResource

        public org.springframework.core.io.Resource getResource()
        Get the Resource
        Returns:
        the Resource