Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java @ 154:d6b82c585f1f
Bugfix NPE was thrown when an Exception occured in the Called ArtifactDatabase-Server issue58.
gnv/trunk@260 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Thu, 22 Oct 2009 12:21:53 +0000 |
parents | f35b7d7a04d6 |
children | 013d47662161 |
comparison
equal
deleted
inserted
replaced
153:48f538077aea | 154:d6b82c585f1f |
---|---|
223 request.setEntity(representation); | 223 request.setEntity(representation); |
224 Response response = client.handle(request); | 224 Response response = client.handle(request); |
225 if (response.getStatus().getCode() != 200){ | 225 if (response.getStatus().getCode() != 200){ |
226 throw new IOException(response.getStatus().getDescription()); | 226 throw new IOException(response.getStatus().getDescription()); |
227 } | 227 } |
228 // TODO RESPONSESTATUS AUSWERTEN. | |
229 Representation output = response.getEntity(); | 228 Representation output = response.getEntity(); |
230 return output.getStream(); | 229 return output.getStream(); |
231 } | 230 } |
232 | 231 |
233 private synchronized void initialize() { | 232 private synchronized void initialize() { |