summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSimon Rettberg2023-04-26 14:44:47 +0200
committerSimon Rettberg2023-04-26 14:44:47 +0200
commit51040e0f9d74b047e8838784e6119d0a6cfca5c0 (patch)
treee093bc3912e84c99a94426a0f278eb642700285a /src/main/java
parent[libvirt] Update rng files (diff)
downloadmaster-sync-shared-51040e0f9d74b047e8838784e6119d0a6cfca5c0.tar.gz
master-sync-shared-51040e0f9d74b047e8838784e6119d0a6cfca5c0.tar.xz
master-sync-shared-51040e0f9d74b047e8838784e6119d0a6cfca5c0.zip
[libvirt] Remove config validation on construction
Instead, we should do this explicitly after instantiating, so we can give the user the option to ignore this error and proceed.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/openslx/libvirt/xml/LibvirtXmlDocument.java28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlDocument.java b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlDocument.java
index c428988..06f8ba8 100644
--- a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlDocument.java
+++ b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlDocument.java
@@ -117,10 +117,9 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( String xml )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this( xml, null );
}
@@ -133,14 +132,12 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( String xml, InputStream rngSchema )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this.createXmlContext( rngSchema );
this.fromXml( xml );
- this.validateXml();
}
/**
@@ -150,10 +147,9 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( File xml )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this( xml, null );
}
@@ -166,14 +162,12 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( File xml, InputStream rngSchema )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this.createXmlContext( rngSchema );
this.fromXml( xml );
- this.validateXml();
}
/**
@@ -183,10 +177,9 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( InputStream xml )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this( xml, null );
}
@@ -199,14 +192,12 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( InputStream xml, InputStream rngSchema )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this.createXmlContext( rngSchema );
this.fromXml( xml );
- this.validateXml();
}
/**
@@ -216,10 +207,9 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( InputSource xml )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this( xml, null );
}
@@ -232,14 +222,12 @@ public abstract class LibvirtXmlDocument implements LibvirtXmlSerializable, Libv
*
* @throws LibvirtXmlDocumentException creation of XML context failed.
* @throws LibvirtXmlSerializationException serialization of the XML content failed.
- * @throws LibvirtXmlValidationException XML content is not a valid Libvirt XML.
*/
public LibvirtXmlDocument( InputSource xml, InputStream rngSchema )
- throws LibvirtXmlDocumentException, LibvirtXmlSerializationException, LibvirtXmlValidationException
+ throws LibvirtXmlDocumentException, LibvirtXmlSerializationException
{
this.createXmlContext( rngSchema );
this.fromXml( xml );
- this.validateXml();
}
/**