Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 4
0
 @Override
 public QName getPayloadQName() {
   return lazySource.getPayloadQName();
 }
Exemplo n.º 5
0
 @Override
 public XMLStreamReader getPayloadReader() {
   return lazySource.readPayload();
   //              throw new UnsupportedOperationException();
 }
Exemplo n.º 6
0
 public void writePayloadTo(XMLStreamWriter writer) throws XMLStreamException {
   lazySource.writePayloadTo(writer);
 }