log.error("Could not start SpreadshirtAPI!", e);
}
}
public ArticleDTO getArticle(String articleId) {
HttpCallCommand command =
factory.createJaxbHttpCallCommand(shop.getArticles().getHref() + "/" + articleId, HttpMethod.GET, null);
command.execute();
if (command.getStatus() != 200)
throw new IllegalArgumentException("Articles data not available");
else
return (ArticleDTO) ((JAXBElement) command.getOutput()).getValue();
}