PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.util
Class TransformerUtil

java.lang.Object
  extended by org.picketlink.identity.federation.core.util.TransformerUtil

public class TransformerUtil
extends Object

Utility to deal with JAXP Transformer

Since:
Oct 22, 2010
Author:
Anil.Saldhana@redhat.com

Constructor Summary
TransformerUtil()
           
 
Method Summary
static Transformer getStaxSourceToDomResultTransformer()
          Get the Custom Stax Source to DOM result transformer that has been written to get over the JDK transformer bugs (JDK6) as well as the issue of Xalan installing its Transformer (which does not support stax).
static Transformer getTransformer()
          Get the Default Transformer
static void transform(JAXBContext context, JAXBElement<?> jaxb, Result result)
           
static void transform(Transformer transformer, StAXSource stax, DOMResult result)
          Use the transformer to transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformerUtil

public TransformerUtil()
Method Detail

getTransformer

public static Transformer getTransformer()
                                  throws ConfigurationException
Get the Default Transformer

Returns:
Throws:
ConfigurationException

getStaxSourceToDomResultTransformer

public static Transformer getStaxSourceToDomResultTransformer()
                                                       throws ConfigurationException
Get the Custom Stax Source to DOM result transformer that has been written to get over the JDK transformer bugs (JDK6) as well as the issue of Xalan installing its Transformer (which does not support stax).

Returns:
Throws:
ConfigurationException

transform

public static void transform(Transformer transformer,
                             StAXSource stax,
                             DOMResult result)
                      throws ParsingException
Use the transformer to transform

Parameters:
transformer -
stax -
result -
Throws:
ParsingException

transform

public static void transform(JAXBContext context,
                             JAXBElement<?> jaxb,
                             Result result)
                      throws ParsingException
Throws:
ParsingException

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.