org.apache.jackrabbit.webdav.xml
Class ResultHelper

java.lang.Object
  extended by org.apache.jackrabbit.webdav.xml.ResultHelper

public final class ResultHelper
extends Object

ResultHelper is a utility to assert proper namespace handling due to misbehavior of certain implementations with respect to xmlns attributes. The code is copied and slightly modified from jcr-commons SerializingContentHandler

See Also:
JCR-2897.

Method Summary
static Result getResult(Result result)
          In case the underlying XML library doesn't properly handle xmlns attributes this method creates new content handler dealing with the misbehavior and returns an new instance of SAXResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResult

public static Result getResult(Result result)
                        throws SAXException
In case the underlying XML library doesn't properly handle xmlns attributes this method creates new content handler dealing with the misbehavior and returns an new instance of SAXResult. Otherwise the passed result is returned back.

Parameters:
result -
Returns:
A instance of Result that properly handles xmlns attributes.
Throws:
SAXException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.