Examples of CIDGenerator


Examples of org.jboss.ws.core.soap.attachment.CIDGenerator

/* 190 */         QName xmlName = paramMetaData.getXmlName();
/* 191 */         Object value = epInv.getRequestParamValue(xmlName);
/*     */
/* 193 */         if (paramMetaData.isSwA())
/*     */         {
/* 196 */           CIDGenerator cidGenerator = reqMessage.getCidGenerator();
/* 197 */           AttachmentPart part = createAttachmentPart(paramMetaData, value, cidGenerator);
/* 198 */           reqMessage.addAttachmentPart(part);
/*     */
/* 201 */           if (((value instanceof DataHandler)) && ((msgContext instanceof MessageContextJAXWS)))
/*     */           {
View Full Code Here

Examples of org.jboss.ws.core.soap.attachment.CIDGenerator

/* 444 */         if (opMetaData.isDocumentWrapped()) {
/* 445 */           value = ParameterWrapping.wrapResponseParameters(retMetaData, value, epInv.getOutParameters());
/*     */         }
/* 447 */         if (retMetaData.isSwA())
/*     */         {
/* 449 */           CIDGenerator cidGenerator = resMessage.getCidGenerator();
/* 450 */           AttachmentPart part = createAttachmentPart(retMetaData, value, cidGenerator);
/* 451 */           resMessage.addAttachmentPart(part);
/* 452 */           epInv.setReturnValue(part);
/*     */
/* 455 */           if ((part.getDataHandler() != null) && ((msgContext instanceof MessageContextJAXWS)))
/*     */           {
/* 457 */             DataHandler dataHandler = part.getDataHandler();
/* 458 */             Map attachments = (Map)msgContext.get("javax.xml.ws.binding.attachments.outbound");
/* 459 */             attachments.put(part.getContentId(), dataHandler);
/*     */           }
/*     */         }
/*     */         else
/*     */         {
/* 464 */           SOAPContentElement soapElement = addParameterToMessage(retMetaData, value, soapBodyElement);
/* 465 */           epInv.setReturnValue(soapElement);
/* 466 */           soapElement.setObjectValue(value);
/*     */         }
/*     */
/*     */       }
/*     */
/* 471 */       for (ParameterMetaData paramMetaData : opMetaData.getOutputParameters())
/*     */       {
/* 473 */         QName xmlName = paramMetaData.getXmlName();
/* 474 */         Object value = epInv.getResponseParamValue(xmlName);
/* 475 */         if (paramMetaData.isSwA())
/*     */         {
/* 477 */           CIDGenerator cidGenerator = resMessage.getCidGenerator();
/* 478 */           AttachmentPart part = createAttachmentPart(paramMetaData, value, cidGenerator);
/* 479 */           resMessage.addAttachmentPart(part);
/*     */
/* 482 */           if (((value instanceof DataHandler)) && ((msgContext instanceof MessageContextJAXWS)))
/*     */           {
View Full Code Here

Examples of org.jboss.ws.core.soap.attachment.CIDGenerator

            Object value = epInv.getRequestParamValue(xmlName);

            if (paramMetaData.isSwA())
            {
               // NOTE: swa:ref is handled by the AttachmentMarshaller callback
               CIDGenerator cidGenerator = reqMessage.getCidGenerator();
               AttachmentPart part = createAttachmentPart(paramMetaData, value, cidGenerator);
               reqMessage.addAttachmentPart(part);

               // Add the attachment to the standard property
               if (value instanceof DataHandler && msgContext instanceof MessageContextJAXWS)
View Full Code Here

Examples of org.jboss.ws.core.soap.attachment.CIDGenerator

            if (opMetaData.isDocumentWrapped())
               value = ParameterWrapping.wrapResponseParameters(retMetaData, value, epInv.getOutParameters());

            if (retMetaData.isSwA())
            {
               CIDGenerator cidGenerator = resMessage.getCidGenerator();
               AttachmentPart part = createAttachmentPart(retMetaData, value, cidGenerator);
               resMessage.addAttachmentPart(part);
               epInv.setReturnValue(part);

               // Add the attachment to the standard property
               if (part.getDataHandler() != null && msgContext instanceof MessageContextJAXWS)
               {
                  DataHandler dataHandler = part.getDataHandler();
                  Map<String, DataHandler> attachments = (Map<String, DataHandler>)msgContext.get(MessageContext.OUTBOUND_MESSAGE_ATTACHMENTS);
                  attachments.put(part.getContentId(), dataHandler);
               }
            }
            else
            {
               SOAPContentElement soapElement = addParameterToMessage(retMetaData, value, soapBodyElement);
               epInv.setReturnValue(soapElement);
               soapElement.setObjectValue(value);
            }
         }

         // Add the out parameters to the message
         for (ParameterMetaData paramMetaData : opMetaData.getOutputParameters())
         {
            QName xmlName = paramMetaData.getXmlName();
            Object value = epInv.getResponseParamValue(xmlName);
            if (paramMetaData.isSwA())
            {
               CIDGenerator cidGenerator = resMessage.getCidGenerator();
               AttachmentPart part = createAttachmentPart(paramMetaData, value, cidGenerator);
               resMessage.addAttachmentPart(part);

               // Add the attachment to the standard property
               if (value instanceof DataHandler && msgContext instanceof MessageContextJAXWS)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.