类 SpringPropertySourcesURLConnectionAdapter
- java.lang.Object
-
- java.net.URLConnection
-
- io.microsphere.spring.net.SpringPropertySourcesURLConnectionAdapter
-
public class SpringPropertySourcesURLConnectionAdapter extends java.net.URLConnection
TheURLConnection
adapter class is based on the SpringPropertySources
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
-
构造器概要
构造器 限定符 构造器 说明 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
-
-
-
-
构造器详细资料
-
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
-
-