コード例 #1
0
 @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;
 }
コード例 #2
0
 @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;
 }
コード例 #3
0
 public StaxLazySourceBridge(LazyEnvelopeSource src, SOAPPartImpl soapPart) throws SOAPException {
   super(soapPart);
   lazySource = src;
   final String soapEnvNS = soapPart.getSOAPNamespace();
   try {
     breakpoint =
         new XMLStreamReaderToXMLStreamWriter.Breakpoint(src.readToBodyStarTag(), saajWriter) {
           public boolean proceedAfterStartElement() {
             if ("Body".equals(reader.getLocalName())
                 && soapEnvNS.equals(reader.getNamespaceURI())) {
               return false;
             } else return true;
           }
         };
   } catch (XMLStreamException e) {
     throw new SOAPException(e);
   }
 }
コード例 #4
0
 @Override
 public QName getPayloadQName() {
   return lazySource.getPayloadQName();
 }
コード例 #5
0
 @Override
 public XMLStreamReader getPayloadReader() {
   return lazySource.readPayload();
   //              throw new UnsupportedOperationException();
 }
コード例 #6
0
 public void writePayloadTo(XMLStreamWriter writer) throws XMLStreamException {
   lazySource.writePayloadTo(writer);
 }