类 SpringResourceURLConnection


  • public class SpringResourceURLConnection
    extends io.microsphere.net.DelegatingURLConnection
    Spring Resource URLConnection
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    Resource, ResourceLoader
    • 字段概要

      • 从类继承的字段 java.net.URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • 构造器概要

      构造器 
      构造器 说明
      SpringResourceURLConnection​(java.net.URL rawURL, org.springframework.core.io.Resource resource)
      Constructs a URL connection to the specified URL.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.springframework.core.io.Resource getResource()
      Get the Resource
      • 从类继承的方法 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
      • 从类继承的方法 java.net.URLConnection

        getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getFileNameMap, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setFileNameMap
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • 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.
        参数:
        rawURL - the raw URL
        resource - the Resource
        抛出:
        java.io.IOException
    • 方法详细资料

      • getResource

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