public class ContactCreateCommandUnspecExtension extends java.lang.Object implements CommandExtension
Extension for the EPP Contact Create command, indicating the contact can be used as an EXTContact. This will be acomplished by the use of the EPP unspec extension with a special extContact value.
Use this to command to mark a contact as an EXTContact which will cause NYC specific address validation to be performed.
DomainRenewCommand
,
Serialized FormCREATE, RENEW, TRANSFER, UPDATE
Constructor and Description |
---|
ContactCreateCommandUnspecExtension()
Constructor for the unspec extension used by contact create command.
|
ContactCreateCommandUnspecExtension(java.lang.Boolean extContact,
java.lang.String nexusCategory)
Deprecated.
As of release 3.7.7, replaced by
ContactCreateCommandUnspecExtension() |
Modifier and Type | Method and Description |
---|---|
void |
addToCommand(Command command) |
void |
setAppPurpose(java.lang.String appPurpose)
A string literal for "appPurpose" in the unspec extension.
|
void |
setExtContact(java.lang.Boolean extContact)
A boolean flag to indicate the desired output for "ExtContact" in the unspec extension.
|
void |
setNexusCategory(java.lang.String nexusCategory)
A string literal for "nexusCategory" in the unspec extension.
|
public ContactCreateCommandUnspecExtension()
After have such a object created, the caller shall specify data which they would like
to be present in the extension, by calling setExtContact(Boolean)
,
setNexusCategory(String)
, and/or setAppPurpose(String)
.
For example, the code below would generate unspec content as "nexusCategory=Foo appPurpose=Bar"
ContactCreateCommandUnspecExtension ext = new ContactCreateCommandUnspecExtension();
ext.setNexusCategory("Foo");
ext.setAppPurpose("Bar");
@Deprecated public ContactCreateCommandUnspecExtension(java.lang.Boolean extContact, java.lang.String nexusCategory)
ContactCreateCommandUnspecExtension()
extContact
- true would output "extContact=Y", while false would output "extContact=N"nexusCategory
- a string literal for "nexusCategory"public void addToCommand(Command command)
addToCommand
in interface CommandExtension
public void setExtContact(java.lang.Boolean extContact)
extContact
- true would output "extContact=Y", while false would output "extContact=N"public void setNexusCategory(java.lang.String nexusCategory)
nexusCategory
- string literalpublic void setAppPurpose(java.lang.String appPurpose)
appPurpose
- string literal