Examples of BufferedStreamResult


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

/*  73 */       Marshaller marshaller = jaxbContext.createMarshaller();
/*     */
/*  75 */       marshaller.setProperty("jaxb.fragment", Boolean.valueOf(true));
/*  76 */       marshaller.setAttachmentMarshaller(new AttachmentMarshallerImpl());
/*     */
/*  80 */       result = new BufferedStreamResult();
/*  81 */       marshaller.marshal(new JAXBElement(xmlName, expectedType, value), result);
/*     */
/*  83 */       if (log.isDebugEnabled()) log.debug("serialized: " + result);
/*     */     }
/*     */     catch (Exception ex)
View Full Code Here

Examples of org.jboss.ws.util.xml.BufferedStreamResult

            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

Examples of org.jboss.ws.util.xml.BufferedStreamResult

      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

Examples of org.jboss.ws.util.xml.BufferedStreamResult

         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

Examples of org.jboss.ws.util.xml.BufferedStreamResult

      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

Examples of org.jboss.ws.util.xml.BufferedStreamResult

         serializeArrayComponents(compXmlName, compXmlType, serContext, objArr);
         buffer.append("</" + nodeName + ">");
         String xmlFragment = buffer.toString();
        
         log.debug("serialized: " + xmlFragment);
         return new BufferedStreamResult(xmlFragment);
      }
      catch (RuntimeException e)
      {
         throw e;
      }
View Full Code Here

Examples of org.jboss.ws.util.xml.BufferedStreamResult

         }
         else if (jaxbContext != null)
         {
            Marshaller marshaller = jaxbContext.createMarshaller();
            marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
            BufferedStreamResult result = new BufferedStreamResult();
            marshaller.marshal(obj, result);

            reqMsg = new HTTPMessageImpl(result);
         }
      }
View Full Code Here

Examples of org.jboss.ws.util.xml.BufferedStreamResult

      String valueStr = SimpleTypeBindings.marshalDateTime((Calendar)value);

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

Examples of org.jboss.ws.util.xml.BufferedStreamResult

      value = JavaUtils.getPrimitiveValueArray(value);
      String valueStr = SimpleTypeBindings.marshalHexBinary((byte[])value);

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

Examples of org.jboss.ws.util.xml.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
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.