Examples of writeTo()


Examples of org.infinispan.schematic.internal.io.BsonDataOutput.writeTo()

     */
    public void write( Object object,
                       OutputStream stream ) throws IOException {
        BsonDataOutput buffer = new BsonDataOutput();
        write(null, object, buffer);
        buffer.writeTo(stream);
    }

    /**
     * Return the array of bytes containing the standard BSON binary form of the supplied in-memory {@link Document}.
     *
 
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayout.writeTo()

       
    public void setPortalControlStructures(PortalControlStructures pcs)
        throws PortalException {
        IUserLayout userLayout = pcs.getUserPreferencesManager().getUserLayoutManager().getUserLayout();
        userLayoutDoc = DocumentFactory.getNewDocument();
        userLayout.writeTo(userLayoutDoc);
    }

    public void renderXML(ContentHandler out) throws PortalException {
        XSLT xslt = XSLT.getTransformer(this, runtimeData.getLocales());
        xslt.setXML(userLayoutDoc);
View Full Code Here

Examples of org.jboss.byteman.rule.binding.Binding.writeTo()

        } else {
            String prefix = "BIND ";
            while (iter.hasNext()) {
                Binding binding = iter.next();
                stringWriter.write(prefix);
                binding.writeTo(stringWriter);
                prefix = ",\n     ";
            }
        }
        stringWriter.write("\n");
    }
View Full Code Here

Examples of org.jboss.resteasy.core.ServerResponse.writeTo()

                  MediaType resolvedContentType = resolveContentType(httpRequest,
                          httpRequest.getHttpHeaders().getMediaType());
                  ServerResponse responseInvoker = getResponse(model, resolvedContentType);
                  if (responseInvoker != null)
                  {
                     responseInvoker.writeTo(httpRequest, response, dispatcher.getProviderFactory());
                  }
               }
               catch (Exception e)
               {
                  dispatcher.handleWriteResponseException(httpRequest, response, e);
View Full Code Here

Examples of org.jboss.ws.core.MessageAbstraction.writeTo()

         log.debug("Sending response to addressing destination: " + wsaTo);
         new SOAPConnectionImpl().callOneWay((SOAPMessage)resMessage, wsaTo);
      }
      else
      {
         resMessage.writeTo(outputStream);
      }
   }

   /**
    * Handle a request to this web service endpoint
View Full Code Here

Examples of org.jboss.ws.core.jaxws.wsaddressing.NativeEndpointReference.writeTo()

   public void testNativeEndpointReferenceFromSource() throws Exception
   {
      final Source xml = new DOMSource(DOMUtils.parse(XML));
      NativeEndpointReference epr = new NativeEndpointReference(xml);
      DOMResult dr = new DOMResult();
      epr.writeTo(dr);
      Node endpointReferenceElement = dr.getNode();
      assertMetaData(endpointReferenceElement);
      assertRefParam(endpointReferenceElement, PARAM1_QNAME, "Hello");
      assertRefParam(endpointReferenceElement, PARAM2_QNAME, "World");
      assertEquals(new QName(MY_NS, "HelloService", MY_PREFIX), epr.getServiceName());
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPMessageImpl.writeTo()

      StringReader strReader = new java.io.StringReader(soapMsg);
      StreamSource streamSource2 = new StreamSource(strReader);
      soapMessage.getSOAPPart().setContent(streamSource2);

      ByteArrayOutputStream bout = new ByteArrayOutputStream();
      soapMessage.writeTo(bout);
      assertTrue(new String(bout.toByteArray()).indexOf("S:Header") > -1);
      assertTrue(new String(bout.toByteArray()).indexOf("S:Body") > -1);
   }

}
View Full Code Here

Examples of org.jboss.ws.core.soap.XMLFragment.writeTo()

   {
      ByteArrayOutputStream bout = new ByteArrayOutputStream();
      PrintWriter writer = new PrintWriter( bout);

      XMLFragment fragment = new XMLFragment(JAXB_FRAGMENT);
      fragment.writeTo(writer);
      writer.flush();

      String s = bout.toString();
      //System.out.println(s);
View Full Code Here

Examples of org.jboss.ws.core.soap.attachment.MultipartRelatedXOPEncoder.writeTo()

      MultipartRelatedXOPEncoder mrxe = new MultipartRelatedXOPEncoder( (SOAPMessageImpl) msg1);
      mrxe.encodeMultipartRelatedMessage();
     
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      mrxe.writeTo(out);

      if ( ! out.toString().contains("Content-Type: application/xop+xml; charset=UTF-8; type=\"text/xml\""))
         fail("Content-Type does not contain charset=UTF-8");                
   }
}
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.writeTo()

      ct.setParticle(xsp);
      xsmodel.addXSComplexTypeDefinition(ct)//Always add global complex types to global types
      //Lets write the schema into a file
      File xsdOutFile = new File("tools/wsdlwritedir/HelloObj.xsd");
      xsdOutFile.delete();
      xsmodel.writeTo(new FileOutputStream(xsdOutFile));
   }

   private XSNamedMap getXSNamedMap(XSModel xsmodel, String ns)
   {
      short typedef = XSTypeDefinition.COMPLEX_TYPE;
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.