Package com.verisign.epp.codec.gen
Class EPPServiceMenu
java.lang.Object
com.verisign.epp.codec.gen.EPPServiceMenu
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Identifies the features supported by the server, including:
- One or more <version> elements that contain the protocol versions
supported by the server. Use
getVersionsandsetVersion(s)to get and set the element(s). - One or more <lang> elements that contain the identifiers of the text
response languages known by the server. Language identifiers MUST be
structured as documented in
[RFC1766]. Only
language identifiers listed in [ISO639] may be used. Use
getLangsandsetLang(s)to get and set the element(s). - One or more object-specific <obj:service> elements that identify the
objects that the server is capable of managing. Use
getObjectServicesandsetObjectServicesto 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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanFlag for inspecting whether the service is an ExtensionServicebooleanFlag for inspecting whether the service is an ObjectService -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPServiceMenuwith default attribute values. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPServiceMenu.voiddecodeEPPServiceMenufrom a DOM element tree.encodeEPPServiceMenuinto a DOM element tree.booleanimplements a deepEPPServiceMenucompare.Gets the list of supported/desired extension services.getLang()Gets the single EPP language.getLangs()Gets the list of supported/desired language(s).Returns the XML namespace associated with theEPPCodecComponent.Gets the list of supported/desired object services.Gets the single EPP version.Gets the list of supported/desired EPP versions.booleanhasExtensionService(String aNamespaceURI) Does the service menu extension services include a specified extension service based on the Namespace URI?booleanhasService(String aNamespaceURI) Does the service menu include a specified service based on the Namespace URI?voidsetExtensionServices(Vector<EPPService> aExtServices) Sets the list of supported/desired extension services.voidSets the languages to an individual language.voidSets the supported languages.voidsetObjectServices(Vector<EPPService> aObjServices) Sets the list of supported/desired object services.voidsetVersion(String aVersion) Sets the EPP versions to an individual EPP version.voidsetVersions(Vector<String> someVersions) Sets the supported versions.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
OBJ_SERVICE
public boolean OBJ_SERVICEFlag for inspecting whether the service is an ObjectService -
EXT_SERVICE
public boolean EXT_SERVICEFlag for inspecting whether the service is an ExtensionService
-
-
Constructor Details
-
EPPServiceMenu
public EPPServiceMenu()Allocates a newEPPServiceMenuwith default attribute values. The defaults include the following:
- versions is set to a
Vectorwith a single value defined by the constant EPPCodec.VERSION. - langs is set to a
Vectorwith a single "en" value. - services is set to the services returned from
EPPFactory - extservices is set to the extension services returned from
EPPFactory
Theencodemethod can be invoked with the default values set by this constructor. - versions is set to a
-
-
Method Details
-
getVersions
Gets the list of supported/desired EPP versions. An EPP Client uses this method to get the list of supported EPP versions of the EPP Server.- Returns:
- Vector of version
String's
-
setVersions
Sets the supported versions.- Parameters:
someVersions- Vector of versionString's supported by the server.
-
getVersion
Gets the single EPP version. A non-nullversion will be returned only if there is one version defined.- Returns:
- Single version if there is only one version;
nullotherwise.
-
setVersion
Sets the EPP versions to an individual EPP version.- Parameters:
aVersion- Version to set versions to.
-
getLangs
Gets the list of supported/desired language(s). Language identifiers MUST be structured as documented in [RFC1766].- Returns:
- Vector of language
String's
-
setLangs
Sets the supported languages.- Parameters:
aLangs- Vector of languageString's supported by the server.
-
getLang
Gets the single EPP language. A non-nulllanguage will be returned only if there is one language defined.- Returns:
- Single language if there is only one language;
nullotherwise.
-
setLang
Sets the languages to an individual language.- Parameters:
aLang- Language supported/desired.
-
getObjectServices
Gets the list of supported/desired object services. An EPP Client will retrieve the list of object services supported by the EPP Server. An EPP Server will retrieve the list of object services desired by the EPP Client.- Returns:
- Vector of
EPPServiceinstances.
-
setObjectServices
Sets the list of supported/desired object services. An EPP Client will set the list of object services desired. An EPP Server will set the list of supported object services.- Parameters:
aObjServices- Vector ofEPPServiceinstances.
-
getExtensionServices
Gets the list of supported/desired extension services. An EPP Client will retrieve the list of extension services supported by the EPP Server. An EPP Server will retrieve the list of extension services desired by the EPP Client.- Returns:
- Vector of
EPPServiceinstances.
-
setExtensionServices
Sets the list of supported/desired extension services. An EPP Client will set the list of extension services desired. An EPP Server will set the list of supported extension services.- Parameters:
aExtServices- Vector ofEPPServiceinstances.
-
hasService
Does the service menu include a specified service based on the Namespace URI?- Parameters:
aNamespaceURI- Service Namespace URI to search for- Returns:
trueif the service menu includes the service Namespace URI;falseotherwise.
-
hasExtensionService
Does the service menu extension services include a specified extension service based on the Namespace URI?- Parameters:
aNamespaceURI- Extension service Namespace URI to search for- Returns:
trueif the service menu extension services include the extension service Namespace URI;falseotherwise.
-
encode
encodeEPPServiceMenuinto a DOM element tree. The "service-menu" or "services" element is created and the attribute nodes are appended as children.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOCUMENT ME!- Returns:
- service menu root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPServiceMenufrom a DOM element tree. TheaElementargument needs to be the <service-menu> element for aEPPGreetingand <services> element for aEPPLoginCmd.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- root element tree.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPServiceMenucompare. -
clone
CloneEPPServiceMenu.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPServiceMenu - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-