Mercurial > dive4elements > framework
diff artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.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 | 9a29899b31e5 |
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java Thu Oct 01 09:04:17 2009 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java Thu Oct 01 16:03:12 2009 +0000 @@ -62,7 +62,7 @@ try { return new DomRepresentation( MediaType.APPLICATION_XML, - db.describe(identifier)); + db.describe(identifier, getCallMeta())); } catch (ArtifactDatabaseException adbe) { logger.warn(adbe.getLocalizedMessage(), adbe); @@ -83,10 +83,10 @@ try { if (action.equals(FEED)) { - out = db.feed(identifier, source); + out = db.feed(identifier, source, getCallMeta()); } else if (action.equals(ADVANCE)) { - out = db.advance(identifier, source); + out = db.advance(identifier, source, getCallMeta()); } else { throw new ArtifactDatabaseException(NO_SUCH_ACTION_MESSAGE);