< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxLazySourceBridge.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 25,34 **** --- 25,35 ---- package com.sun.xml.internal.messaging.saaj.soap; import javax.xml.namespace.QName; import javax.xml.soap.SOAPException; + import javax.xml.stream.XMLStreamConstants; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; import com.sun.xml.internal.messaging.saaj.LazyEnvelopeSource;
*** 74,95 **** @Override public String getPayloadAttributeValue(String attName) { if (lazySource.isPayloadStreamReader()) { XMLStreamReader reader = lazySource.readPayload(); ! if (reader.getEventType() == reader.START_ELEMENT) { return reader.getAttributeValue(null, attName); } } return null; } @Override public String getPayloadAttributeValue(QName attName) { if (lazySource.isPayloadStreamReader()) { XMLStreamReader reader = lazySource.readPayload(); ! if (reader.getEventType() == reader.START_ELEMENT) { return reader.getAttributeValue(attName.getNamespaceURI(), attName.getLocalPart()); } } return null; } --- 75,96 ---- @Override public String getPayloadAttributeValue(String attName) { if (lazySource.isPayloadStreamReader()) { XMLStreamReader reader = lazySource.readPayload(); ! if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { return reader.getAttributeValue(null, attName); } } return null; } @Override public String getPayloadAttributeValue(QName attName) { if (lazySource.isPayloadStreamReader()) { XMLStreamReader reader = lazySource.readPayload(); ! if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { return reader.getAttributeValue(attName.getNamespaceURI(), attName.getLocalPart()); } } return null; }
< prev index next >