public abstract class TransferCommand extends ObjectCommand
TransferResponse
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
objElement
cmdElement, command, extension
Constructor and Description |
---|
TransferCommand(ObjectType objType,
TransferOp operation,
java.lang.String ident)
Create a transfer command of the specified operation type mapped to the
specified object type for the identified object.
|
TransferCommand(ObjectType objType,
TransferOp operation,
java.lang.String ident,
Period period,
java.lang.String pw)
Create a transfer command of the specified operation type mapped to the
specified object type for the identified object.
|
TransferCommand(ObjectType objType,
TransferOp operation,
java.lang.String ident,
Period period,
java.lang.String roid,
java.lang.String pw)
Create a transfer command of the specified operation type mapped to the
specified object type for the identified object.
|
TransferCommand(ObjectType objType,
TransferOp operation,
java.lang.String ident,
java.lang.String pw)
Create a transfer command of the specified operation type mapped to the
specified object type for the identified object.
|
TransferCommand(ObjectType objType,
TransferOp operation,
java.lang.String ident,
java.lang.String roid,
java.lang.String pw)
Create a transfer command of the specified operation type mapped to the
specified object type for the identified object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toXML()
Serialize the EPP service element to XML.
|
java.lang.String |
toXML(XmlOutputConfig outputConfig)
Serialize the EPP service element to XML using the given output config.
|
appendExtension, getCommandType, getExtensionElement, getXmlWriter, initCmdElement, toXMLImpl
protected final transient XMLWriter xmlWriter
protected final transient java.util.logging.Logger userLogger
public TransferCommand(ObjectType objType, TransferOp operation, java.lang.String ident)
objType
- The type of object to which the transfer command is to be
mapped.operation
- The type of transfer operation to perform. Required.ident
- An object type-specific label identifying the object
subject to the transfer command.java.lang.IllegalArgumentException
- if operation
is null
.public TransferCommand(ObjectType objType, TransferOp operation, java.lang.String ident, java.lang.String pw)
objType
- The type of object to which the transfer command is to be
mapped.operation
- The type of transfer operation to perform.ident
- An object type-specific label identifying the object
subject to the transfer command.pw
- The password of the object subject to the transfer command -
also referred to as authInfo or authorisation information.public TransferCommand(ObjectType objType, TransferOp operation, java.lang.String ident, Period period, java.lang.String pw)
objType
- The type of object to which the transfer command is to be
mapped.operation
- The type of transfer operation to perform.ident
- An object type-specific label identifying the object
subject to the transfer command.period
- The validity period of the identified object should be
extended by this duration upon successful completion of the transfer
related to this command. Required.pw
- The password of the object subject to the transfer command -
also referred to as authInfo or authorisation information.java.lang.IllegalArgumentException
- if period
is null
.public TransferCommand(ObjectType objType, TransferOp operation, java.lang.String ident, java.lang.String roid, java.lang.String pw)
objType
- The type of object to which the transfer command is to be
mapped.operation
- The type of transfer operation to perform.ident
- An object type-specific label identifying the object
subject to the transfer command.roid
- The Repository Object Identifier of an object related to the
identified object subject to transfer which is considered a suitable
proxy for authorising transfer commands.pw
- The password of the related object identified by roid.public TransferCommand(ObjectType objType, TransferOp operation, java.lang.String ident, Period period, java.lang.String roid, java.lang.String pw)
objType
- The type of object to which the transfer command is to be
mapped.operation
- The type of transfer operation to perform.ident
- An object type-specific label identifying the object
subject to the transfer command.period
- The validity period of the identified object should be
extended by this duration upon successful completion of the transfer
related to this command.roid
- The Repository Object Identifier of an object related to the
identified object subject to transfer which is considered a suitable
proxy for authorising transfer commands.pw
- The password of the related object identified by ROID.public final java.lang.String toXML() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- The XML representation of the command
failed schema validation. Further attempts to serialize this command
will also fail.toXML
public final java.lang.String toXML(XmlOutputConfig outputConfig) throws org.xml.sax.SAXException
outputConfig
- a configuration that indicates how to output the XMLorg.xml.sax.SAXException
XmlOutputConfig