comparison ChangeLog @ 380:9798e4d83681

Services are now able to return more than just XML documents. artifacts/trunk@4188 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 03 Apr 2012 11:15:10 +0000
parents 95ff5a25a339
children bed51de8ae58
comparison
equal deleted inserted replaced
379:95ff5a25a339 380:9798e4d83681
1 2012-04-04 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 Modified services so that they are now able to return more than just
4 XML documents. Needed if you want to return e.g. a PNG image from a service.
5
6 * artifacts/src/main/java/de/intevation/artifacts/Service.java:
7 A service now returns a tuple (data, MIME type).
8
9 * artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.java,
10 artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
11 Adjusted calls.
12
13 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultService.java:
14 Returns a DefaultService.Output by default.
15
16 * artifact-database/src/main/java/de/intevation/artifactdatabase/XMLService.java: New.
17 Convenience sub class if DefaultService to produce XML documents. Old
18 Services should derive from this class now to main compatibility.
19
20 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ServiceResource.java:
21 Adjusted to handle the new Output tuples.
22
23 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ByteArrayRepresentation.java:
24 New. Wraps a byte array as a Restlet representation.
25
1 2012-03-30 Ingo Weinzierl <ingo@intevation.de> 26 2012-03-30 Ingo Weinzierl <ingo@intevation.de>
2 27
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java: 28 * artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java:
4 Avoid adding duplicated facets into the output in addFacet(). 29 Avoid adding duplicated facets into the output in addFacet().
5 30

http://dive4elements.wald.intevation.org