Examples of addAttachment()


Examples of org.jboss.wsf.spi.deployment.Deployment.addAttachment()

            if (aspect.canHandle(dep)) {
                ROOT_LOGGER.aspectStart(aspect, unit.getName());
                ClassLoader origClassLoader = SecurityActions.getContextClassLoader();
                try {
                    SecurityActions.setContextClassLoader(aspect.getLoader());
                    dep.addAttachment(ServiceTarget.class, phaseContext.getServiceTarget());
                    aspect.start(dep);
                    dep.removeAttachment(ServiceTarget.class);
                } finally {
                    SecurityActions.setContextClassLoader(origClassLoader);
                }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.Endpoint.addAttachment()

               // build EJB 3 injections meta data
               final EnvironmentEntriesMetaData ejbEnvEntries = this.getEnvironmentEntries(ejbName, unit);
               final InjectionsMetaData injectionsMD = this.buildInjectionsMetaData(ejbEnvEntries, resolvers);

               // associate injections meta data with EJB 3 endpoint
               endpoint.addAttachment(InjectionsMetaData.class, injectionsMD);
            }
         }
      }
   }
View Full Code Here

Examples of org.jboss.wsf.spi.invocation.ExtensibleWebServiceContext.addAttachment()

         if (beanProp != null)
         {
            EJBContext ejbCtx = beanCtx.getEJBContext();
            SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
            ExtensibleWebServiceContext wsContext = spiProvider.getSPI(WebServiceContextFactory.class).newWebServiceContext(InvocationType.JAXWS_EJB3, jaxwsMessageContext);
            wsContext.addAttachment(EJBContext.class, ejbCtx);
            beanProp.set(beanCtx.getInstance(), wsContext);
         }
      }

      public void released(BeanContext beanCtx)
View Full Code Here

Examples of org.jets3t.service.impl.soap.axis._2006_03_01.AmazonS3SoapBindingStub.addAttachment()

                }               
               
                DataHandler dataHandler = new DataHandler(
                    new SourceDataSource(
                        null, contentType, new StreamSource(object.getDataInputStream())));          
                s3SoapBinding.addAttachment(dataHandler);               
            } else {
                DataHandler dataHandler = new DataHandler(
                    new SourceDataSource(
                        null, contentType, new StreamSource()));
                s3SoapBinding.addAttachment(dataHandler);               
View Full Code Here

Examples of org.mule.DefaultMuleMessage.addAttachment()

                props.put("doubleParam", 12345.6);
                props.put("integerParam", 12345);
                props.put("longParam", (long) 123456789);
                props.put("booleanParam", Boolean.TRUE);
                MuleMessage msg = new DefaultMuleMessage(context.getMessageAsString(), props, muleContext);
                msg.addAttachment("test1", new DataHandler(new DataSource()
                {
                    public InputStream getInputStream() throws IOException
                    {
                        return null;
                    }
View Full Code Here

Examples of org.mule.api.MuleMessage.addAttachment()

                props.put("doubleParam", 12345.6);
                props.put("integerParam", 12345);
                props.put("longParam", (long) 123456789);
                props.put("booleanParam", Boolean.TRUE);
                MuleMessage msg = new DefaultMuleMessage(context.getMessageAsString(), props, muleContext);
                msg.addAttachment("test1", new DataHandler(new DataSource()
                {
                    public InputStream getInputStream() throws IOException
                    {
                        return null;
                    }
View Full Code Here

Examples of org.mule.umo.UMOMessage.addAttachment()

        msg = new MuleMessage(strings[0]);

        for (int i = 1; i < strings.length; i++)
        {
            msg.addAttachment(strings[i], new DataHandler(new FileDataSource("./src/test/resources/"
                                                                             + strings[i])));
        }

        return msg;
    }
View Full Code Here

Examples of org.rssowl.core.persist.INews.addAttachment()

    category.setName("category");
    news1.addCategory(category);

    IAttachment attachment = fFactory.createAttachment(null, news1);
    attachment.setLink(new URI("attachment"));
    news1.addAttachment(attachment);

    feed = DynamicDAO.save(feed);

    IFolder root = fFactory.createFolder(null, null, "Root");
    IBookMark bm = fFactory.createBookMark(null, root, new FeedLinkReference(feed.getLink()), "Bookmark");
View Full Code Here

Examples of org.springframework.mail.javamail.MimeMessageHelper.addAttachment()

      helper.setFrom("testfrom@springintegration.org");
      helper.setTo("testto@springintegration.org");
      helper.setSubject("Parsing of Attachments");
      helper.setText("Spring Integration Rocks!");

      helper.addAttachment(pictureName, byteArrayResource, "image/png");

    }
    catch (MessagingException e) {
      throw new MailParseException(e);
    }
View Full Code Here

Examples of org.springframework.mail.javamail.MimeMessageHelper.addAttachment()

                if (email.getReplyTo() != null) {
                    message.setReplyTo(email.getReplyTo());
                }
                for (Iterator iter = email.getAttachments().iterator(); iter.hasNext();) {
                    Attachment attachment = (Attachment) iter.next();
                    message.addAttachment(attachment.getName(), attachment.getResource());
                }
                for (Iterator iter = email.getInlineAttachments().iterator(); iter.hasNext();) {
                    Attachment attachment = (Attachment) iter.next();
                    message.addInline(attachment.getName(), attachment.getResource());
                }
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.