com.liberty.rtk.extension.epprtk

Class DomainProtocol

Implemented Interfaces:
epp_Extension

public class DomainProtocol
extends EPPXMLBase
implements epp_Extension

This extension is the .org domain's protocol in which it was registered: RRP or EPP. The .org EPP server will optionally return the extension XML for this class in the <domain:info> response. If the extension is not present and this handler is called, no exception will be thrown and the protocol will be set to "epp". The .org registry specifies that the default protocol value is "epp".
See Also:
DomainProtocolExample

Constructor Summary

DomainProtocol()
Default constructor
DomainProtocol(String xml)
Constructor with Protocol Version Extension XML string (from .org's ) to automatically parse.

Method Summary

void
fromXML(String xml)
This would parse a response from the server with the extension.
String
getProtocol()
Accessor method for the domain protocol
void
setProtocol(String value)
Accessor method for the domain protocol
String
toXML()
Converts the test number data into XML to be put into the unspec section of the request.

Constructor Details

DomainProtocol

public DomainProtocol()
Default constructor

DomainProtocol

public DomainProtocol(String xml)
            throws epp_XMLException,
                   epp_Exception
Constructor with Protocol Version Extension XML string (from .org's ) to automatically parse.
Parameters:
xml - The Protocol Version Extension response XML String

Method Details

fromXML

public void fromXML(String xml)
            throws epp_XMLException
This would parse a response from the server with the extension. but is only used in the request.
Implemented method from org.openrtk.idl.epprtk.epp_Extension interface.
Parameters:
See Also:
org.openrtk.idl.epprtk.epp_Action

getProtocol

public String getProtocol()
Accessor method for the domain protocol
Returns:
value The current value of the domain protocol

setProtocol

public void setProtocol(String value)
Accessor method for the domain protocol
Parameters:
value - The new value for the domain protocol

toXML

public String toXML()
            throws epp_XMLException
Converts the test number data into XML to be put into the unspec section of the request. Implemented method from org.openrrc.rtk.epprtk.epp_Unspec interface.
See Also:
org.openrtk.idl.epprtk.epp_Unspec

Copyright © 2001-2003 - Afilias Limited