Mercurial > dive4elements > http-client
comparison src/main/java/de/intevation/artifacts/httpclient/http/response/DocumentResponseHandler.java @ 32:f314a514de5f
Added some Override annotations.
http-client/trunk@4273 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 19 Apr 2012 08:58:07 +0000 |
parents | a1db30b33f43 |
children |
comparison
equal
deleted
inserted
replaced
31:b78c1909c490 | 32:f314a514de5f |
---|---|
21 public class DocumentResponseHandler implements ResponseHandler { | 21 public class DocumentResponseHandler implements ResponseHandler { |
22 | 22 |
23 public DocumentResponseHandler() { | 23 public DocumentResponseHandler() { |
24 } | 24 } |
25 | 25 |
26 @Override | |
26 public Object handle(Response response) throws IOException { | 27 public Object handle(Response response) throws IOException { |
27 Representation output = response.getEntity(); | 28 Representation output = response.getEntity(); |
28 return XMLUtils.readDocument(output.getStream()); | 29 return XMLUtils.readDocument(output.getStream()); |
29 } | 30 } |
30 } | 31 } |