1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, 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 |
88 |
88 |
89 DataSourceParameter(WSBinding binding) { |
89 DataSourceParameter(WSBinding binding) { |
90 this.binding = binding; |
90 this.binding = binding; |
91 } |
91 } |
92 public DataSource getParameter(Packet packet) { |
92 public DataSource getParameter(Packet packet) { |
93 Message msg = packet.getMessage(); |
93 Message msg = packet.getInternalMessage(); |
94 return (msg instanceof XMLMessage.MessageDataSource) |
94 return (msg instanceof XMLMessage.MessageDataSource) |
95 ? ((XMLMessage.MessageDataSource) msg).getDataSource() |
95 ? ((XMLMessage.MessageDataSource) msg).getDataSource() |
96 : XMLMessage.getDataSource(msg, binding.getFeatures()); |
96 : XMLMessage.getDataSource(msg, binding.getFeatures()); |
97 } |
97 } |
98 |
98 |