示例#1
0
 /**
  * Create new instance
  *
  * @param url
  */
 public Repositories(String url) throws JAXBException {
   _dsDispatcher = new DSDispatcher();
   _uriBuilder = new UriBuilder();
   List<String> _matrixParamSet;
   _matrixParamSet = _uriBuilder.addPathSegment(url);
   _matrixParamSet = _uriBuilder.addPathSegment("repositories");
   _templateAndMatrixParameterValues = new HashMap<>();
 }
示例#2
0
 /**
  * Create new instance
  *
  * @param url
  */
 public SystemVersion(final String url) throws JAXBException {
   _dsDispatcher = new DSDispatcher();
   _uriBuilder = new UriBuilder();
   List<String> _matrixParamSet;
   _matrixParamSet = _uriBuilder.addPathSegment(url);
   _matrixParamSet = _uriBuilder.addPathSegment("system/version");
   _templateAndMatrixParameterValues = new HashMap<>();
 }
示例#3
0
 /**
  * Create new instance
  *
  * @param url
  */
 public Artifact(final String url) throws JAXBException {
   _dsDispatcher = new DSDispatcher();
   _uriBuilder = new UriBuilder();
   List<String> _matrixParamSet;
   _matrixParamSet = _uriBuilder.addPathSegment(url);
   _matrixParamSet = _uriBuilder.addPathSegment("search");
   _matrixParamSet = _uriBuilder.addPathSegment("artifact");
   _templateAndMatrixParameterValues = new HashMap<>();
 }
示例#4
0
 /** Create new instance */
 public RepoKeyConfiguration(final String url, String repokey) throws JAXBException {
   _dsDispatcher = new DSDispatcher();
   _uriBuilder = new UriBuilder();
   List<String> _matrixParamSet;
   _matrixParamSet = _uriBuilder.addPathSegment(url);
   _matrixParamSet = _uriBuilder.addPathSegment("repositories");
   _matrixParamSet = _uriBuilder.addPathSegment("{repoKey}/configuration");
   _templateAndMatrixParameterValues = new HashMap<>();
   _templateAndMatrixParameterValues.put("repoKey", repokey);
 }
示例#5
0
 /**
  * Create new instance
  *
  * @param url
  */
 public Repositories(String url) throws JAXBException {
   _jc =
       JAXBContext.newInstance(
           "org.jetbrains.idea.maven.services.nexus", getClass().getClassLoader());
   _jaxbDispatcher = new JAXBDispatcher(_jc);
   _dsDispatcher = new DSDispatcher();
   _uriBuilder = new UriBuilder();
   List<String> _matrixParamSet;
   _matrixParamSet = _uriBuilder.addPathSegment(url);
   _matrixParamSet = _uriBuilder.addPathSegment("repositories");
   _templateAndMatrixParameterValues = new HashMap<>();
 }
示例#6
0
 /**
  * Create new instance
  *
  * @param nexusRoot
  */
 public DataIndex(final String nexusRoot) throws JAXBException {
   _jc =
       JAXBContext.newInstance(
           "org.jetbrains.idea.maven.services.nexus", getClass().getClassLoader());
   _jaxbDispatcher = new JAXBDispatcher(_jc);
   _dsDispatcher = new DSDispatcher();
   _uriBuilder = new UriBuilder();
   List<String> _matrixParamSet;
   _matrixParamSet = _uriBuilder.addPathSegment(nexusRoot);
   _matrixParamSet = _uriBuilder.addPathSegment("data_index");
   _templateAndMatrixParameterValues = new HashMap<>();
 }
示例#7
0
 /** Create new instance */
 public DataIndexRepository(String repository) throws JAXBException {
   _jc =
       JAXBContext.newInstance(
           "org.jetbrains.idea.maven.services.nexus", getClass().getClassLoader());
   _jaxbDispatcher = new JAXBDispatcher(_jc);
   _dsDispatcher = new DSDispatcher();
   _uriBuilder = new UriBuilder();
   List<String> _matrixParamSet;
   _matrixParamSet = _uriBuilder.addPathSegment("http://repository.sonatype.org/service/local/");
   _matrixParamSet = _uriBuilder.addPathSegment("data_index/{repository}");
   _templateAndMatrixParameterValues = new HashMap<>();
   _templateAndMatrixParameterValues.put("repository", repository);
 }
示例#8
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;
 }
示例#9
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;
 }
示例#10
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;
 }
示例#11
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;
 }
示例#12
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;
 }
示例#13
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;
 }
示例#14
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;
 }
示例#15
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;
 }
示例#16
0
 public SearchResults getArtifactlistAsSearchResults()
     throws IOException, MalformedURLException, JAXBException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   String _url = _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   Object _retVal = _jaxbDispatcher.doGET(_url, _headerParameterValues, "application/xml");
   if (_retVal == null) {
     return null;
   }
   if (JAXBElement.class.isInstance(_retVal)) {
     JAXBElement jaxbElement = ((JAXBElement) _retVal);
     _retVal = jaxbElement.getValue();
   }
   return ((SearchResults) _retVal);
 }
示例#17
0
 public org.jetbrains.idea.maven.services.nexus.Repositories getRepolistAsRepositories()
     throws IOException, MalformedURLException, JAXBException {
   HashMap<String, Object> _queryParameterValues = new HashMap<>();
   HashMap<String, Object> _headerParameterValues = new HashMap<>();
   String _url = _uriBuilder.buildUri(_templateAndMatrixParameterValues, _queryParameterValues);
   Object _retVal = _jaxbDispatcher.doGET(_url, _headerParameterValues, "application/xml");
   if (_retVal == null) {
     return null;
   }
   if (JAXBElement.class.isInstance(_retVal)) {
     JAXBElement jaxbElement = ((JAXBElement) _retVal);
     _retVal = jaxbElement.getValue();
   }
   return ((org.jetbrains.idea.maven.services.nexus.Repositories) _retVal);
 }