Skip to content

Commit

Permalink
EA-3622 remove RdfFormat.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SrishtiSingh-eu committed Nov 17, 2023
1 parent e25e1a9 commit 0ff5e70
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 76 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package eu.europeana.api.record.utils;

import eu.europeana.api.format.RdfFormat;
import jakarta.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package eu.europeana.api.record.web;

import eu.europeana.api.commons.web.http.HttpHeaders;
import eu.europeana.api.format.RdfFormat;
import eu.europeana.api.record.exception.RecordApiException;
import eu.europeana.api.record.exception.RecordDoesNotExistsException;
import eu.europeana.api.record.model.ProvidedCHO;
Expand Down Expand Up @@ -49,7 +48,7 @@ public RecordController(RecordService recordService, JsonLdSerializer jsonLdSeri
response = java.lang.Void.class)
@GetMapping(
value = {
"/v3/record/{datasetId}/{localId}",
"/record/v3/{datasetId}/{localId}",
},
headers = { ACCEPT_HEADER_JSONLD, ACCEPT_HEADER_JSON,
ACCEPT_HEADER_APPLICATION_TEXT_XML, ACCEPT_HEADER_RDF_XML, ACCEPT_HEADER_APPLICATION_RDF_XML, ACCEPT_HEADER_APPLICATION_XML,
Expand All @@ -62,7 +61,7 @@ public ResponseEntity<String> retrieveJsonRecord(
@PathVariable String datasetId,
@PathVariable String localId,
HttpServletRequest request) throws RecordApiException, IOException {
RdfFormat format = RecordUtils.getRDFFormat.apply(localId, request);
// RdfFormat format = RecordUtils.getRDFFormat.apply(localId, request);
localId = RecordUtils.getIdWithoutExtension(localId);
return createResponse(datasetId, localId);
}
Expand Down

0 comments on commit 0ff5e70

Please sign in to comment.