ingo@0: /* ingo@0: * Copyright (c) 2010 by Intevation GmbH ingo@0: * ingo@0: * This program is free software under the LGPL (>=v2.1) ingo@0: * Read the file LGPL.txt coming with the software for details ingo@0: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@0: */ ingo@0: package de.intevation.artifacts.httpclient.http.response; ingo@0: ingo@0: import java.io.IOException; ingo@0: ingo@0: import org.restlet.Response; ingo@0: import org.restlet.representation.Representation; ingo@0: ingo@0: ingo@0: /** ingo@0: * @author Ingo Weinzierl ingo@0: */ ingo@0: public class StreamResponseHandler implements ResponseHandler { ingo@0: ingo@0: public StreamResponseHandler() { ingo@0: } ingo@0: sascha@32: @Override ingo@0: public Object handle(Response response) throws IOException { ingo@0: Representation output = response.getEntity(); ingo@0: return output.getStream(); ingo@0: } ingo@0: } ingo@0: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: