@@ -0,0 +1,1429 @@
+/*%0A * Copyright 2010, Red Hat, Inc. and individual contributors as indicated by the%0A * @author tags. See the copyright.txt file in the distribution for a full%0A * listing of individual contributors.%0A * %0A * This is free software; you can redistribute it and/or modify it under the%0A * terms of the GNU Lesser General Public License as published by the Free%0A * Software Foundation; either version 2.1 of the License, or (at your option)%0A * any later version.%0A * %0A * This software is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more%0A * details.%0A * %0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this software; if not, write to the Free Software Foundation,%0A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF%0A * site: http://www.fsf.org.%0A */%0Apackage org.zanata.rest.service;%0A%0Aimport java.io.InputStream;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.PathParam;%0A%0Apublic interface TranslationFileResource%0A%7B%0A%0A   public static final String FILE_NAME_TEMPLATE = %22/%7BdocId:%5Ba-zA-Z0-9%5D+(%5Ba-zA-Z0-9_%5C%5C-,%7B.%7D%5D*%5Ba-zA-Z0-9%5D+)?%7D%22;%0A   %0A   @GET%0A   @Path(FILE_NAME_TEMPLATE)%0A   // /file/%7BdocId%7D%0A   public InputStream downloadTranslationFile( @PathParam(%22docId%22) String docId );%0A   %0A%7D%0A

Add File Resource and Service to manage file downloads.