|
EPP 0.4.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.neulevel.epp.core.EppEntity
com.neulevel.epp.core.command.EppCommand
public abstract class EppCommand
This EppCommand class implements EPP Command entity.
| Field Summary | |
|---|---|
protected java.lang.String |
clTRID
The client transaction id associated with the EPP Command |
protected EppCreds |
creds
The EPP Credentials associated with the EPP Command (optional) - for backward compatibility, not used any more in EPP-1.0 |
protected java.util.Vector |
extension
Any extension data associated with the EPP Command (optional) |
| Constructor Summary | |
|---|---|
EppCommand()
|
|
| Method Summary | |
|---|---|
void |
addExtension(org.w3c.dom.Element ext)
Adds an optional extension object |
void |
addExtension(EppExtension ext)
Adds an optional extension object |
static EppCommandCheck |
check(int objectType,
java.lang.String xid)
Creates an EppCommandCheck object based on the
object type. |
static EppCommandCreate |
create(EppObject object,
java.lang.String xid)
Creates an EppCommandCreate object. |
static EppCommandDelete |
delete(int objectType,
java.lang.String objectId,
java.lang.String xid)
Creates an EppCommandDelete object based on the
object type. |
static EppEntity |
fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppCommand object. |
java.lang.String |
getClientTransactionId()
Gets transaction id from the registrar client |
EppCreds |
getCreds()
Gets command credentials - for backward compatibility, not used any more in EPP-1.0 |
java.util.Vector |
getExtension()
Gets the list of extension objects, either EppUnspec, or DOM Element |
EppUnspec |
getUnspec()
Gets optional unspecified object - for backward compatibility |
static EppCommandInfo |
info(int objectType,
java.lang.String objectId,
java.lang.String xid)
Creates an EppCommandInfo object based on the
object type. |
static EppCommandRenew |
renew(int objectType,
java.lang.String objectId,
java.lang.String xid)
Creates an EppCommandRenew object based on the
object type. |
void |
setClientTransactionId(java.lang.String xid)
Sets transaction id from the registrar client |
void |
setCreds(EppCreds creds)
Sets command credentials - for backward compatibility, not used any more in EPP-1.0 |
void |
setUnspec(EppUnspec unspec)
Sets optional unspecified object - for backward compatibility |
protected org.w3c.dom.Element |
toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
org.w3c.dom.Element element)
Converts the shared EppCommand components into an XML
element. |
protected org.w3c.dom.Element |
toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
org.w3c.dom.Element element,
java.util.Vector attrList)
Converts the shared EppCommand components into an XML
element. |
protected org.w3c.dom.Element |
toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
EppEntity object)
Converts the shared EppCommand components into an XML
element. |
protected org.w3c.dom.Element |
toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
java.lang.Object object,
java.lang.String tag,
java.util.Vector attrList)
Converts the shared EppCommand components into an XML
element |
static EppCommandTransfer |
transfer(int objectType,
java.lang.String objectId,
java.lang.String xid)
Creates an EppCommandTransfer object based on the
object type. |
static EppCommandUpdate |
update(int objectType,
java.lang.String objectId,
java.lang.String xid)
Creates an EppCommandUpdate object based on the
object type. |
| Methods inherited from class com.neulevel.epp.core.EppEntity |
|---|
toString, toString, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected EppCreds creds
protected java.util.Vector extension
protected java.lang.String clTRID
| Constructor Detail |
|---|
public EppCommand()
| Method Detail |
|---|
public EppCreds getCreds()
public void setCreds(EppCreds creds)
public EppUnspec getUnspec()
public void setUnspec(EppUnspec unspec)
public java.util.Vector getExtension()
public void addExtension(EppExtension ext)
public void addExtension(org.w3c.dom.Element ext)
public java.lang.String getClientTransactionId()
public void setClientTransactionId(java.lang.String xid)
protected org.w3c.dom.Element toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
org.w3c.dom.Element element)
EppCommand components into an XML
element. The command must be object specific commands such as
create/delete/query, etc.
doc - the XML Document objectcommand - the tag/element name for the EppCommand
objectelement - the Element associated with the command
Element object
protected org.w3c.dom.Element toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
org.w3c.dom.Element element,
java.util.Vector attrList)
EppCommand components into an XML
element. The command must be object specific commands such as
create/delete/query, etc.
doc - the XML Document objectcommand - the tag/element name for the EppCommand
objectelement - the Element associated with the commandattrList - the Attr list associated with the
command
Element object
protected org.w3c.dom.Element toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
EppEntity object)
EppCommand components into an XML
element. The command must be object specific commands such as
create/delete/query, etc.
doc - the XML Document objectcommand - the tag/element name for the EppCommand
objectobject - the EppObject associated with the command.
the type of the object should be either
EppEntity or Element
Element object
protected org.w3c.dom.Element toXMLCommon(org.w3c.dom.Document doc,
java.lang.String command,
java.lang.Object object,
java.lang.String tag,
java.util.Vector attrList)
EppCommand components into an XML
element
doc - the XML Document objectcommand - the tag/element name for the EppCommand
objectobject - the Object associated with the command.
the type of the object should be either
EppEntity or Elementtag - the tag indicating if the command is generic, such
as login/logoutattrList - the Attr list associated with the
command
Element objectpublic static EppEntity fromXML(org.w3c.dom.Node root)
EppCommand object.
The caller of this method must make sure that the root node is of
an EPP Command entity.
root - root node for an EppCommand object in XML
format
EppEntity object, or null if the node
is invalid
public static EppCommandCreate create(EppObject object,
java.lang.String xid)
EppCommandCreate object. This is a
convience method for creating an EPP Object in the registry.
object - object to be created in the registryxid - client transaction id associated with the operation
EppCommandCreate object, which could
be one of the subclass of EppCommandCreate
public static EppCommandCheck check(int objectType,
java.lang.String xid)
EppCommandCheck object based on the
object type.
objectType - the type of objects to be checked. The value
must be defined in EppObject, as
one of the followings:
xid - client transaction id associated with the operation
EppCommandCheck object, which could
be one of the subclass of EppCommandCheck;
or null if the object type is invalid.
public static EppCommandDelete delete(int objectType,
java.lang.String objectId,
java.lang.String xid)
EppCommandDelete object based on the
object type.
objectType - the type of object to be deleted. The value
must be defined in EppObject, as
one of the followings:
objectId - the id associated with object to be deleted.
The value is id for an EPP Contact object,
domain name for an EPP Domain object, or host
name for an EPP Host object, or service
subscription id for an EPP Svcsub objectxid - client transaction id associated with the operation
EppCommandDelete object, which could
be one of the subclass of EppCommandDelete;
or null if the object type is invalid.
public static EppCommandInfo info(int objectType,
java.lang.String objectId,
java.lang.String xid)
EppCommandInfo object based on the
object type.
objectType - the type of object to be queried. The value
must be defined in EppObject, as
one of the followings:
objectId - the id associated with object to be queried.
The value is id for an EPP Contact object,
domain name for an EPP Domain object, or host
name for an EPP Host object, or service
subscription id for an EPP Svcsub objectxid - client transaction id associated with the operation
EppCommandInfo object, which could
be one of the subclass of EppCommandInfo;
or null if the object type is invalid.
public static EppCommandUpdate update(int objectType,
java.lang.String objectId,
java.lang.String xid)
EppCommandUpdate object based on the
object type.
objectType - the type of object to be updated. The value
must be defined in EppObject, as
one of the followings:
objectId - the id associated with object to be updated.
The value is id for an EPP Contact object,
domain name for an EPP Domain object, or host
name for an EPP Host object, or service subscription
id for an EPP Svcsub objectxid - client transaction id associated with the operation
EppCommandUpdate object, which could
be one of the subclass of EppCommandUpdate;
or null if the object type is invalid.
public static EppCommandTransfer transfer(int objectType,
java.lang.String objectId,
java.lang.String xid)
EppCommandTransfer object based on the
object type.
objectType - the type of object to be transferred. The value
must be defined in EppObject, as
one of the followings:
objectId - the id associated with object to be transferred.
The value is id for an EPP Contact object,
domain name for an EPP Domain object, or service
subscription id for an EPP Svcsub objectxid - client transaction id associated with the operation
EppCommandTransfer object, which could
be one of the subclass of EppCommandTransfer;
or null if the object type is invalid.
public static EppCommandRenew renew(int objectType,
java.lang.String objectId,
java.lang.String xid)
EppCommandRenew object based on the
object type.
objectType - the type of object to be renewed. The value
must be defined in EppObject, as
one of the followings:
objectId - the id associated with object to be renewed.
The value is the domain name for an EPP Domain
object, or service subscription id for an EPP
Svcsub objectxid - client transaction id associated with the operation
EppCommandRenew object, which could
be one of the subclass of EppCommandRenew;
or null if the object type is invalid.
Note: As the current expiration date of the object is default
to the current date, and the default value of the new
registration period is specified by the registry, the
the caller to this method may have to use
setCurrentExpiratin and setPeriod
to change these default values.
|
EPP 0.4.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||