Changeset 1523:285d3d950283
- Timestamp:
- 09/27/10 16:35:46 (3 years ago)
- Author:
- Thomas Gambet <tgambet@…>
- Branch:
- default
- Message:
-
~ call disconnect() on HTTPURLConnection to observers, and close input stream after parsing!
- Location:
- src/org/w3c/unicorn
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1337
|
r1523
|
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | | return ResponseFactory.getResponse(aURLConnection.getInputStream(), responseType, aURL.toString(), aURLConnection.getContentEncoding(), observerId); |
| | 141 | Response res = ResponseFactory.getResponse(aURLConnection.getInputStream(), responseType, aURL.toString(), aURLConnection.getContentEncoding(), observerId); |
| | 142 | aURLConnection.disconnect(); |
| | 143 | return res; |
| 142 | 144 | |
| 143 | 145 | } catch (MalformedURLException e) { |
-
|
r1337
|
r1523
|
|
| 59 | 59 | xo.setErrorListener(errorList); |
| 60 | 60 | ord = ObservationresponseDocument.Factory.parse(is, new XmlOptions().setCharacterEncoding(charset)); |
| | 61 | is.close(); |
| 61 | 62 | or = ord.getObservationresponse(); |
| 62 | 63 | if (!or.validate(xo)) { |