Package com.coveo.saml
Class XMLHelper
java.lang.Object
com.coveo.saml.XMLHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.shibboleth.utilities.java.support.xml.BasicParserPoolCreates a DOM parserstatic DOMImplementationLSgetLSDOMImpl(Node node) Get the DOM Level 3 Load/SaveDOMImplementationLSfor the given node.static LSSerializergetLSSerializer(DOMImplementationLS domImplLS, Map<String, Object> serializerParams) Obtain a the DOM, level 3, Load/Save serializerLSSerializerinstance from the givenDOMImplementationLSinstance.static voidWrites a Node out to a Writer using the DOM, level 3, Load/Save serializer.static voidWrites a Node out to a Writer using the DOM, level 3, Load/Save serializer.
-
Constructor Details
-
XMLHelper
public XMLHelper()
-
-
Method Details
-
writeNode
Writes a Node out to a Writer using the DOM, level 3, Load/Save serializer. The written content is encoded using the encoding specified in the writer configuration.- Parameters:
node- the node to write outoutput- the writer to write the XML to
-
writeNode
Writes a Node out to a Writer using the DOM, level 3, Load/Save serializer. The written content is encoded using the encoding specified in the writer configuration.- Parameters:
node- the node to write outoutput- the writer to write the XML toserializerParams- parameters to pass to theDOMConfigurationof the serializer instance, obtained viaLSSerializer.getDomConfig(). May be null.
-
getLSSerializer
public static LSSerializer getLSSerializer(DOMImplementationLS domImplLS, Map<String, Object> serializerParams) Obtain a the DOM, level 3, Load/Save serializerLSSerializerinstance from the givenDOMImplementationLSinstance.The serializer instance will be configured with the parameters passed as the
serializerParamsargument. It will also be configured with anLSSerializerFilterthat shows all nodes to the filter, and accepts all nodes shown.- Parameters:
domImplLS- the DOM Level 3 Load/Save implementation to useserializerParams- parameters to pass to theDOMConfigurationof the serializer instance, obtained viaLSSerializer.getDomConfig(). May be null.- Returns:
- a new LSSerializer instance
-
getLSDOMImpl
Get the DOM Level 3 Load/SaveDOMImplementationLSfor the given node.- Parameters:
node- the node to evaluate- Returns:
- the DOMImplementationLS for the given node
-
createDOMParser
public static net.shibboleth.utilities.java.support.xml.BasicParserPool createDOMParser() throws SamlExceptionCreates a DOM parser- Returns:
- BasicParserPool
- Throws:
SamlException
-