src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/impl/EnvelopeImpl.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
276 writer.write(xmlDecl); 276 writer.write(xmlDecl);
277 writer.flush(); 277 writer.flush();
278 result = new StreamResult(writer); 278 result = new StreamResult(writer);
279 } 279 }
280 280
281 281 if (log.isLoggable(Level.FINE)) {
282 log.log( 282 log.log(Level.FINE, "SAAJ0190.impl.set.xml.declaration",
283 Level.FINE, 283 new String[] { omitXmlDecl });
284 "SAAJ0190.impl.set.xml.declaration", 284 log.log(Level.FINE, "SAAJ0191.impl.set.encoding",
285 new String[] { omitXmlDecl }); 285 new String[] { charset });
286 log.log( 286 }
287 Level.FINE,
288 "SAAJ0191.impl.set.encoding",
289 new String[] { charset });
290 287
291 //StreamResult result = new StreamResult(out); 288 //StreamResult result = new StreamResult(out);
292 transformer.transform(getContent(), result); 289 transformer.transform(getContent(), result);
293 } catch (Exception ex) { 290 } catch (Exception ex) {
294 throw new IOException(ex.getMessage()); 291 throw new IOException(ex.getMessage());

mercurial