public final class DomainVariantResponseExtensionV1_1 extends ResponseExtension
Extension for the EPP Domain Create and Domain Info response, representing the Variant Info aspect of the Domain Name Variant extension (v1.1).
Use this to access a list of the activated variants for a domain as provided in an EPP Domain Info or Domain Create response compliant with RFC5730 and RFC5731. Such a service element is sent by a compliant EPP server in response to a valid Domain Info or Domain Create command with the Domain Info Variant Command extension.
For flexibility, this implementation extracts the data from the response using XPath queries, the expressions for which are defined statically.
CHK_DATA, CREATE, DATA, EXTENSION_EXPR, INFO, RENEW, TRANSFER, UPDATE
Constructor and Description |
---|
DomainVariantResponseExtensionV1_1(java.lang.String responseType) |
Modifier and Type | Method and Description |
---|---|
void |
fromXML(XMLDocument xmlDoc)
Initialises the instance from the given XML document.
|
java.util.ArrayList<IdnDomainVariant> |
getVariants() |
boolean |
isInitialised()
Indicates whether fromXML() completed successfully and the extension was
successfully initialised from the EPP response.
|
replaceResponseType
public DomainVariantResponseExtensionV1_1(java.lang.String responseType)
public void fromXML(XMLDocument xmlDoc) throws javax.xml.xpath.XPathExpressionException
ResponseExtension
fromXML
in class ResponseExtension
xmlDoc
- EPP Response XMLjavax.xml.xpath.XPathExpressionException
ResponseExtension.fromXML(XMLDocument)
public java.util.ArrayList<IdnDomainVariant> getVariants()
public boolean isInitialised()
ResponseExtension
isInitialised
in class ResponseExtension