Examples of XOPObject


Examples of org.jboss.xb.binding.sunday.xop.XOPObject

         if(xopMarshaller.isXOPPackage())
         {
            // XOPMarshaller callback will create the attachment part
            Object o = stack.peek();
            String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);

            // Create the xopInclude element from CID and exit
            AttributesImpl attrs = null;
            String prefix = getPrefix(elementNs);
            boolean genPrefix = prefix == null && elementNs != null && elementNs.length() > 0;
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPObject

/*  362 */     if ((xopMarshaller != null) && (isXopOptimizable(type)))
/*      */     {
/*  365 */       if (xopMarshaller.isXOPPackage())
/*      */       {
/*  368 */         Object o = this.stack.peek();
/*  369 */         String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);
/*      */
/*  372 */         AttributesImpl attrs = null;
/*  373 */         String prefix = getPrefix(elementNs);
/*  374 */         boolean genPrefix = (prefix == null) && (elementNs != null) && (elementNs.length() > 0);
/*  375 */         if (genPrefix)
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPObject

/* 60 */     NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
/*    */
/* 62 */     if (XOPContext.isXOPMessage())
/*    */     {
/* 64 */       XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
/* 65 */       XOPObject xopObject = new XOPObject(value);
/* 66 */       xopObject.setContentType("application/octet-stream");
/* 67 */       String cid = xopMarshaller.addMtomAttachment(xopObject, xmlName.getNamespaceURI(), xmlType.getLocalPart());
/* 68 */       String xopInclude = "<xop:Include xmlns:xop='http://www.w3.org/2004/08/xop/include' href='" + cid + "'/>";
/* 69 */       xmlFragment = wrapValueStr(xmlName, xopInclude, nsRegistry, null, attributes, false);
/*    */     }
/*    */     else
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPObject

/*     */     {
/*  70 */       AttachmentPart part = XOPContext.getAttachmentByCID(cid);
/*  71 */       DataHandler dataHandler = part.getDataHandler();
/*  72 */       String contentType = dataHandler.getContentType();
/*     */
/*  75 */       XOPObject xopObject = new XOPObject(dataHandler);
/*  76 */       xopObject.setContentType(contentType);
/*     */
/*  78 */       return xopObject;
/*     */     }
/*     */     catch (SOAPException e) {
/*     */     }
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPObject

/* 286 */     byte[] data = SimpleTypeBindings.unmarshalBase64(base64);
/*     */
/* 288 */     MimeUtils.ByteArrayConverter converter = MimeUtils.getConverterForContentType(contentType);
/* 289 */     Object converted = converter.readFrom(new ByteArrayInputStream(data));
/*     */
/* 291 */     XOPObject xopObject = new XOPObject(converted);
/* 292 */     xopObject.setContentType(contentType);
/*     */
/* 294 */     XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
/* 295 */     String cid = xopMarshaller.addMtomAttachment(xopObject, xopElement.getNamespaceURI(), xopElement.getLocalName());
/*     */
/* 298 */     Node child = xopElement.getFirstChild();
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPObject

         if(xopMarshaller.isXOPPackage())
         {
            // XOPMarshaller callback will create the attachment part
            Object o = stack.peek();
            String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);

            // Create the xopInclude element from CID and exit
            AttributesImpl attrs = null;
            String prefix = getPrefix(elementNs);
            boolean genPrefix = prefix == null && elementNs != null && elementNs.length() > 0;
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.