public class EPPServiceMenu extends java.lang.Object implements EPPCodecComponent
getVersions and
setVersion(s) to get and set the element(s).getLangs and setLang(s) to get and set the
element(s).getObjectServices and setObjectServices to get and
set the element(s). An optional <svcExtension> element that contains one
or more <extURI> elements that contains namespace URIS representin object
extensions supported by the server.EPPFactory,
EPPGreeting,
EPPService,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
boolean |
EXT_SERVICE
Flag for inspecting whether the service is an ExtensionService
|
boolean |
OBJ_SERVICE
Flag for inspecting whether the service is an ObjectService
|
| Constructor and Description |
|---|
EPPServiceMenu()
Allocates a new
EPPServiceMenu with default attribute values. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPServiceMenu. |
void |
decode(org.w3c.dom.Element aElement)
decode
EPPServiceMenu from a DOM element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode
EPPServiceMenu into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPServiceMenu compare. |
java.util.Vector |
getExtensionServices()
Gets the list of supported/desired extension services.
|
java.lang.String |
getLang()
Gets the single EPP language.
|
java.util.Vector |
getLangs()
Gets the list of supported/desired language(s).
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.util.Vector |
getObjectServices()
Gets the list of supported/desired object services.
|
java.lang.String |
getVersion()
Gets the single EPP version.
|
java.util.Vector |
getVersions()
Gets the list of supported/desired EPP versions.
|
boolean |
hasExtensionService(java.lang.String aNamespaceURI)
Does the service menu extension services include a specified extension
service based on the Namespace URI?
|
boolean |
hasService(java.lang.String aNamespaceURI)
Does the service menu include a specified service based on the Namespace
URI?
|
void |
setExtensionServices(java.util.Vector someExtServices)
Sets the list of supported/desired extension services.
|
void |
setLang(java.lang.String aLang)
Sets the languages to an individual language.
|
void |
setLangs(java.util.Vector someLangs)
Sets the supported languages.
|
void |
setObjectServices(java.util.Vector someObjServices)
Sets the list of supported/desired object services.
|
void |
setVersion(java.lang.String aVersion)
Sets the EPP versions to an individual EPP version.
|
void |
setVersions(java.util.Vector someVersions)
Sets the supported versions.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public boolean OBJ_SERVICE
public boolean EXT_SERVICE
public EPPServiceMenu()
EPPServiceMenu with default attribute values.
The defaults include the following: Vector with a single value defined
by the constant EPPCodec.VERSION.Vector with a single "en" value.EPPFactory
EPPFactoryencode method can be invoked with the default values set
by this constructor.public java.util.Vector getVersions()
String'spublic void setVersions(java.util.Vector someVersions)
someVersions - Vector of versionString's supported by the server.public java.lang.String getVersion()
null version will be
returned only if there is one version defined.null
otherwise.public void setVersion(java.lang.String aVersion)
aVersion - Version to set versions to.public java.util.Vector getLangs()
String'spublic void setLangs(java.util.Vector someLangs)
someLangs - Vector of languageString's supported by the server.public java.lang.String getLang()
null language will be
returned only if there is one language defined.null
otherwise.public void setLang(java.lang.String aLang)
aLang - Language supported/desired.public java.util.Vector getObjectServices()
EPPService instances.public void setObjectServices(java.util.Vector someObjServices)
someObjServices - Vector ofEPPService instances.public java.util.Vector getExtensionServices()
EPPService instances.public void setExtensionServices(java.util.Vector someExtServices)
someExtServices - Vector of EPPService instances.public boolean hasService(java.lang.String aNamespaceURI)
aNamespaceURI - Service Namespace URI to search fortrue if the service menu includes the service
Namespace URI; false otherwise.public boolean hasExtensionService(java.lang.String aNamespaceURI)
aNamespaceURI - Extension service Namespace URI to search fortrue if the service menu extension services include
the extension service Namespace URI; false otherwise.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPServiceMenu into a DOM element tree. The
"service-menu" or "services" 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
EPPServiceMenu from a DOM element tree. The
aElement argument needs to be the <service-menu> element
for a EPPGreeting and <services> element for a
EPPLoginCmd.decode in interface EPPCodecComponentaElement - root element tree.EPPDecodeException - Error decoding the DOM element tree.public boolean equals(java.lang.Object aObject)
EPPServiceMenu compare.equals in class java.lang.ObjectaObject - EPPServiceMenu instance to compare withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPServiceMenu.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPServiceMenujava.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.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.