fix getByTypeAndName method for directory structure

This commit is contained in:
Sebastian Sdorra
2011-11-24 21:05:34 +01:00
parent 076c008f13
commit b4fc971fa9

View File

@@ -416,11 +416,10 @@ public class RepositoryResource
* @return the {@link Repository} with the specified type and name * @return the {@link Repository} with the specified type and name
*/ */
@GET @GET
@Path("{type}/{name}") @Path("{type: [a-z]+}/{name: .*}")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@TypeHint(Repository.class) @TypeHint(Repository.class)
public Response getByTypeAndName(@Context Request request, public Response getByTypeAndName(@PathParam("type") String type,
@PathParam("type") String type,
@PathParam("name") String name) @PathParam("name") String name)
{ {
Response response = null; Response response = null;