public List<RepositoryListResource> getAllList() throws IOException { String responseText = nexusRestClient.doGetForText(ALL_SERVICE_PART); LOG.debug("responseText: \n" + responseText); XStreamRepresentation representation = new XStreamRepresentation(XStreamFactory.getXmlXStream(), responseText, MediaType.APPLICATION_XML); RepositoryListResourceResponse resourceResponse = (RepositoryListResourceResponse) representation.getPayload(new RepositoryListResourceResponse()); return resourceResponse.getData(); }
public List<RepositoryListResource> getAllList() throws IOException { String responseText = nexusRestClient.doGetForText( ALL_SERVICE_PART ); LOG.debug( "responseText: \n" + responseText ); XStreamRepresentation representation = new XStreamRepresentation( XStreamFactory.getXmlXStream(), responseText, MediaType.APPLICATION_XML ); RepositoryListResourceResponse resourceResponse = (RepositoryListResourceResponse) representation.getPayload( new RepositoryListResourceResponse() ); return resourceResponse.getData(); }
/** * This should be replaced with a REST Call, but the REST client does not set the Accept correctly on GET's/ */ public List<RepositoryListResource> getList() throws IOException { String responseText = nexusRestClient.doGetForText(SERVICE_PART); LOG.debug("responseText: \n" + responseText); XStreamRepresentation representation = new XStreamRepresentation(XStreamFactory.getXmlXStream(), responseText, MediaType.APPLICATION_XML); RepositoryListResourceResponse resourceResponse = (RepositoryListResourceResponse) representation.getPayload(new RepositoryListResourceResponse()); return resourceResponse.getData(); }
/** * This should be replaced with a REST Call, but the REST client does not set the Accept correctly on GET's/ * * @return * @throws java.io.IOException */ public List<RepositoryListResource> getList() throws IOException { String responseText = nexusRestClient.doGetForText( SERVICE_PART ); LOG.debug( "responseText: \n" + responseText ); XStreamRepresentation representation = new XStreamRepresentation( XStreamFactory.getXmlXStream(), responseText, MediaType.APPLICATION_XML ); RepositoryListResourceResponse resourceResponse = (RepositoryListResourceResponse) representation.getPayload( new RepositoryListResourceResponse() ); return resourceResponse.getData(); }
/** * This should be replaced with a REST Call, but the REST client does not set the Accept correctly on GET's/ * * @return * @throws IOException */ @SuppressWarnings( "unchecked" ) public List<RepositoryListResource> getList() throws IOException { String responseText = RequestFacade.doGetRequest( "service/local/repositories" ).getEntity().getText(); LOG.debug( "responseText: \n" + responseText ); XStreamRepresentation representation = new XStreamRepresentation( XStreamFactory.getXmlXStream(), responseText, MediaType.APPLICATION_XML ); RepositoryListResourceResponse resourceResponse = (RepositoryListResourceResponse) representation .getPayload( new RepositoryListResourceResponse() ); return resourceResponse.getData(); }
throws ResourceException RepositoryListResourceResponse result = new RepositoryListResourceResponse();
throws ResourceException RepositoryListResourceResponse result = new RepositoryListResourceResponse();
throws ResourceException RepositoryListResourceResponse result = new RepositoryListResourceResponse();
throws ResourceException RepositoryListResourceResponse result = new RepositoryListResourceResponse();