Package org.jboss.ws.extensions.addressing

Examples of org.jboss.ws.extensions.addressing.EndpointReferenceImpl


      return new RelationshipImpl(uri);
   }

   public EndpointReference newEndpointReference(URI uri)
   {
      return new EndpointReferenceImpl(uri);
   }
View Full Code Here


      // Read wsa:From
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [source endpoint] property.
      Element wsaFrom = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFromQName());
      if (wsaFrom != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFrom);
        setReplyTo(ref);
      }

      // Read wsa:ReplyTo
      // This OPTIONAL element provides the value for the [reply endpoint] property.
      // If this element is NOT present then the value of the [address] property of the [reply endpoint]
      // EPR is "http://www.w3.org/2005/08/addressing/anonymous".
      Element wsaReplyTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getReplyToQName());
      if (wsaReplyTo != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaReplyTo);
        setReplyTo(ref);
      }
     
      // Read wsa:FaultTo
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [fault endpoint] property.
      // If this element is present, wsa:MessageID MUST be present.
      Element wsaFaultTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFaultToQName());
      if (wsaFaultTo != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFaultTo);
        setFaultTo(ref);
      }

      // wsa:Action
      // This REQUIRED element of type xs:anyURI conveys the [action] property.
View Full Code Here

      }

      // Write wsa:From
      if (getFrom() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
        epr.setRootQName(ADDR.getFromQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:ReplyTo
      if (getReplyTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
        epr.setRootQName(ADDR.getReplyToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:FaultTo
      if (getFaultTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
        epr.setRootQName(ADDR.getFaultToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
View Full Code Here

         "  </wsa:Metadata>" +
         "  <fabrikam:eprElement>123456789</fabrikam:eprElement>" +
         "</wsa:EndpointReference>";
     
      Element inElement = DOMUtils.parse(inStr);
      EndpointReferenceImpl epr = new EndpointReferenceImpl(inElement);
      Element outElement = epr.toElement();
     
      assertEquals(inElement, outElement);
   }
View Full Code Here

         "  </wsa:Metadata>" +
         "  <fabrikam:eprElement>123456789</fabrikam:eprElement>" +
         "</wsa:EndpointReference>";
     
      Element inElement = DOMUtils.parse(inStr);
      EndpointReferenceImpl epr = new EndpointReferenceImpl(inElement);
      Element outElement = epr.toElement();
     
      assertEquals(inElement, outElement);
   }
View Full Code Here

      // Read wsa:From
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [source endpoint] property.
      Element wsaFrom = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFromQName());
      if (wsaFrom != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFrom);
        setFrom(ref);
      }

      // Read wsa:ReplyTo
      // This OPTIONAL element provides the value for the [reply endpoint] property.
      // If this element is NOT present then the value of the [address] property of the [reply endpoint]
      // EPR is "http://www.w3.org/2005/08/addressing/anonymous".
      Element wsaReplyTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getReplyToQName());
      if (wsaReplyTo != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaReplyTo);
        setReplyTo(ref);
      }
     
      // Read wsa:FaultTo
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [fault endpoint] property.
      // If this element is present, wsa:MessageID MUST be present.
      Element wsaFaultTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFaultToQName());
      if (wsaFaultTo != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFaultTo);
        setFaultTo(ref);
      }

      // wsa:Action
      // This REQUIRED element of type xs:anyURI conveys the [action] property.
View Full Code Here

      }

      // Write wsa:From
      if (getFrom() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
        epr.setRootQName(ADDR.getFromQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:ReplyTo
      if (getReplyTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
        epr.setRootQName(ADDR.getReplyToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:FaultTo
      if (getFaultTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
        epr.setRootQName(ADDR.getFaultToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
View Full Code Here

      return new RelationshipImpl(uri);
   }

   public EndpointReference newEndpointReference(URI uri)
   {
      return new EndpointReferenceImpl(uri);
   }
View Full Code Here

      // Read wsa:From
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [source endpoint] property.
      Element wsaFrom = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFromQName());
      if (wsaFrom != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFrom);
        setFrom(ref);
      }

      // Read wsa:ReplyTo
      // This OPTIONAL element provides the value for the [reply endpoint] property.
      // If this element is NOT present then the value of the [address] property of the [reply endpoint]
      // EPR is "http://www.w3.org/2005/08/addressing/anonymous".
      Element wsaReplyTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getReplyToQName());
      if (wsaReplyTo != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaReplyTo);
        setReplyTo(ref);
      }
     
      // Read wsa:FaultTo
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [fault endpoint] property.
      // If this element is present, wsa:MessageID MUST be present.
      Element wsaFaultTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFaultToQName());
      if (wsaFaultTo != null)
      {
        EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFaultTo);
        setFaultTo(ref);
      }

      // wsa:Action
      // This REQUIRED element of type xs:anyURI conveys the [action] property.
View Full Code Here

      }

      // Write wsa:From
      if (getFrom() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
        epr.setRootQName(ADDR.getFromQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:ReplyTo
      if (getReplyTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
        epr.setRootQName(ADDR.getReplyToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:FaultTo
      if (getFaultTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
        epr.setRootQName(ADDR.getFaultToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.addressing.EndpointReferenceImpl

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.