Examples of marshal()


Examples of org.apache.juddi.handler.IHandler.marshal()

      // Lookup the appropriate response handler and marshal
      // the juddi object into the appropriate xml format (we
      // only support UDDI v2.0 at this time).  Attach the
      // results to the body of the SOAP response.
       
      responseHandler.marshal(uddiResObj,element);
     
      // Grab a reference to the 'temp' element's
      // only child here (this has the effect of
      // discarding the temp element) and append
      // this child to the soap response body
View Full Code Here

Examples of org.apache.maven.dotnet.assembler.AssemblyInfoMarshaller.marshal()

            FileUtils.mkdir( file.getParent() );

            FileOutputStream fos = new FileOutputStream( file );
            AssemblyInfoMarshaller marshaller =
                assemblerContext.getAssemblyInfoMarshallerFor( ProgrammingLanguage.C_SHARP );
            marshaller.marshal( assemblyInfo, fos );
        }
        catch ( IOException e )
        {
            throw new MojoExecutionException( "NMAVEN-902-002: Problem generating assembly info class", e );
        }
View Full Code Here

Examples of org.apache.solr.common.util.JavaBinCodec.marshal()

  public void write(OutputStream out, SolrQueryRequest req, SolrQueryResponse response) throws IOException {
    Resolver resolver = new Resolver(req, response.getReturnFields());
    Boolean omitHeader = req.getParams().getBool(CommonParams.OMIT_HEADER);
    if (omitHeader != null && omitHeader) response.getValues().remove("responseHeader");
    JavaBinCodec codec = new JavaBinCodec(resolver);
    codec.marshal(response.getValues(), out);
  }

  public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException {
    throw new RuntimeException("This is a binary writer , Cannot write to a characterstream");
  }
View Full Code Here

Examples of org.apache.solr.common.util.NamedListCodec.marshal()

public class BinaryResponseWriter implements BinaryQueryResponseWriter {
  public void write(OutputStream out, SolrQueryRequest req, SolrQueryResponse response) throws IOException {
    Resolver resolver = new Resolver(req, response.getReturnFields());
    NamedListCodec codec = new NamedListCodec(resolver);
    codec.marshal(response.getValues(), out);
  }

  public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException {
    throw new RuntimeException("This is a binary writer , Cannot write to a characterstream");
  }
View Full Code Here

Examples of org.apache.ws.jaxme.JMXmlSerializer.marshal()

  public void marshal(Object pObject, ContentHandler pHandler) throws JAXBException {
    JMElement element = (JMElement) pObject;
    try {
      JMXmlSerializer serializer = getJAXBContextImpl().getJMXmlSerializer(element.getQName());
      serializer.marshal(serializer.getData(this, pHandler), element.getQName(), element);
    } catch (SAXException e) {
      throw new MarshalException(e);
    }
  }
View Full Code Here

Examples of org.apache.ws.jaxme.impl.JMMarshallerImpl.marshal()

      }
      if (!done) {
        input.append(ch);
      }
    }
    marshaller.marshal(getAllTypesElement(), sw);
    assertStringEquals(input.toString(), sw.toString());
  }
 
  private String convertUnicode(String source)
  {
View Full Code Here

Examples of org.apache.ws.jaxme.test.misc.enumeration.impl.AllSimpleTypesSerializer.marshal()

    XMLWriter xw = new XMLWriterImpl();
    StringWriter sw = new StringWriter();
    xw.setWriter(sw);
    JMXmlSerializer.Data data = marshaller.getData((JMMarshaller) factory.createMarshaller(), xw);
    AllTypesElementImpl element = new AllTypesElementImpl();
    marshaller.marshal(data, new QName(element.getQName().getNamespaceURI(), "AllSimpleTypesElement"),
                       getAllSimpleTypesElement());
    String expected = getAllSimpleTypesElementString();
    String got = sw.toString();
    assertEquals(expected, got);
  }
View Full Code Here

Examples of org.apache.ws.jaxme.test.misc.enumeration.impl.AllSimpleTypesTypeSerializer.marshal()

    XMLWriter xw = new XMLWriterImpl();
    StringWriter sw = new StringWriter();
    xw.setWriter(sw);
    JMXmlSerializer.Data data = marshaller.getData((JMMarshaller) factory.createMarshaller(), xw);
    AllTypesElementImpl element = new AllTypesElementImpl();
    marshaller.marshal(data, new QName(element.getQName().getNamespaceURI(), "AllSimpleTypesElement"),
                       getAllSimpleTypesElement());
    String expected = getAllSimpleTypesElementString();
    String got = sw.toString();
    assertStringEquals(expected, got);
  }
View Full Code Here

Examples of org.apache.ws.jaxme.test.misc.types.impl.AllSimpleTypesSerializer.marshal()

    XMLWriter xw = new XMLWriterImpl();
    StringWriter sw = new StringWriter();
    xw.setWriter(sw);
    JMXmlSerializer.Data data = marshaller.getData((JMMarshaller) factory.createMarshaller(), xw);
    AllTypesElementImpl element = new AllTypesElementImpl();
    marshaller.marshal(data, new QName(element.getQName().getNamespaceURI(), "AllSimpleTypesElement"), getAllSimpleTypesElement());
    assertEquals(getAllSimpleTypesElementString(), sw.toString());
  }

  /** <p>Tests marshalling of a complex element.</p>
   */
 
View Full Code Here

Examples of org.apache.ws.jaxme.test.misc.types.impl.AllSimpleTypesTypeSerializer.marshal()

    XMLWriter xw = new XMLWriterImpl();
    StringWriter sw = new StringWriter();
    xw.setWriter(sw);
    JMXmlSerializer.Data data = marshaller.getData((JMMarshaller) factory.createMarshaller(), xw);
    AllTypesElementImpl element = new AllTypesElementImpl();
    marshaller.marshal(data, new QName(element.getQName().getNamespaceURI(), "AllSimpleTypesElement"), getAllSimpleTypesElement());
    assertStringEquals(getAllSimpleTypesElementString(), sw.toString());
  }

  public void testMarshalComplexElements() throws Exception {
    JAXBContext myFactory = getFactory();
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.