Issue #1931 Fixed Repository Items REST Service

Change-Id: I8876b708b7f6f08b08bc550099ae1bef47751f97

Former-commit-id: 5450a58ca6 [formerly 2c147fe159] [formerly 1e413c68f6] [formerly a226f225fd [formerly 1e413c68f6 [formerly b2764126282aab128cc1465905c11686894ab1f7]]]
Former-commit-id: a226f225fd
Former-commit-id: 747180ba600bf97794019a0d0a919d238456940e [formerly 3b3ae2add0]
Former-commit-id: 97a9a6279b
This commit is contained in:
Benjamin Phillippe 2013-06-03 10:25:38 -05:00
parent fe1a709d42
commit 396102ea5d

View file

@ -21,6 +21,7 @@ package com.raytheon.uf.edex.registry.ebxml.services.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
@ -70,7 +71,8 @@ public class RepositoryItemsRestService implements IRepositoryItemsRestService {
*/
@GET
@Produces("application/octet-stream")
public byte[] getRepositoryItem(String repositoryItemId) {
public byte[] getRepositoryItem(
@PathParam("repositoryItemId") String repositoryItemId) {
ExtrinsicObjectType obj = extrinsicObjectDao.getById(repositoryItemId);
if (obj == null) {
throw new WebApplicationException(404);