Search in sources :

Example 1 with UriBuilder

use of org.jvnet.ws.wadl.util.UriBuilder in project intellij-community by JetBrains.

the class Endpoint method getArtifactInfoByUri.

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;
}
Also used : DSDispatcher(org.jvnet.ws.wadl.util.DSDispatcher) UriBuilder(org.jvnet.ws.wadl.util.UriBuilder) DataSource(javax.activation.DataSource)

Aggregations

DataSource (javax.activation.DataSource)1 DSDispatcher (org.jvnet.ws.wadl.util.DSDispatcher)1 UriBuilder (org.jvnet.ws.wadl.util.UriBuilder)1