Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/Service.java @ 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 | a8d62eb93cd4 |
children |
comparison
equal
deleted
inserted
replaced
379:95ff5a25a339 | 380:9798e4d83681 |
---|---|
18 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | 18 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> |
19 */ | 19 */ |
20 public interface Service | 20 public interface Service |
21 extends Serializable | 21 extends Serializable |
22 { | 22 { |
23 interface Output { | |
24 Object getData(); | |
25 | |
26 String getMIMEType(); | |
27 } // interface Output | |
28 | |
23 /** | 29 /** |
24 * Processes some input XML document | 30 * Processes some input XML document |
25 * @param data The input data | 31 * @param data The input data |
26 * @param globalContext The global context of the artifact database. | 32 * @param globalContext The global context of the artifact database. |
27 * @param callMeta The call meta contex, e.g. preferred languages. | 33 * @param callMeta The call meta contex, e.g. preferred languages. |
28 * @return The result output XML document. | 34 * @return The result. |
29 */ | 35 */ |
30 Document process(Document data, GlobalContext globalContext, CallMeta callMeta); | 36 Output process(Document data, GlobalContext globalContext, CallMeta callMeta); |
31 | 37 |
32 /** | 38 /** |
33 * Setup the concrete processing service. This is done at startup time | 39 * Setup the concrete processing service. This is done at startup time |
34 * of the artifact database system. | 40 * of the artifact database system. |
35 * @param factory The service factory which created this service. | 41 * @param factory The service factory which created this service. |