Class UrlSource

  • All Implemented Interfaces:
    com.xebialabs.deployit.server.api.importer.ImportSource

    public class UrlSource
    extends java.lang.Object
    implements com.xebialabs.deployit.server.api.importer.ImportSource
    • Constructor Summary

      Constructors 
      Constructor Description
      UrlSource​(java.net.URL location, java.lang.String user, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanUp()  
      protected org.apache.http.HttpResponse executeGetRequest​(org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context, java.net.URI uri)  
      java.io.File getFile()  
      protected java.net.URI getFinalUri​(org.apache.http.client.protocol.HttpClientContext context, java.net.URI uri)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UrlSource

        public UrlSource​(java.net.URL location,
                         java.lang.String user,
                         java.lang.String password)
    • Method Detail

      • getFile

        public java.io.File getFile()
        Specified by:
        getFile in interface com.xebialabs.deployit.server.api.importer.ImportSource
      • cleanUp

        public void cleanUp()
        Specified by:
        cleanUp in interface com.xebialabs.deployit.server.api.importer.ImportSource
      • getFinalUri

        protected java.net.URI getFinalUri​(org.apache.http.client.protocol.HttpClientContext context,
                                           java.net.URI uri)
                                    throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • executeGetRequest

        protected org.apache.http.HttpResponse executeGetRequest​(org.apache.http.client.HttpClient client,
                                                                 org.apache.http.protocol.HttpContext context,
                                                                 java.net.URI uri)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object