Skip to content

Commit

Permalink
[NOJIRA]
Browse files Browse the repository at this point in the history
An attempt at returning something other than null for getDOM.
  • Loading branch information
Bill Smith committed Aug 28, 2018
1 parent 0aaf993 commit 4571b3e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
import lombok.EqualsAndHashCode;
import net.shibboleth.utilities.java.support.collection.LockableClassToInstanceMultiMap;
import net.shibboleth.utilities.java.support.xml.QNameSupport;
import org.opensaml.core.config.ConfigurationService;
import org.opensaml.core.xml.Namespace;
import org.opensaml.core.xml.NamespaceManager;
import org.opensaml.core.xml.XMLObject;
import org.opensaml.core.xml.config.XMLObjectProviderRegistry;
import org.opensaml.core.xml.io.MarshallingException;
import org.opensaml.core.xml.schema.XSBooleanValue;
import org.opensaml.core.xml.util.IDIndex;
import org.w3c.dom.Element;
Expand Down Expand Up @@ -45,7 +48,13 @@ public void detach() {

@Nullable
public Element getDOM() {
return null; //convert this class using opensaml stuff
XMLObjectProviderRegistry registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
try {
return registry.getMarshallerFactory().getMarshaller(this).marshall(this);
} catch (MarshallingException e) {
// TODO: some sort of logging?
return null;
}
}

public String getNamespaceURI() {
Expand Down

0 comments on commit 4571b3e

Please sign in to comment.