Package com.verisign.epp.codec.gen
Class EPPService
java.lang.Object
com.verisign.epp.codec.gen.EPPService
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Identifies an EPP Command Mapping service supported by the
EPPCodec. A service contains an XML namespace prefix, an XML
namespace URI, and an XML Schema location. Each concrete
EPPMapFactory is associated with an EPPService that
is used as a descriptor of the service. The list of supported
EPPServices can be retreived from the EPPFactory An
EPPService is a member of different EPP Messages including the
EPPGreeting and the EPPLoginCmd. An
EPPService is encoded into an individual XML element with a tag
name of XML namespace prefix:service and the XML attributes set to the
attribute values.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe service is an extension servicestatic final intThe service is an object serviceintDefines the type of service as either OBJ_SERVICE or EXT_SERVICE. -
Constructor Summary
ConstructorsConstructorDescriptionEPPService(String aNamespacePrefix, String aNamespaceURI) Allocates a newEPPServiceand sets all of the required attributes to the arguments values. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPService.voiddecodeEPPServicefrom a DOM element tree.encodeEPPServiceinto a DOM element tree.booleanimplements a deepEPPServicecompare.Returns the XML namespace associated with theEPPCodecComponent.Gets the XML namespace prefix associated with the service.Gets the XML namespace URI associated with the service.intGets the service type associcted with this servicevoidsetNamespacePrefix(String aNamespacePrefix) Set the XML namespace prefix associated with the service.voidsetNamespaceURI(String aNamespaceURI) Set the XML namespace URI associated with the service.voidsetServiceType(int aServiceType) Set the service type associated with this servicetoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
OBJ_SERVICE
public static final int OBJ_SERVICEThe service is an object service- See Also:
-
EXT_SERVICE
public static final int EXT_SERVICEThe service is an extension service- See Also:
-
serviceType
public int serviceTypeDefines the type of service as either OBJ_SERVICE or EXT_SERVICE. Default is OBJ_SERVICE.
-
-
Constructor Details
-
EPPService
public EPPService() -
EPPService
Allocates a newEPPServiceand sets all of the required attributes to the arguments values.- Parameters:
aNamespacePrefix- XML Namespace prefix for the service. For example, The Domain Mapping prefix is "domain".aNamespaceURI- XML Namespace URI for the service. For example, The Domain Mapping URI is "urn:iana:xmlns:domain".
-
-
Method Details
-
getNamespaceURI
Gets the XML namespace URI associated with the service.- Returns:
- XML namespace URI
Stringif defined;nullotherwise.
-
setNamespaceURI
Set the XML namespace URI associated with the service.- Parameters:
aNamespaceURI- XML namespace URIString
-
getNamespacePrefix
Gets the XML namespace prefix associated with the service.- Returns:
- XML namespace prefix
Stringif defined;nullotherwise.
-
setNamespacePrefix
Set the XML namespace prefix associated with the service.- Parameters:
aNamespacePrefix- XML namespace prefixString
-
setServiceType
public void setServiceType(int aServiceType) Set the service type associated with this service- Parameters:
aServiceType- .
-
getServiceType
public int getServiceType()Gets the service type associcted with this service- Returns:
- servicetype
int;nullotherwise.
-
encode
encodeEPPServiceinto a DOM element tree. The "prefix:service" element is created and the attribute values are appended as XML attributes.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOCUMENT ME!- Returns:
- service root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPServicefrom a DOM element tree. TheaElementargument needs to be the "prefix:service" element.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The "prefix:service" XML element.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPServicecompare. -
clone
CloneEPPService.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPService - 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.
-