Package io.microsphere.spring.net
Class SpringResourceURLConnectionFactory
java.lang.Object
io.microsphere.spring.net.SpringSubProtocolURLConnectionFactory
io.microsphere.spring.net.SpringResourceURLConnectionFactory
- All Implemented Interfaces:
io.microsphere.net.SubProtocolURLConnectionFactory
Spring
Resource
SubProtocolURLConnectionFactory
- Since:
- 1.0.0
- Author:
- Mercy
-
Constructor Summary
ConstructorsConstructorDescriptionSpringResourceURLConnectionFactory
(org.springframework.core.io.ResourceLoader resourceLoader) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.core.io.Resource
findResource
(URL url, List<String> subProtocols) protected String
Get the sub-protocolMethods inherited from class io.microsphere.spring.net.SpringSubProtocolURLConnectionFactory
supports
-
Constructor Details
-
SpringResourceURLConnectionFactory
public SpringResourceURLConnectionFactory(org.springframework.core.io.ResourceLoader resourceLoader)
-
-
Method Details
-
create
- Throws:
IOException
-
findResource
protected org.springframework.core.io.Resource findResource(URL url, List<String> subProtocols) throws IOException - Throws:
IOException
-
getSubProtocol
Description copied from class:SpringSubProtocolURLConnectionFactory
Get the sub-protocol- Specified by:
getSubProtocol
in classSpringSubProtocolURLConnectionFactory
- Returns:
- non-null;
-