Package io.microsphere.spring.net
Class SpringResourceURLConnection
java.lang.Object
java.net.URLConnection
io.microsphere.net.DelegatingURLConnection
io.microsphere.spring.net.SpringResourceURLConnection
public class SpringResourceURLConnection
extends io.microsphere.net.DelegatingURLConnection
Spring
Resource
URLConnection
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
Resource
ResourceLoader
-
Field Summary
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
ConstructorsConstructorDescriptionSpringResourceURLConnection
(URL rawURL, org.springframework.core.io.Resource resource) Constructs a URL connection to the specified URL. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.Resource
Get theResource
Methods inherited from class io.microsphere.net.DelegatingURLConnection
addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, setAllowUserInteraction, setConnectTimeout, setDefaultUseCaches, setDoInput, setDoOutput, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
Methods inherited from class java.net.URLConnection
getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getFileNameMap, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setFileNameMap
-
Constructor Details
-
SpringResourceURLConnection
public SpringResourceURLConnection(URL rawURL, org.springframework.core.io.Resource resource) throws IOException Constructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created.- Parameters:
rawURL
- the rawURL
resource
- theResource
- Throws:
IOException
-
-
Method Details
-
getResource
public org.springframework.core.io.Resource getResource()Get theResource
- Returns:
- the
Resource
-