comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java @ 48:41c225c8bd41

Add i18n support via "Accept-Language" HTTP headers. artifacts/trunk@168 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 01 Oct 2009 16:03:12 +0000
parents af22d4de275c
children 82f62ef25a8f
comparison
equal deleted inserted replaced
47:4ae4dc99127d 48:41c225c8bd41
82 } 82 }
83 83
84 try { 84 try {
85 return new OutRepresentation( 85 return new OutRepresentation(
86 mimeType, 86 mimeType,
87 db.out(identifier, inputDocument)); 87 db.out(identifier, inputDocument, getCallMeta()));
88 } 88 }
89 catch (ArtifactDatabaseException adbe) { 89 catch (ArtifactDatabaseException adbe) {
90 Response response = getResponse(); 90 Response response = getResponse();
91 response.setStatus( 91 response.setStatus(
92 Status.CLIENT_ERROR_NOT_FOUND, adbe.getMessage()); 92 Status.CLIENT_ERROR_NOT_FOUND, adbe.getMessage());

http://dive4elements.wald.intevation.org