类 SpringPropertySourcesURLConnectionAdapter


  • public class SpringPropertySourcesURLConnectionAdapter
    extends java.net.URLConnection
    The URLConnection adapter class is based on the Spring PropertySources

    The URL pattern : "spring:env:property-sources://{property-name-prefix}/{media-type}":

    • {property-name-prefix} : the prefix of property name, for instance : "microsphere." or "microsphere"
    • {media-type} : the media type, may be : "text/properties"(as default if absent) or "text/yaml"
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static org.springframework.util.MimeType DEFAULT_MEDIA_TYPE  
      • 从类继承的字段 java.net.URLConnection

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

      构造器 
      限定符 构造器 说明
      protected SpringPropertySourcesURLConnectionAdapter​(java.net.URL url, org.springframework.core.env.PropertySources propertySources, org.springframework.core.convert.support.ConfigurableConversionService conversionService)
      Constructs a URL connection to the specified URL.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void connect()  
      java.io.InputStream getInputStream()  
      • 从类继承的方法 java.net.URLConnection

        addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 字段详细资料

      • DEFAULT_MEDIA_TYPE

        public static final org.springframework.util.MimeType DEFAULT_MEDIA_TYPE
    • 构造器详细资料

      • SpringPropertySourcesURLConnectionAdapter

        protected SpringPropertySourcesURLConnectionAdapter​(java.net.URL url,
                                                            org.springframework.core.env.PropertySources propertySources,
                                                            org.springframework.core.convert.support.ConfigurableConversionService conversionService)
        Constructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created.
        参数:
        url - the specified URL.
        propertySources - PropertySources
        conversionService - ConfigurableConversionService
    • 方法详细资料

      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        覆盖:
        getInputStream 在类中 java.net.URLConnection
        抛出:
        java.io.IOException
      • connect

        public void connect()
                     throws java.io.IOException
        指定者:
        connect 在类中 java.net.URLConnection
        抛出:
        java.io.IOException