Class UrlSource
- java.lang.Object
-
- com.xebialabs.deployit.service.importer.source.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 voidcleanUp()protected org.apache.http.HttpResponseexecuteGetRequest(org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context, java.net.URI uri)java.io.FilegetFile()protected java.net.URIgetFinalUri(org.apache.http.client.protocol.HttpClientContext context, java.net.URI uri)java.lang.StringtoString()
-
-
-
Method Detail
-
getFile
public java.io.File getFile()
- Specified by:
getFilein interfacecom.xebialabs.deployit.server.api.importer.ImportSource
-
cleanUp
public void cleanUp()
- Specified by:
cleanUpin interfacecom.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:
toStringin classjava.lang.Object
-
-