Package org.jboss.ws.core.binding

Examples of org.jboss.ws.core.binding.BufferedStreamResult


      {
         value = JavaUtils.getPrimitiveValueArray(value);
         String valueStr = SimpleTypeBindings.marshalBase64((byte[])value);
         xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, null, attributes, true);
      }
      return new BufferedStreamResult(xmlFragment);
   }
View Full Code Here


         marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
         marshaller.setAttachmentMarshaller(new AttachmentMarshallerImpl());

         // It's safe to pass a stream result, because the SCE will always be in XML_VALID state afterwards.
         // This state can safely be written to an outstream. See XMLFragment and XMLContent as well.
         result = new BufferedStreamResult();
         marshaller.marshal(new JAXBElement(xmlName, expectedType, value), result);

         if (log.isDebugEnabled()) log.debug("serialized: " + result);
      }
      catch (Exception ex)
View Full Code Here

            nsExtras.add(nsURI);
      }

      String valueStr = SimpleTypeBindings.marshalQName(qnameValue, nsRegistry);
      String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, nsExtras, attributes, true);
      return new BufferedStreamResult(xmlFragment);
   }
View Full Code Here

      log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");

      NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
      nsRegistry.registerURI(Constants.NS_SCHEMA_XSI, Constants.PREFIX_XSI);
      String xmlFragment = wrapValueStr(xmlName, null, nsRegistry, null, attributes, true);
      return new BufferedStreamResult(xmlFragment);
   }
View Full Code Here

         throw new IllegalArgumentException("Element value cannot be null");
      if ((value instanceof Element) == false)
         throw new IllegalArgumentException("Value is not a Element: " + value.getClass().getName());

      String xmlFragment = DOMWriter.printNode((Element)value, false);
      return new BufferedStreamResult(xmlFragment);
   }
View Full Code Here

      else
         throw new IllegalArgumentException("Invalid xmlType: " + xmlType);

      NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
      String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, null, attributes, true);
      return new BufferedStreamResult(xmlFragment);
   }
View Full Code Here

         marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
         marshaller.setAttachmentMarshaller(new AttachmentMarshallerImpl());

         // It's safe to pass a stream result, because the SCE will always be in XML_VALID state afterwards.
         // This state can safely be written to an outstream. See XMLFragment and XMLContent as well.
         result = new BufferedStreamResult();
         marshaller.marshal(new JAXBElement(xmlName, expectedType, value), result);

         if (log.isDebugEnabled()) log.debug("serialized: " + result);
      }
      catch (Exception ex)
View Full Code Here

/*     */       }
/*  73 */       else if (this.jaxbContext != null)
/*     */       {
/*  75 */         Marshaller marshaller = this.jaxbContext.createMarshaller();
/*  76 */         marshaller.setProperty("jaxb.fragment", Boolean.valueOf(true));
/*  77 */         BufferedStreamResult result = new BufferedStreamResult();
/*  78 */         marshaller.marshal(obj, result);
/*     */
/*  80 */         reqMsg = new HTTPMessageImpl(result);
/*     */       }
/*     */     }
View Full Code Here

/* 68 */         nsExtras.add(nsURI);
/*    */       }
/*    */     }
/* 71 */     String valueStr = SimpleTypeBindings.marshalQName(qnameValue, nsRegistry);
/* 72 */     String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, nsExtras, attributes, true);
/* 73 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

/* 63 */     log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");
/*    */
/* 65 */     NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
/* 66 */     nsRegistry.registerURI("http://www.w3.org/2001/XMLSchema-instance", "xsi");
/* 67 */     String xmlFragment = wrapValueStr(xmlName, null, nsRegistry, null, attributes, true);
/* 68 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.binding.BufferedStreamResult

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.