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
  • 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 raw URL
      resource - the Resource
      Throws:
      IOException
  • Method Details

    • getResource

      public org.springframework.core.io.Resource getResource()
      Get the Resource
      Returns:
      the Resource