com.liberty.rtk.extension.epprtk
Class Trademark

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by com.tucows.oxrs.epprtk.rtk.RTKBase
          extended by com.tucows.oxrs.epprtk.rtk.xml.EPPXMLBase
              extended by com.liberty.rtk.extension.epprtk.Trademark
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.openrtk.idl.epprtk.epp_Extension, org.openrtk.idl.epprtk.epp_ExtensionOperations

public class Trademark
extends com.tucows.oxrs.epprtk.rtk.xml.EPPXMLBase
implements org.openrtk.idl.epprtk.epp_Extension

This class is used to exchange Domain Trademark data with the Liberty .info/.mobi/.in Registry. There is not name space to specify which registry it was used for since in the begining there was only .info. Later on .mobi introduced and different registry has different settings for trademark infomation, it has to be optional for some fields in trademark to adapt to different registry. Here is the list of required fields: INFO MOBI IN registrars are free to fill infomation in trademark and it is registry's responsibility to validate those infomation. The data should only be used in the OT&E environment and during the live Sunrise period of the registry's operation. During this time the Registry will required the trademark data on domain creation.

See Also:
TrademarkData, TrademarkExample, EPPDomainCreate, EPPDomainInfo, EPPDomainUpdate, Serialized Form

Field Summary
 
Fields inherited from class com.tucows.oxrs.epprtk.rtk.xml.EPPXMLBase
auth_type_string_to_type_hash_, transfer_status_to_type_hash_, xml_
 
Fields inherited from class com.tucows.oxrs.epprtk.rtk.RTKBase
CRLF, DATE_FMT, DEBUG_LEVEL_ONE, DEBUG_LEVEL_THREE, DEBUG_LEVEL_TWO, DEBUG_NONE, RTK_VERSION, UTC_FMT
 
Constructor Summary
Trademark()
          Default constructor
Trademark(java.lang.String xml)
          Constructor with Domain Trademark Unspec XML string to automatically parse.
 
Method Summary
 void fromXML(java.lang.String xml)
          Parses an XML String of trademark data from the extension section of a response from the Registry.
 java.lang.String getCommand()
           
protected  java.lang.String getInnerXML(java.lang.String xml)
           
 java.lang.String getTld()
           
 TrademarkData getTrademarkData()
          Accessor method for the trademark app_date data member.
 void setCommand(java.lang.String command)
           
 void setTld(java.lang.String tld)
           
 void setTrademarkData(TrademarkData data)
           
 java.lang.String toXML()
          Converts the trademark data into XML to be put into the extension section of the request.
 
Methods inherited from class com.tucows.oxrs.epprtk.rtk.xml.EPPXMLBase
addXMLElement, convertListToArray, convertListToStringArray, createDocRoot, createXMLFromDoc, createXMLSnippetFromDoc, getAvailResultFor, getCheckResultFor, getDocumentElement, getElement, getExtensionNode, getNode, getPanData, getTransID, getXML, initAuthInfoStringToTypeHash, initHashes, initTransferStatusToTypeHash, parseGenericCheckResults, parseGenericResult, prepareAuthInfo, prepareExtensionElement, stringListToXML, transferStatusFromString, transferStatusToString
 
Methods inherited from class com.tucows.oxrs.epprtk.rtk.RTKBase
_ids, debug, debug, getDebugLevel, getDebugPrintStream, getEasyProperty, getRTKProperties, setDebugLevel, setDebugLevel, setDebugPrintStream
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

Trademark

public Trademark()
Default constructor


Trademark

public Trademark(java.lang.String xml)
          throws org.openrtk.idl.epprtk.epp_XMLException
Constructor with Domain Trademark Unspec XML string to automatically parse.

Parameters:
xml - The EPP Domain Info response XML String
Throws:
org.openrtk.idl.epprtk.epp_XMLException - if the response XML is not parsable or does not contain the expected data
See Also:
fromXML(String)
Method Detail

setTrademarkData

public void setTrademarkData(TrademarkData data)

getTrademarkData

public TrademarkData getTrademarkData()
Accessor method for the trademark app_date data member.

Parameters:
value - java.util.String

setCommand

public void setCommand(java.lang.String command)

getCommand

public java.lang.String getCommand()

setTld

public void setTld(java.lang.String tld)

getTld

public java.lang.String getTld()

toXML

public java.lang.String toXML()
                       throws org.openrtk.idl.epprtk.epp_XMLException
Converts the trademark data into XML to be put into the extension section of the request. Implemented method from org.openrtk.idl.epprtk.epp_Unspec interface.

Specified by:
toXML in interface org.openrtk.idl.epprtk.epp_ExtensionOperations
Throws:
org.openrtk.idl.epprtk.epp_XMLException - if required data is missing
See Also:
epp_Extension

fromXML

public void fromXML(java.lang.String xml)
             throws org.openrtk.idl.epprtk.epp_XMLException
Parses an XML String of trademark data from the extension section of a response from the Registry. Implemented method from org.openrtk.idl.epprtk.epp_Unspec interface.

Specified by:
fromXML in interface org.openrtk.idl.epprtk.epp_ExtensionOperations
Parameters:
A - new trademark Unspec XML String to parse
Throws:
org.openrtk.idl.epprtk.epp_XMLException - if the response XML is not parsable or does not contain the expected data
See Also:
epp_Action

getInnerXML

protected java.lang.String getInnerXML(java.lang.String xml)


Copyright © 2001-2003 - Afilias Limited