Package org.jboss.ws.util.xml

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


      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

         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

         }
         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

      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

      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

      {
         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

      {
         valueStr = SimpleTypeBindings.marshal(xmlType.getLocalPart(), value, nsRegistry);
      }

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

TOP

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