The following document contains the results of PMD's CPD 5.3.2.
| File | Line |
|---|---|
| ejava/examples/ejbwar/inventory/client/InventoryClientImpl.java | 81 |
| ejava/examples/ejbwar/inventory/client/InventoryClientImpl.java | 180 |
URI uri = buildURI(CategoriesResource.class,"findCategoriesByName")
//marshall @QueryParams into URI
.queryParam("name", name)
.queryParam("offset", offset)
.queryParam("limit", limit)
.build();
//build the overall request
HttpGet get = new HttpGet(uri);
get.addHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_XML);
//issue request and look for an OK response with entity
HttpResponse response = client.execute(get);
log.info(String.format("%s %s", get.getURI(), response));
if (Response.Status.OK.getStatusCode() == response.getStatusLine().getStatusCode()) {
return InventoryRepresentation.unmarshall(Categories.class, | |