Mercurial > dive4elements > http-client
comparison src/main/java/org/dive4elements/artifacts/httpclient/http/HttpClient.java @ 91:f5eb5131aef0
issue1494: Added setEncoding() to HttpClient interface.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 25 Sep 2013 10:31:18 +0200 |
parents | 133281653904 |
children | fcbfc6c597b1 |
comparison
equal
deleted
inserted
replaced
90:8bd13f10d555 | 91:f5eb5131aef0 |
---|---|
7 */ | 7 */ |
8 package org.dive4elements.artifacts.httpclient.http; | 8 package org.dive4elements.artifacts.httpclient.http; |
9 | 9 |
10 import java.io.InputStream; | 10 import java.io.InputStream; |
11 import java.io.OutputStream; | 11 import java.io.OutputStream; |
12 | |
13 import java.nio.charset.Charset; | |
12 | 14 |
13 import org.w3c.dom.Document; | 15 import org.w3c.dom.Document; |
14 | 16 |
15 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; | 17 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
16 import org.dive4elements.artifacts.httpclient.http.response.ResponseHandler; | 18 import org.dive4elements.artifacts.httpclient.http.response.ResponseHandler; |
23 */ | 25 */ |
24 public interface HttpClient { | 26 public interface HttpClient { |
25 | 27 |
26 ArtifactFactory[] getArtifactFactories() | 28 ArtifactFactory[] getArtifactFactories() |
27 throws ConnectionException; | 29 throws ConnectionException; |
30 | |
31 public void setEncoding(Charset charset); | |
32 | |
33 | |
34 /******************************* | |
35 * Artifact API | |
36 *******************************/ | |
28 | 37 |
29 Object create(Document createDocument, ArtifactCreator creator) | 38 Object create(Document createDocument, ArtifactCreator creator) |
30 throws ConnectionException; | 39 throws ConnectionException; |
31 | 40 |
32 Object describe( | 41 Object describe( |