예제 #1
0
 public static DataSource getArtifactInfoByUri(String uri)
     throws IOException, MalformedURLException {
   DSDispatcher _dsDispatcher = new DSDispatcher();
   UriBuilder _uriBuilder = new UriBuilder();
   _uriBuilder.addPathSegment(uri);
   String _url =
       _uriBuilder.buildUri(
           Collections.<String, Object>emptyMap(), Collections.<String, Object>emptyMap());
   DataSource _retVal =
       _dsDispatcher.doGET(
           _url,
           Collections.<String, Object>emptyMap(),
           "application/vnd.org.jfrog.artifactory.search.ArtifactSearchResult+json");
   return _retVal;
 }
예제 #2
0
 public DataSource getArtifactlistAsApplicationXml() throws IOException, MalformedURLException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   String _url = _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   DataSource _retVal = _dsDispatcher.doGET(_url, _headerParameterValues, "application/xml");
   return _retVal;
 }
예제 #3
0
 public void put(DataSource input) throws IOException, MalformedURLException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   String _url =
       _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   DataSource _retVal =
       _dsDispatcher.doPUT(input, "application/xml", _url, _headerParameterValues, null);
   return;
 }
예제 #4
0
 public DataSource getSystemVersionJson() throws IOException, MalformedURLException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   String _url = _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   DataSource _retVal =
       _dsDispatcher.doGET(
           _url,
           _headerParameterValues,
           "application/vnd.org.jfrog.artifactory.system.Version+json");
   return _retVal;
 }
예제 #5
0
 public DataSource postAsTextPlain(DataSource input)
     throws IOException, MalformedURLException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   String _url =
       _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   DataSource _retVal =
       _dsDispatcher.doPOST(
           input, "application/xml", _url, _headerParameterValues, "text/plain");
   return _retVal;
 }
예제 #6
0
 public DataSource getRepositoryDetailsListJson(String type)
     throws IOException, MalformedURLException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   _queryParameterValues.put("type", type);
   String _url = _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   DataSource _retVal =
       _dsDispatcher.doGET(
           _url,
           _headerParameterValues,
           "application/vnd.org.jfrog.artifactory.repositories.RepositoryDetailsList+json");
   return _retVal;
 }
예제 #7
0
 public DataSource
     getAsApplicationVndOrgJfrogArtifactoryRepositoriesRepositoryConfigurationJson()
         throws IOException, MalformedURLException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   String _url =
       _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   DataSource _retVal =
       _dsDispatcher.doGET(
           _url,
           _headerParameterValues,
           "application/vnd.org.jfrog.artifactory.repositories.RepositoryConfiguration+json");
   return _retVal;
 }
예제 #8
0
 public DataSource getArtifactSearchResultJson(String name, String repos)
     throws IOException, MalformedURLException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   _queryParameterValues.put("name", name);
   _queryParameterValues.put("repos", repos);
   String _url =
       _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   DataSource _retVal =
       _dsDispatcher.doGET(
           _url,
           _headerParameterValues,
           "application/vnd.org.jfrog.artifactory.search.ArtifactSearchResult+json");
   return _retVal;
 }