public final class DomainApplicationFeeResponseExtension extends ResponseExtension
Extension for the EPP Domain Create response, representing the Fee extension during a launch phase to create an application..
Use this to acknowledge the price associated with this domain name as part of an EPP Domain Create command compliant with RFC5730 and RFC5731. The "currency", "applicationFee", "allocationFee" and "registrationFee" values supplied, should match the fees that are set for the domain name for the requested period. The response expected from a server should be handled by a Domain Create Response.
CHK_DATA, CREATE, DATA, EXTENSION_EXPR, INFO, RENEW, TRANSFER, UPDATE
Constructor and Description |
---|
DomainApplicationFeeResponseExtension(java.lang.String responseType) |
Modifier and Type | Method and Description |
---|---|
void |
fromXML(XMLDocument xmlDoc)
Initialises the instance from the given XML document.
|
java.math.BigDecimal |
getAllocationFee() |
java.math.BigDecimal |
getApplicationFee() |
java.lang.String |
getCurrency() |
java.math.BigDecimal |
getRegistrationFee() |
boolean |
isInitialised()
Indicates whether fromXML() completed successfully and the extension was
successfully initialised from the EPP response.
|
replaceResponseType
public DomainApplicationFeeResponseExtension(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
public boolean isInitialised()
ResponseExtension
isInitialised
in class ResponseExtension
public java.lang.String getCurrency()
public java.math.BigDecimal getRegistrationFee()
public java.math.BigDecimal getAllocationFee()
public java.math.BigDecimal getApplicationFee()