title: Proxy settings in Spring Boot
body: <p>My application needs to fetch an XML file from the web, as follows:</p>
  
  <pre><code>@Bean
  public HTTPMetadataProvider metadataProvider()
          throws MetadataProviderException {
      String metadataURL = "http://idp.ssocircle.com/idp-meta.xml";
      final Timer backgroundTaskTimer = new Timer(true);
      HTTPMetadataProvider provider = 
              new HTTPMetadataProvider(backgroundTaskTimer, httpClient(), metadataURL);
      provider.setParserPool(parserPool());
      return provider;
  }
  </code></pre>
  
  <p>I'm working by using a filtered network, thus the app is unable to retrieve that file.</p>
  
  <p>There is a way to setup an <strong>HTTP Proxy</strong> (e.g. <code>myproxy.eu:8080</code>) in <strong>Spring Boot</strong>?</p>
  
  <hr>
  
  <p>Alternatively, I could retrieve the XML file by using the HTTPS protocol, but I should properly setup the metadata provider in order to support an encrypted connection... How? </p>