|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.gen.EPPGreeting
public class EPPGreeting
Represents an EPP Greeting message, which an EPP server uses in response to
a successful connection from an EPP client. The EPP Greeting contains the
following elements:
getServer and setServer to get and set the
element.
getServerDate and setServerData to
get and set the element.
getServiceMenu and setServiceMenu to
get and set the element.
EPPFactory,
Serialized Form| Field Summary | |
|---|---|
static short |
MAX_SERVER_LEN
Maximum length of the server attribute. |
static short |
MIN_SERVER_LEN
Minimum length of the server attribute. |
| Constructor Summary | |
|---|---|
EPPGreeting()
Allocates a new EPPGreeting with default attribute values. |
|
EPPGreeting(java.lang.String aServer,
java.util.Date aServerDate,
EPPServiceMenu aServiceMenu)
Allocates a new EPPGreeting and sets all of the instance
attributes with the arguments. |
|
EPPGreeting(java.lang.String aServer,
java.util.Date aServerDate,
EPPServiceMenu aServiceMenu,
EPPDcp aDcp)
Allocates a new EPPGreeting and sets the name and service
menu instance attributes with the arguments. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone EPPGreeting. |
void |
decode(org.w3c.dom.Element aElement)
decode EPPGreeting from a DOM element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode EPPGreeting into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
implements a deep EPPGreeting compare. |
EPPDcp |
getDcp()
|
java.lang.String |
getNamespace()
Gets the associated EPP namespace. |
java.lang.String |
getServer()
Gets the name of the server. |
java.util.Date |
getServerDate()
Gets the server current date and time. |
EPPServiceMenu |
getServiceMenu()
Gets the service menu associated with the greeting, which defines the features supported by the server. |
void |
setDcp(EPPDcp aDcp)
Sets the DataCollectionPolciy associated with the greeting, which defines the access and statement supported by the server. |
void |
setServer(java.lang.String aServer)
Sets the name of the server. |
void |
setServerDate(java.util.Date aServerDate)
Sets the server current date and time. |
void |
setServiceMenu(EPPServiceMenu aServiceMenu)
Sets the service menu associated with the greeting, which defines the features supported by the server. |
java.lang.String |
toString()
Implementation of Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final short MIN_SERVER_LEN
public static final short MAX_SERVER_LEN
| Constructor Detail |
|---|
public EPPGreeting()
EPPGreeting with default attribute values.
The defaults include the following: null
EPPServiceMenu
constructor
setServer needs to be called before encode
when using this constructor.
public EPPGreeting(java.lang.String aServer,
java.util.Date aServerDate,
EPPServiceMenu aServiceMenu,
EPPDcp aDcp)
EPPGreeting and sets the name and service
menu instance attributes with the arguments. The server date is
defaulted to now.
aServer - name of the serveraServerDate - current server date and timeaServiceMenu - service menu instance associated with the greetingaDcp - Dcp instance associated with the greeting
public EPPGreeting(java.lang.String aServer,
java.util.Date aServerDate,
EPPServiceMenu aServiceMenu)
EPPGreeting and sets all of the instance
attributes with the arguments.
aServer - name of the serveraServerDate - current server date and timeaServiceMenu - service menu instance associated with the greeting| Method Detail |
|---|
public java.lang.String getNamespace()
EPPCodec.NS.
getNamespace in interface EPPMessagepublic java.lang.String getServer()
MIN_SERVER_LEN and <= MAX_SERVER_LEN.
String instance if defined; null otherwise.public void setServer(java.lang.String aServer)
MIN_SERVER_LEN and <= MAX_SERVER_LEN.
aServer - unique server name.public java.util.Date getServerDate()
public void setServerDate(java.util.Date aServerDate)
aServerDate - Current server data and time.public EPPServiceMenu getServiceMenu()
public void setServiceMenu(EPPServiceMenu aServiceMenu)
aServiceMenu - service menu instance to associate with the
greeting.public void setDcp(EPPDcp aDcp)
aDcp - service menu instance to associate with the greeting.public EPPDcp getDcp()
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPGreeting into a DOM element tree. The
<greeting> element is created and the attribute nodes are
appended as children.
encode in interface EPPCodecComponentaDocument - DOCUMENT ME!
EPPEncodeException - Error encoding the DOM element tree.
public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPGreeting from a DOM element tree. The "greeting"
element needs to be the value of the aElement argument.
decode in interface EPPCodecComponentaElement - <greeting> root element tree.
EPPDecodeException - Error decoding the DOM element tree.public boolean equals(java.lang.Object aObject)
EPPGreeting compare.
equals in class java.lang.ObjectaObject - EPPGreeting instance to compare with
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPGreeting.
clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPGreeting
java.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.
toString in class java.lang.ObjectString if successful;
ERROR otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||