Mercurial > dive4elements > http-client
comparison src/main/java/org/dive4elements/artifacts/httpclient/http/HttpClient.java @ 71:a857866d162f
Moved directories to org.dive4elements
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 11:14:14 +0200 |
parents | src/main/java/de/intevation/artifacts/httpclient/http/HttpClient.java@874c25363dc9 |
children | 133281653904 |
comparison
equal
deleted
inserted
replaced
70:da691e917f98 | 71:a857866d162f |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 package de.intevation.artifacts.httpclient.http; | |
9 | |
10 import java.io.InputStream; | |
11 import java.io.OutputStream; | |
12 | |
13 import org.w3c.dom.Document; | |
14 | |
15 import de.intevation.artifacts.httpclient.exceptions.ConnectionException; | |
16 import de.intevation.artifacts.httpclient.http.response.ResponseHandler; | |
17 import de.intevation.artifacts.httpclient.objects.Artifact; | |
18 import de.intevation.artifacts.httpclient.objects.ArtifactFactory; | |
19 import de.intevation.artifacts.httpclient.utils.ArtifactCreator; | |
20 | |
21 /** | |
22 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
23 */ | |
24 public interface HttpClient { | |
25 | |
26 ArtifactFactory[] getArtifactFactories() | |
27 throws ConnectionException; | |
28 | |
29 Object create(Document createDocument, ArtifactCreator creator) | |
30 throws ConnectionException; | |
31 | |
32 Object describe( | |
33 Artifact artifact, | |
34 Document describeDocument, | |
35 ResponseHandler handler) | |
36 throws ConnectionException; | |
37 | |
38 Object feed(Artifact artifact, Document feedDocument, ResponseHandler handler) | |
39 throws ConnectionException; | |
40 | |
41 Object advance( | |
42 Artifact artifact, | |
43 Document advanceDocument, | |
44 ResponseHandler handler) | |
45 throws ConnectionException; | |
46 | |
47 void out( | |
48 Artifact artifact, | |
49 Document outDocument, | |
50 String target, | |
51 OutputStream out) | |
52 throws ConnectionException; | |
53 | |
54 | |
55 /******************************* | |
56 * Service API | |
57 *******************************/ | |
58 | |
59 Document callService(String url, String service, Document input) | |
60 throws ConnectionException; | |
61 | |
62 Object callService( | |
63 String url, | |
64 String service, | |
65 Document input, | |
66 ResponseHandler handler) | |
67 throws ConnectionException; | |
68 | |
69 | |
70 /******************************* | |
71 * Collections API | |
72 *******************************/ | |
73 | |
74 Object createCollection( | |
75 Document createDocument, | |
76 String ownerId, | |
77 ResponseHandler handler) | |
78 throws ConnectionException; | |
79 | |
80 Object doCollectionAction( | |
81 Document actionDocument, | |
82 String uuid, | |
83 ResponseHandler handler) | |
84 throws ConnectionException; | |
85 | |
86 void collectionOut( | |
87 Document outDocument, | |
88 String uuid, | |
89 String type, | |
90 OutputStream out) | |
91 throws ConnectionException; | |
92 | |
93 InputStream collectionOut( | |
94 Document doc, | |
95 String uuid, | |
96 String type) | |
97 throws ConnectionException; | |
98 | |
99 | |
100 /******************************* | |
101 * Users API | |
102 *******************************/ | |
103 | |
104 Document listUsers() | |
105 throws ConnectionException; | |
106 | |
107 Document listUserCollections(String userid) | |
108 throws ConnectionException; | |
109 | |
110 Document createUser(Document doc) | |
111 throws ConnectionException; | |
112 | |
113 Document findUser(Document doc) | |
114 throws ConnectionException; | |
115 } | |
116 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |