Examples of marshall()


Examples of org.mojavemvc.marshalling.XMLEntityMarshaller.marshall()

    @Test
    public void xmlEntityMarshallerReturnsView() {
       
        XMLEntityMarshaller m = new XMLEntityMarshaller();
        SimplePojo entity = new SimplePojo("test");
        View v = m.marshall(entity);
        assertTrue(v instanceof XML);
        assertEquals(new XML(entity).toString(), ((XML)v).toString());
    }
   
    @Test
View Full Code Here

Examples of org.mojavemvc.marshalling.XMLEntityMarshaller.marshall()

       
        XMLEntityMarshaller m = new XMLEntityMarshaller();
        SimplePojo entity = new SimplePojo("test");
        MarshallablePojo<SimplePojo> marshallable =
                new MarshallablePojo<SimplePojo>(entity);
        View v = m.marshall(marshallable);
        assertTrue(v instanceof XML);
        assertEquals(new XML(entity).toString(), ((XML)v).toString());
    }
   
    /* @Marshall marshalling */
 
View Full Code Here

Examples of org.mojavemvc.marshalling.XMLEntityMarshaller.marshall()

    public void xmlEntityMarshallerHandlesMarshallAnnotation() {
       
        XMLEntityMarshaller m = new XMLEntityMarshaller();
        SimplePojo entity = new SimplePojo("test");
        AnnotatedPojo marshallable = new AnnotatedPojo(entity);
        View v = m.marshall(marshallable);
        assertTrue(v instanceof XML);
        assertEquals(new XML(entity).toString(), ((XML)v).toString());
    }
   
    /*------------------------------------*/
 
View Full Code Here

Examples of org.opensaml.xml.io.Marshaller.marshall()

   }
  
   public Element toElement(XMLObject xmlObj) throws MarshallingException
   {
      Marshaller marshaller = Configuration.getMarshallerFactory().getMarshaller(xmlObj);
      return marshaller.marshall(xmlObj);
   }
  
   public String toString(XMLObject xmlObj) throws MarshallingException
   {
      return XMLHelper.prettyPrintXML(toElement(xmlObj));
View Full Code Here

Examples of org.opensaml.xml.io.Marshaller.marshall()

    protected void checkAndMarshall(XMLObject xmlObject) throws DecryptionException {
        Element targetElement = xmlObject.getDOM();
        if (targetElement == null) {
            Marshaller marshaller = Configuration.getMarshallerFactory().getMarshaller(xmlObject);
            try {
                targetElement = marshaller.marshall(xmlObject);
            } catch (MarshallingException e) {
                log.error("Error marshalling target XMLObject", e);
                throw new DecryptionException("Error marshalling target XMLObject", e);
            }
        }
View Full Code Here

Examples of org.opensaml.xml.io.Marshaller.marshall()

    protected void checkAndMarshall(XMLObject xmlObject) throws EncryptionException {
        Element targetElement = xmlObject.getDOM();
        if (targetElement == null) {
            Marshaller marshaller = Configuration.getMarshallerFactory().getMarshaller(xmlObject);
            try {
                targetElement = marshaller.marshall(xmlObject);
            } catch (MarshallingException e) {
                log.error("Error marshalling target XMLObject", e);
                throw new EncryptionException("Error marshalling target XMLObject", e);
            }
        }
View Full Code Here

Examples of org.openxml4j.opc.internal.PartMarshaller.marshall()

            + ZipHelper.getZipItemNameFromOPCName(part
                .getPartName().getName()) + "'");
        PartMarshaller marshaller = partMarshallers
            .get(part.contentType);
        if (marshaller != null) {
          if (!marshaller.marshall(part, zos)) {
            throw new OpenXML4JException(
                "The part "
                    + part.getPartName().getURI()
                    + " fail to be saved in the stream with marshaller "
                    + marshaller);
View Full Code Here

Examples of org.picketlink.identity.federation.api.saml.v2.request.SAML2Request.marshall()

        SAML2Request saml2Request = new SAML2Request();

        // Deal with the original request
        StringWriter sw = new StringWriter();

        saml2Request.marshall(authRequest, sw);

        // URL Encode the Request
        String urlEncodedRequest = RedirectBindingUtil.deflateBase64URLEncode(sw.toString());

        String urlEncodedRelayState = null;
View Full Code Here

Examples of org.picketlink.identity.federation.api.saml.v2.response.SAML2Response.marshall()

        // Lets see how the response looks like
        if (logger.isTraceEnabled()) {
            StringWriter sw = new StringWriter();
            try {
                saml2Response.marshall(responseType, sw);
            } catch (ProcessingException e) {
                logger.trace(e);
            }
            logger.trace("SAML Response Document: " + sw.toString());
        }
View Full Code Here

Examples of org.purl.sword.base.AtomDocumentResponse.marshall()

 
      // Print out the Deposit Response
      response.setStatus(dr.getHttpResponse());
      response.setContentType("application/atom+xml; charset=UTF-8");
      PrintWriter out = response.getWriter();
      out.write(dr.marshall());
      out.flush();
    } catch (SWORDAuthenticationException sae) {
      // Ask for credentials again
      String s = "Basic realm=\"SWORD\"";
      response.setHeader("WWW-Authenticate", s);
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.