Examples of SwapableMemoryDataSource


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

/*     */     throws IOException
/*     */   {
/*     */     DataSource ds;
/* 185 */     if ((object instanceof byte[]))
/*     */     {
/* 187 */       ds = new SwapableMemoryDataSource(new ByteArrayInputStream((byte[])(byte[])object), contentType);
/*     */     }
/*     */     else
/*     */     {
/*     */       DataSource ds;
/* 189 */       if ((object instanceof DataHandler))
/*     */       {
/* 191 */         ds = new SwapableMemoryDataSource(((DataHandler)object).getInputStream(), contentType);
/*     */       }
/*     */       else
/*     */       {
/* 195 */         throw new IllegalArgumentException("Failed to wrap as data source: " + object.getClass());
/*     */       }
View Full Code Here

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

/* 341 */         AttachmentPart attachment = (AttachmentPart)it.next();
/*     */         try
/*     */         {
/* 344 */           if ((attachment.getDataHandler().getDataSource() instanceof SwapableMemoryDataSource))
/*     */           {
/* 346 */             SwapableMemoryDataSource swapFile = (SwapableMemoryDataSource)attachment.getDataHandler().getDataSource();
/* 347 */             swapFile.cleanup();
/*     */           }
/*     */         }
/*     */         catch (SOAPException e)
/*     */         {
/* 352 */           log.warn("Failed to cleanup attachment part", e);
View Full Code Here

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

            AttachmentPart attachment = (AttachmentPart)it.next();
            try
            {
               if(attachment.getDataHandler().getDataSource() instanceof SwapableMemoryDataSource)
               {
                  SwapableMemoryDataSource swapFile = (SwapableMemoryDataSource)attachment.getDataHandler().getDataSource();
                  swapFile.cleanup();
               }
            }
            catch (SOAPException e)
            {
               log.warn("Failed to cleanup attachment part", e);
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.