ingo@1: /* ingo@1: * Copyright (c) 2010 by Intevation GmbH ingo@1: * ingo@1: * This program is free software under the LGPL (>=v2.1) ingo@1: * Read the file LGPL.txt coming with the software for details ingo@1: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1: */ ingo@1: package de.intevation.artifacts.httpclient.http; ingo@1: ingo@1: import java.io.OutputStream; ingo@1: ingo@1: import org.w3c.dom.Document; ingo@1: ingo@1: import de.intevation.artifacts.httpclient.exceptions.ConnectionException; ingo@1: import de.intevation.artifacts.httpclient.http.response.ResponseHandler; ingo@1: import de.intevation.artifacts.httpclient.objects.Artifact; ingo@1: import de.intevation.artifacts.httpclient.objects.ArtifactFactory; ingo@1: ingo@1: /** ingo@1: * @author Ingo Weinzierl ingo@1: */ ingo@1: public interface HttpClient { ingo@1: ingo@1: ArtifactFactory[] getArtifactFactories() ingo@1: throws ConnectionException; ingo@1: ingo@1: Artifact create(Document createDocument) ingo@1: throws ConnectionException; ingo@1: ingo@1: Object describe( ingo@1: Artifact artifact, ingo@1: Document describeDocument, ingo@1: ResponseHandler handler) ingo@1: throws ConnectionException; ingo@1: ingo@1: Object feed(Artifact artifact, Document feedDocument, ResponseHandler handler) ingo@1: throws ConnectionException; ingo@1: ingo@1: Object advance( ingo@1: Artifact artifact, ingo@1: Document advanceDocument, ingo@1: ResponseHandler handler) ingo@1: throws ConnectionException; ingo@1: ingo@1: void out( ingo@1: Artifact artifact, ingo@1: Document outDocument, ingo@1: String target, ingo@1: OutputStream out) ingo@1: throws ConnectionException; ingo@1: } ingo@1: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: