Package org.jboss.ws.extensions.addressing

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


      // 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

/* 70 */     return new RelationshipImpl(uri);
/*    */   }
/*    */
/*    */   public EndpointReference newEndpointReference(URI uri)
/*    */   {
/* 75 */     return new EndpointReferenceImpl(uri);
/*    */   }
View Full Code Here

/*     */       }
/*     */
/* 110 */       Element wsaFrom = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFromQName());
/* 111 */       if (wsaFrom != null)
/*     */       {
/* 113 */         EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFrom);
/* 114 */         setReplyTo(ref);
/*     */       }
/*     */
/* 121 */       Element wsaReplyTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getReplyToQName());
/* 122 */       if (wsaReplyTo != null)
/*     */       {
/* 124 */         EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaReplyTo);
/* 125 */         setReplyTo(ref);
/*     */       }
/*     */
/* 131 */       Element wsaFaultTo = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFaultToQName());
/* 132 */       if (wsaFaultTo != null)
/*     */       {
/* 134 */         EndpointReferenceImpl ref = new EndpointReferenceImpl(wsaFaultTo);
/* 135 */         setFaultTo(ref);
/*     */       }
/*     */
/* 141 */       String action = getRequiredHeaderContent(soapHeader, ADDR.getActionQName());
/* 142 */       setAction(builder.newURI(action));
View Full Code Here

/* 224 */         element.addTextNode(getTo().getURI().toString());
/*     */       }
/*     */
/* 228 */       if (getFrom() != null)
/*     */       {
/* 230 */         EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
/* 231 */         epr.setRootQName(ADDR.getFromQName());
/* 232 */         SOAPElement soapElement = factory.createElement(epr.toElement());
/* 233 */         soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
/* 234 */         soapHeader.addChildElement(soapElement);
/*     */       }
/*     */
/* 238 */       if (getReplyTo() != null)
/*     */       {
/* 240 */         EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
/* 241 */         epr.setRootQName(ADDR.getReplyToQName());
/* 242 */         SOAPElement soapElement = factory.createElement(epr.toElement());
/* 243 */         soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
/* 244 */         soapHeader.addChildElement(soapElement);
/*     */       }
/*     */
/* 248 */       if (getFaultTo() != null)
/*     */       {
/* 250 */         EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
/* 251 */         epr.setRootQName(ADDR.getFaultToQName());
/* 252 */         SOAPElement soapElement = factory.createElement(epr.toElement());
/* 253 */         soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
/* 254 */         soapHeader.addChildElement(soapElement);
/*     */       }
/*     */
/* 257 */       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.