Issue #1931 Fixed Repository Items REST Service

Change-Id: I8876b708b7f6f08b08bc550099ae1bef47751f97

Former-commit-id: 1e413c68f6 [formerly b2764126282aab128cc1465905c11686894ab1f7]
Former-commit-id: a226f225fd
This commit is contained in:
Benjamin Phillippe 2013-06-03 10:25:38 -05:00
parent da0335a5e5
commit 3b3ae2add0

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);