类 SpringProtocolURLStreamHandler

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware

    public class SpringProtocolURLStreamHandler
    extends io.microsphere.net.ExtendableProtocolURLStreamHandler
    implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.EnvironmentAware
    The Spring URLStreamHandler component supports supports the "spring" sub-protocols, like "spring:{sub-protocol}:{ext-1}: ... :{ext-n}://...", {sub-protocol} is required, each between {ext-1} to {ext-n} is the optional extension part. for instance, "spring:resource:classpath://abc.properties",
    • {sub-protocol} : "resource"
    • {ext-1} : "classpath"
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static java.lang.String PROTOCOL  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void afterPropertiesSet()  
      org.springframework.core.io.ResourceLoader getResourceLoader()  
      protected void initSubProtocolURLConnectionFactories​(java.util.List<io.microsphere.net.SubProtocolURLConnectionFactory> factories)  
      protected java.net.URLConnection openConnection​(java.net.URL url, java.net.Proxy proxy)  
      void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  
      void setEnvironment​(org.springframework.core.env.Environment environment)  
      void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)  
      • 从类继承的方法 io.microsphere.net.ExtendableProtocolURLStreamHandler

        equals, getHandlePackages, getHandlePackagesPropertyValue, getProtocol, hashCode, hostsEqual, init, openConnection, openFallbackConnection, parseURL, reformSpec, resolveAuthority, resolvePath, resolveSubProtocols, toExternalForm, toString
      • 从类继承的方法 java.net.URLStreamHandler

        getDefaultPort, getHostAddress, sameFile, setURL, setURL
      • 从类继承的方法 java.lang.Object

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

      • PROTOCOL

        public static final java.lang.String PROTOCOL
        另请参阅:
        常量字段值
    • 构造器详细资料

      • SpringProtocolURLStreamHandler

        public SpringProtocolURLStreamHandler()
    • 方法详细资料

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception
      • initSubProtocolURLConnectionFactories

        protected void initSubProtocolURLConnectionFactories​(java.util.List<io.microsphere.net.SubProtocolURLConnectionFactory> factories)
        覆盖:
        initSubProtocolURLConnectionFactories 在类中 io.microsphere.net.ExtendableProtocolURLStreamHandler
      • openConnection

        protected java.net.URLConnection openConnection​(java.net.URL url,
                                                        java.net.Proxy proxy)
                                                 throws java.io.IOException
        覆盖:
        openConnection 在类中 io.microsphere.net.ExtendableProtocolURLStreamHandler
        抛出:
        java.io.IOException
      • getResourceLoader

        public org.springframework.core.io.ResourceLoader getResourceLoader()
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        指定者:
        setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAware
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        指定者:
        setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware
        抛出:
        org.springframework.beans.BeansException
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        指定者:
        setEnvironment 在接口中 org.springframework.context.EnvironmentAware