Package org.jboss.internal.soa.esb.util.stax

Examples of org.jboss.internal.soa.esb.util.stax.URIElement


            EPRHelper.toXML(out, XMLUtil.QNAME_REPLY_TO_TAG, call.getReplyTo());
        }

        if (call.getRelatesTo() != null)
        {
            final URIElement actionElement = new URIElement(call.getRelatesTo()) ;
            StreamHelper.writeElement(out, XMLUtil.QNAME_RELATES_TO_TAG, actionElement) ;
        }

        if (call.getFaultTo() != null)
        {
            EPRHelper.toXML(out, XMLUtil.QNAME_FAULT_TO_TAG, call.getFaultTo());
        }

        if (call.getAction() != null)
        {
            final URIElement actionElement = new URIElement(call.getAction()) ;
            StreamHelper.writeElement(out, XMLUtil.QNAME_ACTION_TAG, actionElement) ;
        }

        if (call.getMessageID() != null)
        {
            final URIElement messageIdElement = new URIElement(call.getMessageID()) ;
            StreamHelper.writeElement(out, XMLUtil.QNAME_MESSAGE_IDENTIFIER_TAG, messageIdElement) ;
        }
    }
View Full Code Here


            {
                call.setReplyTo(EPRHelper.fromXML(in));
            }
            else if (XMLUtil.RELATES_TO_TAG.equals(name))
            {
                final URIElement relatesTo = new URIElement(in) ;
                call.setRelatesTo(relatesTo.getValue()) ;
            }
            else if (XMLUtil.FAULT_TO_TAG.equals(name))
            {
                call.setFaultTo(EPRHelper.fromXML(in));
            }
            else if (XMLUtil.ACTION_TAG.equals(name))
            {
                final URIElement action = new URIElement(in) ;
                call.setAction(action.getValue()) ;
            }
            else if (XMLUtil.MESSAGE_IDENTIFIER_TAG.equals(name))
            {
                final URIElement messageIdentifier = new URIElement(in) ;
                call.setMessageID(messageIdentifier.getValue()) ;
            }
            else
            {
                final TextElement content = new TextElement(in) ;
                extensions.add(new NamedElement(elementName, content)) ;
View Full Code Here

      protected void putElement(XMLStreamReader in, QName elementName)
              throws XMLStreamException
      {
          if (XMLUtil.ESB_QNAME_BODY_CONTENT_MARSHAL_TYPE.equals(elementName))
          {
              final URIElement typeURI = new URIElement(in) ;
              type = typeURI.getValue() ;
          }
          else
          {
              throw new XMLStreamException("Unrecognised element: " + elementName) ;
          }
View Full Code Here

     
      @Override
      protected void writeChildContent(XMLStreamWriter out)
              throws XMLStreamException
      {
                final URIElement typeURI = new URIElement(type) ;
          StreamHelper.writeElement(out, XMLUtil.ESB_QNAME_BODY_CONTENT_MARSHAL_TYPE, typeURI) ;
          out.writeCharacters(content) ;
      }
View Full Code Here

TOP

Related Classes of org.jboss.internal.soa.esb.util.stax.URIElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.