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.DelegatingURLConnectionSpringResourceURLConnection- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Resource,ResourceLoader
-
-
Constructor Summary
Constructors Constructor Description SpringResourceURLConnection(java.net.URL rawURL, org.springframework.core.io.Resource resource)Constructs a URL connection to the specified URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.io.ResourcegetResource()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
-
-
-
-
Constructor Detail
-
SpringResourceURLConnection
public SpringResourceURLConnection(java.net.URL rawURL, org.springframework.core.io.Resource resource) throws java.io.IOExceptionConstructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created.- Parameters:
rawURL- the rawURLresource- theResource- Throws:
java.io.IOException
-
-