Package org.jboss.ws.extensions.addressing.metadata

Examples of org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt


    * Process operation meta data extensions.
    */
   private void processMetaExtensions(Method method, EndpointMetaData epMetaData, OperationMetaData opMetaData)
   {
      AddressingProperties ADDR = new AddressingPropertiesImpl();
      AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());

      Action anAction = method.getAnnotation(Action.class);
      if (anAction != null)
      {
         addrExt.setInboundAction(anAction.input());
         addrExt.setOutboundAction(anAction.output());
      }
      else
      // default action values
      {
         String tns = epMetaData.getPortName().getNamespaceURI();
         String portTypeName = epMetaData.getPortName().getLocalPart();
         String opName = opMetaData.getQName().getLocalPart();
         addrExt.setInboundAction(tns + "/" + portTypeName + "/" + opName + "Request");

         if (!opMetaData.isOneWay())
            addrExt.setOutboundAction(tns + "/" + portTypeName + "/" + opName + "Response");
      }

      opMetaData.addExtension(addrExt);
   }
View Full Code Here


         }
     
      if (!isFault && !opMetaData.isOneWay())
      {

        AddressingOpMetaExt addrExt = (AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
        if (addrExt != null)
        {
            outProps.setAction(ADDR_BUILDER.newURI(addrExt.getOutboundAction()));
        }
        else
        {
          log.warn("Unable to resolve replyAction for " + opMetaData.getQName());
        }

      }
      else if (isFault)        
      {
         AddressingOpMetaExt addrExt = (AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
               if (addrExt != null && msgContext.get("Exception") != null
                     && addrExt.getFaultActions() != null && addrExt.getFaultActions().length > 0)
               {
                  Exception ex = (Exception)msgContext.get("Exception");
                  for(FaultAction faultAction  : addrExt.getFaultActions())
                  {
                     if (faultAction.className().getName().equals(ex.getClass().getName()))
                     {
                        outProps.setAction(ADDR_BUILDER.newURI(faultAction.value()));
                        break;
View Full Code Here

/*      */   }
/*      */
/*      */   private void processMetaExtensions(Method method, EndpointMetaData epMetaData, OperationMetaData opMetaData)
/*      */   {
/*  527 */     AddressingProperties ADDR = new AddressingPropertiesImpl();
/*  528 */     AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
/*      */
/*  530 */     Action anAction = (Action)method.getAnnotation(Action.class);
/*  531 */     if (anAction != null)
/*      */     {
/*  533 */       addrExt.setInboundAction(anAction.input());
/*  534 */       addrExt.setOutboundAction(anAction.output());
/*      */     }
/*      */     else
/*      */     {
/*  540 */       String tns = epMetaData.getPortName().getNamespaceURI();
/*  541 */       String portTypeName = epMetaData.getPortName().getLocalPart();
/*  542 */       addrExt.setInboundAction(tns + "/" + portTypeName + "/IN");
/*      */
/*  544 */       if (!opMetaData.isOneWay()) {
/*  545 */         addrExt.setOutboundAction(tns + "/" + portTypeName + "/OUT");
/*      */       }
/*      */     }
/*  548 */     opMetaData.addExtension(addrExt);
/*      */   }
View Full Code Here

/*     */   {
/* 469 */     String tns = wsdlOperation.getName().getNamespaceURI();
/* 470 */     String portTypeName = wsdlOperation.getName().getLocalPart();
/*     */
/* 472 */     AddressingProperties ADDR = new AddressingPropertiesImpl();
/* 473 */     AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
/*     */
/* 476 */     WSDLProperty wsaInAction = wsdlOperation.getProperty("http://www.jboss.org/jbossws/wsa/actionIn");
/* 477 */     if (wsaInAction != null)
/*     */     {
/* 479 */       addrExt.setInboundAction(wsaInAction.getValue());
/*     */     }
/*     */     else
/*     */     {
/* 483 */       WSDLProperty messageName = wsdlOperation.getProperty("http://www.jboss.org/jbossws/messagename/in");
/* 484 */       addrExt.setInboundAction(tns + "/" + portTypeName + "/" + messageName);
/*     */     }
/*     */
/* 488 */     WSDLProperty wsaOutAction = wsdlOperation.getProperty("http://www.jboss.org/jbossws/wsa/actionOut");
/* 489 */     if (wsaOutAction != null)
/*     */     {
/* 491 */       addrExt.setOutboundAction(wsaOutAction.getValue());
/*     */     }
/*     */     else
/*     */     {
/* 495 */       WSDLProperty messageName = wsdlOperation.getProperty("http://www.jboss.org/jbossws/messagename/out");
/* 496 */       addrExt.setOutboundAction(tns + "/" + portTypeName + "/" + messageName);
/*     */     }
/*     */
/* 499 */     opMetaData.addExtension(addrExt);
/*     */   }
View Full Code Here

/*     */     {
/* 129 */       OperationMetaData opMetaData = ((CommonMessageContext)msgContext).getOperationMetaData();
/*     */
/* 131 */       if ((!isFault) && (!opMetaData.isOneWay()))
/*     */       {
/* 134 */         AddressingOpMetaExt addrExt = (AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
/* 135 */         if (addrExt != null)
/*     */         {
/* 137 */           outProps.setAction(ADDR_BUILDER.newURI(addrExt.getOutboundAction()));
/*     */         }
/*     */         else
/*     */         {
/* 141 */           log.warn("Unable to resolve replyAction for " + opMetaData.getQName());
/*     */         }
View Full Code Here

/*     */     {
/* 138 */       OperationMetaData opMetaData = ((SOAPMessageContextJAXRPC)msgContext).getOperationMetaData();
/*     */
/* 140 */       if ((!isFault) && (!opMetaData.isOneWay()))
/*     */       {
/* 143 */         AddressingOpMetaExt addrExt = (AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
/* 144 */         if (addrExt != null)
/*     */         {
/* 146 */           outProps.setAction(ADDR_BUILDER.newURI(addrExt.getOutboundAction()));
/*     */         }
/*     */         else
/*     */         {
/* 150 */           log.warn("Unable to resolve replyAction for " + opMetaData.getQName());
/*     */         }
View Full Code Here

      OperationMetaData opMetaData = ((CommonMessageContext)msgContext).getOperationMetaData();

      if (!isFault && !opMetaData.isOneWay())
      {

        AddressingOpMetaExt addrExt = (AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
        if (addrExt != null)
        {
          outProps.setAction(ADDR_BUILDER.newURI(addrExt.getOutboundAction()));
        }
        else
        {
          log.warn("Unable to resolve replyAction for " + opMetaData.getQName());
        }
View Full Code Here

    * Process operation meta data extensions.
    */
   private void processMetaExtensions(Method method, EndpointMetaData epMetaData, OperationMetaData opMetaData)
   {
      AddressingProperties ADDR = new AddressingPropertiesImpl();
      AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());

      Action anAction = method.getAnnotation(Action.class);
      if (anAction != null)
      {
         addrExt.setInboundAction(anAction.input());
         addrExt.setOutboundAction(anAction.output());
      }
      else
      // default action values
      {
         String tns = epMetaData.getPortName().getNamespaceURI();
         String portTypeName = epMetaData.getPortName().getLocalPart();
         String opName = opMetaData.getQName().getLocalPart();
         addrExt.setInboundAction(tns + "/" + portTypeName + "/" + opName + "Request");

         if (!opMetaData.isOneWay())
            addrExt.setOutboundAction(tns + "/" + portTypeName + "/" + opName + "Response");
      }

      opMetaData.addExtension(addrExt);
   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt

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.