Class SpringPropertySourcesURLConnectionAdapter

java.lang.Object
java.net.URLConnection
io.microsphere.spring.net.SpringPropertySourcesURLConnectionAdapter

public class SpringPropertySourcesURLConnectionAdapter extends 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"
Since:
1.0.0
Author:
Mercy
  • Field Details

    • DEFAULT_MEDIA_TYPE

      public static final org.springframework.util.MimeType DEFAULT_MEDIA_TYPE
  • Constructor Details

    • SpringPropertySourcesURLConnectionAdapter

      protected SpringPropertySourcesURLConnectionAdapter(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.
      Parameters:
      url - the specified URL.
      propertySources - PropertySources
      conversionService - ConfigurableConversionService
  • Method Details