public class ContactUpdateCommandUnspecExtension extends java.lang.Object implements CommandExtension
Extension for the EPP Contact Update 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 |
---|
ContactUpdateCommandUnspecExtension()
Constructor for the unspec extension used by contact update command.
|
ContactUpdateCommandUnspecExtension(java.lang.Boolean extContact,
java.lang.String nexusCategory)
Deprecated.
As of release 3.7.9, replaced by
ContactUpdateCommandUnspecExtension() |
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 ContactUpdateCommandUnspecExtension()
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"
ContactUpdateCommandUnspecExtension ext = new ContactUpdateCommandUnspecExtension();
ext.setNexusCategory("Foo");
ext.setAppPurpose("Bar");
@Deprecated public ContactUpdateCommandUnspecExtension(java.lang.Boolean extContact, java.lang.String nexusCategory)
ContactUpdateCommandUnspecExtension()
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