Revision 44742
Added by Katerina Iatropoulou over 7 years ago
APIResponseFormatter.java | ||
---|---|---|
3 | 3 |
import eu.dnetlib.data.search.web.utils.RequestResponseHandler; |
4 | 4 |
import eu.dnetlib.domain.data.SearchResult; |
5 | 5 |
import org.apache.commons.lang3.StringEscapeUtils; |
6 |
import org.apache.log4j.Logger; |
|
7 | 6 |
|
8 | 7 |
import javax.servlet.http.HttpServletRequest; |
9 | 8 |
import javax.ws.rs.core.MediaType; |
... | ... | |
15 | 14 |
*/ |
16 | 15 |
public class APIResponseFormatter { |
17 | 16 |
|
18 |
private static final Logger logger = Logger.getLogger(APIResponseFormatter.class); |
|
17 |
//private static final Logger logger = Logger.getLogger(APIResponseFormatter.class);
|
|
19 | 18 |
|
20 | 19 |
public static String compose404Message(String type, String message) { |
21 | 20 |
if(type.equals(MediaType.APPLICATION_JSON)) { |
Also available in: Unified diff
Working on backwards compatibility. IMPORTANT: sygma and refine are not yet compatible