You can subscribe to this list here.
2002 |
Jan
|
Feb
(1) |
Mar
(74) |
Apr
(4) |
May
(14) |
Jun
|
Jul
(4) |
Aug
(9) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(186) |
Apr
(26) |
May
(4) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(64) |
Oct
|
Nov
|
Dec
(11) |
2004 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(25) |
2005 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(6) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel M. <tub...@us...> - 2002-04-04 18:23:28
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv19704/src/com/tucows/oxrs/epp/rtk Modified Files: Tag: epp-0402 RTKBase.java Log Message: upped version number to 0.4.2 for new release Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/RTKBase.java,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** RTKBase.java 5 Feb 2002 17:10:55 -0000 1.12 --- RTKBase.java 4 Apr 2002 18:23:25 -0000 1.12.2.1 *************** *** 50,54 **** * RTK Version number. */ ! public static final String RTK_VERSION = "0.4.1"; /** --- 50,54 ---- * RTK Version number. */ ! public static final String RTK_VERSION = "0.4.2"; /** |
From: Daniel M. <tub...@us...> - 2002-04-04 18:23:28
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory usw-pr-cvs1:/tmp/cvs-serv19704 Modified Files: Tag: epp-0402 VERSION.TXT build.xml Log Message: upped version number to 0.4.2 for new release Index: VERSION.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/VERSION.TXT,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** VERSION.TXT 18 Dec 2001 16:33:52 -0000 1.17 --- VERSION.TXT 4 Apr 2002 18:23:25 -0000 1.17.2.1 *************** *** 1,3 **** ! Copyright (c) 2001 Tucows, Inc. All rights reserved. Tucows, Inc. --- 1,3 ---- ! Copyright (c) 2002 Tucows, Inc. All rights reserved. Tucows, Inc. *************** *** 6,9 **** --- 6,13 ---- EPP RTK Java Versions ====================== + + epp-rtk-java-0.4.2 - April 4, 2002 + + + Updated examples to work with .biz registry. epp-rtk-java-0.4.1 - Dec 18, 2001 Index: build.xml =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/build.xml,v retrieving revision 1.16 retrieving revision 1.16.2.1 diff -C2 -d -r1.16 -r1.16.2.1 *** build.xml 7 Nov 2001 21:01:32 -0000 1.16 --- build.xml 4 Apr 2002 18:23:25 -0000 1.16.2.1 *************** *** 9,13 **** <property name="optimize" value="true"/> <property name="project.name" value="epp-rtk-java"/> ! <property name="project.version" value="0.4.1"/> <!-- property name="build.compiler" value="jikes"/ --> <!-- property name="build.compiler" value="classic"/ --> --- 9,13 ---- <property name="optimize" value="true"/> <property name="project.name" value="epp-rtk-java"/> ! <property name="project.version" value="0.4.2"/> <!-- property name="build.compiler" value="jikes"/ --> <!-- property name="build.compiler" value="classic"/ --> |
From: Daniel M. <tub...@us...> - 2002-04-04 18:20:13
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv18078 Modified Files: Tag: epp-0402 EPPXMLBase.java Log Message: fix so that unspec is allowed to be a non-XML string -- such as for .us Nexus data which looks like "AppPurpose=P1 NexusCategory=C31/DE" Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** EPPXMLBase.java 16 Nov 2001 22:41:56 -0000 1.17 --- EPPXMLBase.java 4 Apr 2002 18:20:10 -0000 1.17.2.1 *************** *** 639,643 **** protected Node getUnspecNode(String unspec_string) throws IOException, SAXException { ! String method_name = "getUnspecElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); DOMParser parser = new DOMParser(); --- 639,643 ---- protected Node getUnspecNode(String unspec_string) throws IOException, SAXException { ! String method_name = "getUnspecNode()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); DOMParser parser = new DOMParser(); *************** *** 668,672 **** } } ! parser.parse(new InputSource(new ByteArrayInputStream(unspec_string.getBytes()))); Document document = parser.getDocument(); --- 668,684 ---- } } ! debug(DEBUG_LEVEL_TWO,method_name,"The unspec_string is ["+unspec_string+"]"); ! try ! { ! parser.parse(new InputSource(new ByteArrayInputStream(unspec_string.getBytes()))); ! } ! catch (SAXException xcp) ! { ! debug(DEBUG_LEVEL_THREE,method_name,xcp); ! // silently accept SAXException -- they mean that ! // the XML was unparseable... ie. the unspec string is just ! // a string, nothing special. The resulting document will ! // simply contain the unspec string. ! } Document document = parser.getDocument(); |
From: Daniel M. <tub...@us...> - 2002-03-20 17:38:13
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory usw-pr-cvs1:/tmp/cvs-serv15219 Modified Files: VERSION.TXT Log Message: finalized the notes for release 0.5.0 Index: VERSION.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/VERSION.TXT,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** VERSION.TXT 13 Mar 2002 02:22:13 -0000 1.18 --- VERSION.TXT 20 Mar 2002 17:00:38 -0000 1.19 *************** *** 1,3 **** ! Copyright (c) 2001 Tucows, Inc. All rights reserved. Tucows, Inc. --- 1,3 ---- ! Copyright (c) 2001, 2002 Tucows, Inc. All rights reserved. Tucows, Inc. *************** *** 7,13 **** ====================== ! epp-rtk-java-0.5.0 - ??? ??, 2002 + Initial Java RTK release for EPP 05/03 epp-rtk-java-0.4.1 - Dec 18, 2001 --- 7,23 ---- ====================== ! epp-rtk-java-0.5.0 - March 20, 2002 + Initial Java RTK release for EPP 05/03 + + Revamped polling structure and classes + + New EPP status command + + Restructuring to Check results -- "exists" + terminology changes to "avail" with opposite + boolean value. + + "Unspec" changed to "Extension" to match EPP + spec. + + IDL "Type" classes (eg. epp_TransferStatusType) + now have toString() methods to convert the + types to String representations. epp-rtk-java-0.4.1 - Dec 18, 2001 |
From: Daniel M. <tub...@us...> - 2002-03-20 05:47:39
|
Update of /cvsroot/epp-rtk/epp-rtk/java/doc In directory usw-pr-cvs1:/tmp/cvs-serv26771 Modified Files: epp-rtk-user-guide.html Log Message: updates to the user guide for release 0.5.0 -- changes include: <ul> <li>new classes -- Data Collection Policy (DCP), epp_DomainTrnData, epp_ContactTrnData <li>new command -- EPPStatus <li>Revamped polling <li>Changes to check results -- "exists" changed to "avail", which has opposite boolean value. also new optional reason for objects that are not available. <li>The "unspec" terminology was changes to "extension" to match the EPP spec. <li>Minor updates -- creation date returned on object creation; "Type" IDL classes (eg. epp_TransferStatusType) now have toString() method to convert a type to a string without using the clunky conversion methods in the EPP*Base classes </ul> Index: epp-rtk-user-guide.html =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/doc/epp-rtk-user-guide.html,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp-rtk-user-guide.html 25 Oct 2001 14:12:17 -0000 1.8 --- epp-rtk-user-guide.html 20 Mar 2002 05:47:36 -0000 1.9 *************** *** 14,19 **** User Guide</center></font></H1> ! <h3><center>Version 0.4.0</center></h3> ! <h3><center>Oct 3, 2001</center></h3> <h2><center>Created by: Tucows Inc.</center></h2> --- 14,19 ---- User Guide</center></font></H1> ! <h3><center>Version 0.5.0</center></h3> [...2114 lines suppressed...] <blockquote> --- 4685,4689 ---- </blockquote> ! <a name="EPPHostUpdate"><h4>6.4.5 EPPHostUpdate</h4></a> <blockquote> *************** *** 4508,4512 **** </blockquote> ! <a name="6.4.6"><h4>6.4.6 EPPHostDelete</h4></a> <blockquote> --- 4852,4856 ---- </blockquote> ! <a name="EPPHostDelete"><h4>6.4.6 EPPHostDelete</h4></a> <blockquote> |
From: Larry Y. <ly...@us...> - 2002-03-19 15:48:39
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv11483 Modified Files: epp_dcpStatement.java Log Message: changed the retention from an array type to a single type Index: epp_dcpStatement.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpStatement.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_dcpStatement.java 12 Mar 2002 22:00:26 -0000 1.1 --- epp_dcpStatement.java 19 Mar 2002 15:48:36 -0000 1.2 *************** *** 48,56 **** public org.openrtk.idl.epp.epp_dcpRecipientType m_recipients[] = null; /** ! * The array of data retention types. ! * @see #setRetentions(epp_dcpRetentionType[]) ! * @see #getRetentions() */ ! public org.openrtk.idl.epp.epp_dcpRetentionType m_retentions[] = null; /** --- 48,56 ---- public org.openrtk.idl.epp.epp_dcpRecipientType m_recipients[] = null; /** ! * The data retention type. ! * @see #setRetention(epp_dcpRetentionType) ! * @see #getRetention() */ ! public org.openrtk.idl.epp.epp_dcpRetentionType m_retention = null; /** *************** *** 65,75 **** * @param _m_purposes The array of data collection purpose types * @param _m_recipients The array of data recipient types ! * @param _m_retentions The array of data retention types */ ! public epp_dcpStatement (org.openrtk.idl.epp.epp_dcpPurposeType[] _m_purposes, org.openrtk.idl.epp.epp_dcpRecipientType[] _m_recipients, org.openrtk.idl.epp.epp_dcpRetentionType[] _m_retentions) { m_purposes = _m_purposes; m_recipients = _m_recipients; ! m_retentions = _m_retentions; } // ctor --- 65,75 ---- * @param _m_purposes The array of data collection purpose types * @param _m_recipients The array of data recipient types ! * @param _m_retention The data retention type */ ! public epp_dcpStatement (org.openrtk.idl.epp.epp_dcpPurposeType[] _m_purposes, org.openrtk.idl.epp.epp_dcpRecipientType[] _m_recipients, org.openrtk.idl.epp.epp_dcpRetentionType _m_retention) { m_purposes = _m_purposes; m_recipients = _m_recipients; ! m_retention = _m_retention; } // ctor *************** *** 99,113 **** public org.openrtk.idl.epp.epp_dcpRecipientType[] getRecipients() { return m_recipients; } /** ! * Accessor method for the array of data retention types ! * @param value The array of data retention types ! * @see #m_retentions */ ! public void setRetentions(org.openrtk.idl.epp.epp_dcpRetentionType[] value) { m_retentions = value; } /** ! * Accessor method for the array of data retention types ! * @return value The array of data retention types ! * @see #m_retentions */ ! public org.openrtk.idl.epp.epp_dcpRetentionType[] getRetentions() { return m_retentions; } /** --- 99,113 ---- public org.openrtk.idl.epp.epp_dcpRecipientType[] getRecipients() { return m_recipients; } /** ! * Accessor method for the data retention type ! * @param value The data retention type ! * @see #m_retention */ ! public void setRetention(org.openrtk.idl.epp.epp_dcpRetentionType value) { m_retention = value; } /** ! * Accessor method for the data retention type ! * @return value The data retention type ! * @see #m_retention */ ! public org.openrtk.idl.epp.epp_dcpRetentionType getRetention() { return m_retention; } /** *************** *** 116,120 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_purposes ["+(m_purposes != null ? java.util.Arrays.asList(m_purposes) : null)+"] m_recipients ["+(m_recipients != null ? java.util.Arrays.asList(m_recipients) : null)+"] m_retentions ["+(m_retentions != null ? java.util.Arrays.asList(m_retentions) : null)+"] }"; } } // class epp_dcpStatement --- 116,120 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_purposes ["+(m_purposes != null ? java.util.Arrays.asList(m_purposes) : null)+"] m_recipients ["+(m_recipients != null ? java.util.Arrays.asList(m_recipients) : null)+"] m_retention ["+m_retention+"] }"; } } // class epp_dcpStatement |
From: Larry Y. <ly...@us...> - 2002-03-19 15:47:07
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv10723 Modified Files: EPPGreeting.java Log Message: Modified to follow the change to the retention tag in idl Index: EPPGreeting.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPGreeting.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPGreeting.java 13 Mar 2002 22:33:49 -0000 1.6 --- EPPGreeting.java 19 Mar 2002 15:47:04 -0000 1.7 *************** *** 255,262 **** NodeList purpose_nodes = null; NodeList recipients_nodes = null; - NodeList retentions_nodes = null; List purpose_list = (List)new ArrayList(); List recipients_list = (List)new ArrayList(); - List retentions_list = (List)new ArrayList(); epp_dcpStatement dcp_statement = new epp_dcpStatement(); for (int i = 0; i < s_inner_nodes.getLength(); i++) --- 255,260 ---- *************** *** 264,269 **** Node s_node = s_inner_nodes.item(i); if (s_node.getNodeName().equals("purpose")) { purpose_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("recipients")) { recipients_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("retentions")) { retentions_nodes = s_node.getChildNodes(); } } if ( purpose_nodes != null ) --- 262,271 ---- Node s_node = s_inner_nodes.item(i); if (s_node.getNodeName().equals("purpose")) { purpose_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("recipient")) { recipients_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("retention")) ! { ! String type = s_node.getFirstChild().getNodeName().toLowerCase(); ! dcp_statement.m_retention = (epp_dcpRetentionType)dcp_retention_string_to_type_hash_.get(type); ! } } if ( purpose_nodes != null ) *************** *** 284,296 **** } dcp_statement.m_recipients = (epp_dcpRecipientType[])convertListToArray(epp_dcpRecipientType.class, recipients_list); - } - if ( retentions_nodes != null ) - { - for (int i = 0; i < retentions_nodes.getLength(); i++) - { - String type = retentions_nodes.item(i).getNodeName().toLowerCase(); - retentions_list.add(dcp_retention_string_to_type_hash_.get(type)); - } - dcp_statement.m_retentions = (epp_dcpRetentionType[])convertListToArray(epp_dcpRetentionType.class, retentions_list); } --- 286,289 ---- |
From: Larry Y. <ly...@us...> - 2002-03-15 20:14:34
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv3217 Modified Files: EPPStatus.java Log Message: "command" attributes moved to under tag <status> Index: EPPStatus.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPStatus.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EPPStatus.java 14 Mar 2002 23:23:14 -0000 1.2 --- EPPStatus.java 15 Mar 2002 20:14:29 -0000 1.3 *************** *** 118,122 **** Element cltrid = addXMLElement(doc, status, "clTRID", action_request_.m_client_trid);; ! cltrid.setAttribute("command", (String)status_command_to_string_hash_.get(action_request_.m_command)); command.appendChild( status ); --- 118,122 ---- Element cltrid = addXMLElement(doc, status, "clTRID", action_request_.m_client_trid);; ! status.setAttribute("command", (String)status_command_to_string_hash_.get(action_request_.m_command)); command.appendChild( status ); |
From: Larry Y. <ly...@us...> - 2002-03-15 19:30:19
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv24296 Modified Files: RTKBase.java Log Message: changed date format string Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/RTKBase.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** RTKBase.java 13 Mar 2002 02:11:23 -0000 1.13 --- RTKBase.java 15 Mar 2002 19:30:14 -0000 1.14 *************** *** 81,85 **** /** ! * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.0'Z'". * This is the format returned by the EPP Server in timestamps * (eg. expiration date, last modified date, etc...). It can be used --- 81,85 ---- /** ! * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.S'Z'". * This is the format returned by the EPP Server in timestamps * (eg. expiration date, last modified date, etc...). It can be used *************** *** 87,91 **** * <PRE>java.util.Date date_object = UTC_FMT.parse(date_string); </PRE> */ ! public static final DateFormat UTC_FMT = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.0'Z'"); /** --- 87,91 ---- * <PRE>java.util.Date date_object = UTC_FMT.parse(date_string); </PRE> */ ! public static final DateFormat UTC_FMT = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.S'Z'"); /** |
From: Larry Y. <ly...@us...> - 2002-03-15 19:11:18
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv18120 Modified Files: EPPDomainRenew.java Log Message: Fixed a bug: we used to parse <domain:creData> tag, the correct one should be <domain:renData> Index: EPPDomainRenew.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainRenew.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPDomainRenew.java 15 Mar 2002 15:31:48 -0000 1.8 --- EPPDomainRenew.java 15 Mar 2002 19:11:13 -0000 1.9 *************** *** 206,222 **** Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! NodeList domain_create_data_list = response_data_element.getElementsByTagName("domain:creData").item(0).getChildNodes(); ! debug(DEBUG_LEVEL_TWO,method_name,"domain:creData's node count ["+domain_create_data_list.getLength()+"]"); ! if ( domain_create_data_list == null || ! domain_create_data_list.getLength() == 0 ) { ! throw new epp_XMLException("missing domain create response data"); } ! for (int count = 0; count < domain_create_data_list.getLength(); count++) { ! Node a_node = domain_create_data_list.item(count); if ( a_node.getNodeName().equals("domain:name") ) { action_response_.m_name = a_node.getFirstChild().getNodeValue(); } --- 206,222 ---- Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! NodeList domain_renew_data_list = response_data_element.getElementsByTagName("domain:renData").item(0).getChildNodes(); ! debug(DEBUG_LEVEL_TWO,method_name,"domain:renData's node count ["+domain_renew_data_list.getLength()+"]"); ! if ( domain_renew_data_list == null || ! domain_renew_data_list.getLength() == 0 ) { ! throw new epp_XMLException("missing domain renew response data"); } ! for (int count = 0; count < domain_renew_data_list.getLength(); count++) { ! Node a_node = domain_renew_data_list.item(count); if ( a_node.getNodeName().equals("domain:name") ) { action_response_.m_name = a_node.getFirstChild().getNodeValue(); } |
From: Larry Y. <ly...@us...> - 2002-03-15 16:40:14
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv8751 Modified Files: ContactExample.java DomainExample.java HostExample.java Log Message: changed 'exists' to 'available' to reflect the real logic Index: ContactExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/ContactExample.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ContactExample.java 15 Mar 2002 15:51:21 -0000 1.12 --- ContactExample.java 15 Mar 2002 16:40:11 -0000 1.13 *************** *** 162,168 **** System.out.println("ContactCheck results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); epp_CheckResult[] check_results = contact_check_response.m_results; ! System.out.println("ContactCheck results: contact [C100-LRMS] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "C100-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C102-LRMS] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "C102-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C999-LRMS] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "C999-LRMS")+"]"); } catch ( epp_XMLException xcp ) --- 162,168 ---- System.out.println("ContactCheck results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); epp_CheckResult[] check_results = contact_check_response.m_results; ! System.out.println("ContactCheck results: contact [C100-LRMS] available? ["+EPPXMLBase.getAvailResultFor(check_results, "C100-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C102-LRMS] available? ["+EPPXMLBase.getAvailResultFor(check_results, "C102-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C999-LRMS] available? ["+EPPXMLBase.getAvailResultFor(check_results, "C999-LRMS")+"]"); } catch ( epp_XMLException xcp ) Index: DomainExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/DomainExample.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** DomainExample.java 15 Mar 2002 14:32:41 -0000 1.12 --- DomainExample.java 15 Mar 2002 16:40:11 -0000 1.13 *************** *** 233,239 **** // epp_CheckResult array. epp_CheckResult[] check_results = domain_check_response.m_results; ! System.out.println("DomainCheck results: domain ["+epp_client_id+"1.info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, epp_client_id+"1.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_client_id+"2.info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, epp_client_id+"2.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_domain_name+"] exists? ["+EPPXMLBase.getAvailResultFor(check_results, epp_domain_name)+"]"); } catch ( epp_XMLException xcp ) --- 233,239 ---- // epp_CheckResult array. epp_CheckResult[] check_results = domain_check_response.m_results; ! System.out.println("DomainCheck results: domain ["+epp_client_id+"1.info] available? ["+EPPXMLBase.getAvailResultFor(check_results, epp_client_id+"1.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_client_id+"2.info] available? ["+EPPXMLBase.getAvailResultFor(check_results, epp_client_id+"2.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_domain_name+"] available? ["+EPPXMLBase.getAvailResultFor(check_results, epp_domain_name)+"]"); } catch ( epp_XMLException xcp ) *************** *** 432,437 **** // successful domain creation. System.out.println("DomainCreate results: domain name ["+domain_create_response.m_name+"] exp date ["+domain_create_response.m_expiration_date+"]"); - // Save the expiration date for the renew command later - domain_exp_date = RTKBase.UTC_FMT.parse(domain_create_response.m_expiration_date); } catch ( epp_XMLException xcp ) --- 432,435 ---- Index: HostExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/HostExample.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** HostExample.java 15 Mar 2002 15:51:21 -0000 1.9 --- HostExample.java 15 Mar 2002 16:40:11 -0000 1.10 *************** *** 165,171 **** // epp_CheckResult array. epp_CheckResult[] check_results = host_check_response.m_results; ! System.out.println("HostCheck results: host [ns1."+epp_client_id+".info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "ns1."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [ns2."+epp_client_id+".info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "ns2."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [dns.host.info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "dns.host.info")+"]"); } catch ( epp_XMLException xcp ) --- 165,171 ---- // epp_CheckResult array. epp_CheckResult[] check_results = host_check_response.m_results; ! System.out.println("HostCheck results: host [ns1."+epp_client_id+".info] available? ["+EPPXMLBase.getAvailResultFor(check_results, "ns1."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [ns2."+epp_client_id+".info] available? ["+EPPXMLBase.getAvailResultFor(check_results, "ns2."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [dns.host.info] available? ["+EPPXMLBase.getAvailResultFor(check_results, "dns.host.info")+"]"); } catch ( epp_XMLException xcp ) |
From: Daniel M. <tub...@us...> - 2002-03-15 15:51:24
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv24978 Modified Files: ContactExample.java HostExample.java Log Message: changed getCheckResultFor() calls to getAvailResultFor() -- fixed contact id generation Index: ContactExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/ContactExample.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ContactExample.java 13 Mar 2002 02:02:25 -0000 1.11 --- ContactExample.java 15 Mar 2002 15:51:21 -0000 1.12 *************** *** 90,98 **** int epp_contact_port = Integer.parseInt(epp_contact_port_string); ! // This example uses the client trid to generate a unique contact id ! // so the create doesn't fail throw the whole example out the window ! // (we're dividing the current time by 1000 because without it ! // the contact id is too long) ! default_contact_id = epp_client_id + (System.currentTimeMillis() / 1000); EPPClient epp_client = new EPPClient(epp_contact_name, --- 90,103 ---- int epp_contact_port = Integer.parseInt(epp_contact_port_string); ! // This example uses the client trid to generate a unique contact id (as best we can) ! // so the create doesn't fail and throw the whole example out the window ! Random rng = new Random(); ! String randnum = "" + rng.nextInt() % 999999; ! while ( (epp_client_id + randnum).length() > 16 ) { ! // The contact ID length is a max of 16 characters ! // let's chop the front off of random number until it fits ! randnum = randnum.substring(0, randnum.length() - 1); ! } ! default_contact_id = epp_client_id + randnum; EPPClient epp_client = new EPPClient(epp_contact_name, *************** *** 157,163 **** System.out.println("ContactCheck results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); epp_CheckResult[] check_results = contact_check_response.m_results; ! System.out.println("ContactCheck results: contact [C100-LRMS] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "C100-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C102-LRMS] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "C102-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C999-LRMS] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "C999-LRMS")+"]"); } catch ( epp_XMLException xcp ) --- 162,168 ---- System.out.println("ContactCheck results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); epp_CheckResult[] check_results = contact_check_response.m_results; ! System.out.println("ContactCheck results: contact [C100-LRMS] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "C100-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C102-LRMS] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "C102-LRMS")+"]"); ! System.out.println("ContactCheck results: contact [C999-LRMS] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "C999-LRMS")+"]"); } catch ( epp_XMLException xcp ) Index: HostExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/HostExample.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** HostExample.java 13 Mar 2002 02:02:25 -0000 1.8 --- HostExample.java 15 Mar 2002 15:51:21 -0000 1.9 *************** *** 165,171 **** // epp_CheckResult array. epp_CheckResult[] check_results = host_check_response.m_results; ! System.out.println("HostCheck results: host [ns1."+epp_client_id+".info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "ns1."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [ns2."+epp_client_id+".info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "ns2."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [dns.host.info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "dns.host.info")+"]"); } catch ( epp_XMLException xcp ) --- 165,171 ---- // epp_CheckResult array. epp_CheckResult[] check_results = host_check_response.m_results; ! System.out.println("HostCheck results: host [ns1."+epp_client_id+".info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "ns1."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [ns2."+epp_client_id+".info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "ns2."+epp_client_id+".info")+"]"); ! System.out.println("HostCheck results: host [dns.host.info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, "dns.host.info")+"]"); } catch ( epp_XMLException xcp ) *************** *** 219,227 **** contact_create_request.m_cmd = command_data; ! // This example uses the client trid to generate a unique contact id ! // so the create doesn't fail throw the whole example out the window ! // (we're dividing the current time by 1000 because without it ! // the contact id is too long) ! contact_create_request.m_id = epp_client_id+(System.currentTimeMillis()/1000); epp_ContactNameAddress name_address = new epp_ContactNameAddress(); --- 219,232 ---- contact_create_request.m_cmd = command_data; ! // This example uses the client trid to generate a unique contact id (as best we can) ! // so the create doesn't fail and throw the whole example out the window ! Random rng = new Random(); ! String randnum = "" + rng.nextInt() % 999999; ! while ( (epp_client_id + randnum).length() > 16 ) { ! // The contact ID length is a max of 16 characters ! // let's chop the front off of random number until it fits ! randnum = randnum.substring(0, randnum.length() - 1); ! } ! contact_create_request.m_id = epp_client_id + randnum; epp_ContactNameAddress name_address = new epp_ContactNameAddress(); |
From: Larry Y. <ly...@us...> - 2002-03-15 15:50:55
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv24701 Modified Files: epp_dcpAccessType.java epp_dcpPurposeType.java epp_dcpRecipientType.java epp_dcpRetentionType.java Log Message: added toString() method to a whole bunch of "type" classes. This will allow us to remove the arrays from the EPP* classes that try to convert types to strings -- they are less hacky here Index: epp_dcpAccessType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpAccessType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_dcpAccessType.java 12 Mar 2002 22:00:26 -0000 1.1 --- epp_dcpAccessType.java 15 Mar 2002 15:50:52 -0000 1.2 *************** *** 38,41 **** --- 38,42 ---- private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpAccessType[] __array = new org.openrtk.idl.epp.epp_dcpAccessType [__size]; + private static String[] __strings = { "all","noaccess","null","social","technical" }; /** *************** *** 118,120 **** --- 119,123 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_dcpAccessType Index: epp_dcpPurposeType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpPurposeType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_dcpPurposeType.java 12 Mar 2002 22:00:26 -0000 1.1 --- epp_dcpPurposeType.java 15 Mar 2002 15:50:52 -0000 1.2 *************** *** 38,41 **** --- 38,42 ---- private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpPurposeType[] __array = new org.openrtk.idl.epp.epp_dcpPurposeType [__size]; + private static String[] __strings = { "contact","dnReg","ipReg","other","tmReg" }; /** *************** *** 118,120 **** --- 119,123 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_dcpPurposeType Index: epp_dcpRecipientType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpRecipientType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_dcpRecipientType.java 12 Mar 2002 22:00:26 -0000 1.1 --- epp_dcpRecipientType.java 15 Mar 2002 15:50:52 -0000 1.2 *************** *** 37,40 **** --- 37,41 ---- private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpRecipientType[] __array = new org.openrtk.idl.epp.epp_dcpRecipientType [__size]; + private static String[] __strings = { "other","ours","public","same","unrelated" }; /** *************** *** 117,119 **** --- 118,122 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_dcpRecipientType Index: epp_dcpRetentionType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpRetentionType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_dcpRetentionType.java 12 Mar 2002 22:00:26 -0000 1.1 --- epp_dcpRetentionType.java 15 Mar 2002 15:50:52 -0000 1.2 *************** *** 37,40 **** --- 37,41 ---- private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpRetentionType[] __array = new org.openrtk.idl.epp.epp_dcpRetentionType [__size]; + private static String[] __strings = { "business","functional","indefinite","legal","none" }; /** *************** *** 117,119 **** --- 118,122 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_dcpRetentionType |
From: Larry Y. <ly...@us...> - 2002-03-15 15:49:56
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv23826 Modified Files: EPPXMLBase.java Log Message: removed the hacky dcp type arrays we kept here to convert, and suggest to use type's toString() method Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** EPPXMLBase.java 15 Mar 2002 15:31:48 -0000 1.26 --- EPPXMLBase.java 15 Mar 2002 15:49:52 -0000 1.27 *************** *** 93,156 **** /** - * Array to allow for conversion from epp_dcpAccessType to - * a String representation of the type. - * The epp_dcpAccessType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp.idl for the definition of the epp_dcpAccessType enum - */ - protected static String[] dcp_access_type_to_string_array_ = { - "all", - "noaccess", - "null", - "social", - "technical", - }; - - /** - * Array to allow for conversion from epp_dcpPurposeType to - * a String representation of the type. - * The epp_dcpPurposeType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp.idl for the definition of the epp_dcpPurposeType enum - */ - protected static String[] dcp_purpose_type_to_string_array_ = { - "contact", - "dnReg", - "ipReg", - "other", - "tmReg" - }; - - /** - * Array to allow for conversion from epp_dcpRecipientType to - * a String representation of the type. - * The epp_dcpRecipientType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp.idl for the definition of the epp_dcpRecipientType enum - */ - protected static String[] dcp_recipient_type_to_string_array_ = { - "other", - "ours", - "public", - "same", - "unrelated" - }; - - /** - * Array to allow for conversion from epp_dcpRetentionType to - * a String representation of the type. - * The epp_dcpRetentionType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp.idl for the definition of the epp_dcpRetentionType enum - */ - protected static String[] dcp_retention_type_to_string_array_ = { - "business", - "functional", - "indefinite", - "legal", - "none" - }; - - /** * Holder of the response XML String */ --- 93,96 ---- *************** *** 880,903 **** { return (epp_TransferStatusType) transfer_status_to_type_hash_.get(s.toLowerCase()); - } - - public static String dcpAccessTypeToString(epp_dcpAccessType access_type) - { - return dcp_access_type_to_string_array_[access_type.value()]; - } - - public static String dcpPurposeTypeToString(epp_dcpPurposeType purpose_type) - { - return dcp_purpose_type_to_string_array_[purpose_type.value()]; - } - - public static String dcpRecipientTypeToString(epp_dcpRecipientType recipient_type) - { - return dcp_recipient_type_to_string_array_[recipient_type.value()]; - } - - public static String dcpRetentionTypeToString(epp_dcpRetentionType retention_type) - { - return dcp_retention_type_to_string_array_[retention_type.value()]; } --- 820,823 ---- |
From: Daniel M. <tub...@us...> - 2002-03-15 15:31:53
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv14485 Modified Files: EPPContactBase.java EPPContactTransfer.java EPPContactUpdate.java EPPDomainBase.java EPPDomainCreate.java EPPDomainInfo.java EPPDomainRenew.java EPPDomainTransfer.java EPPDomainUpdate.java EPPHostBase.java EPPHostCreate.java EPPHostUpdate.java EPPXMLBase.java Log Message: converted EPP* classes to use the new toString() method in a bunch of epp_*Type classes -- and removed the hacky arrays we kept here to convert Index: EPPContactBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactBase.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPContactBase.java 12 Mar 2002 22:23:00 -0000 1.10 --- EPPContactBase.java 15 Mar 2002 15:31:48 -0000 1.11 *************** *** 54,79 **** */ protected static Hashtable contact_status_hash_; ! /** ! * Array to allow for conversion from epp_ContactStatusType to ! * a String representation of the contact status. ! * The epp_ContactStatusType static classes have a value() member ! * function which returns their integer position in the enum. ! * @see The EPP IDL epp_contact.idl for the definition of the epp_ContactStatusType enum ! */ ! // The ordering of the strings in this array must match the ! // enum in epp_contact.idl, otherwise the wrong statuses ! // will be used. ! protected static String[] status_to_string_array_ = { ! "clientDeleteProhibited", ! "serverDeleteProhibited", ! "clientTransferProhibited", ! "serverTransferProhibited", ! "clientUpdateProhibited", ! "serverUpdateProhibited", ! "linked", ! "ok", ! "pendingDelete", ! "pendingTransfer" ! }; /** * Default Constructor. --- 54,58 ---- */ protected static Hashtable contact_status_hash_; ! /** * Default Constructor. *************** *** 178,182 **** public static String contactStatusToString(epp_ContactStatusType status_type) { ! return status_to_string_array_[status_type.value()]; } --- 157,161 ---- public static String contactStatusToString(epp_ContactStatusType status_type) { ! return status_type.toString(); } Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPContactTransfer.java 14 Mar 2002 22:59:36 -0000 1.10 --- EPPContactTransfer.java 15 Mar 2002 15:31:48 -0000 1.11 *************** *** 127,134 **** transfer_request_data.m_op = epp_TransferOpType.QUERY; } - else if ( transfer_request_data.m_op.value() >= transfer_op_to_string_array_.length ) - { - throw new epp_XMLException("invalid transfer op value"); - } Document doc = new DocumentImpl(); --- 127,130 ---- *************** *** 143,147 **** Element transfer = doc.createElement("transfer"); ! transfer.setAttribute("op", transfer_op_to_string_array_[transfer_request_data.m_op.value()]); Element contact_transfer = doc.createElement("contact:transfer"); --- 139,143 ---- Element transfer = doc.createElement("transfer"); ! transfer.setAttribute("op", transfer_request_data.m_op.toString()); Element contact_transfer = doc.createElement("contact:transfer"); Index: EPPContactUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactUpdate.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPContactUpdate.java 14 Mar 2002 22:59:36 -0000 1.8 --- EPPContactUpdate.java 15 Mar 2002 15:31:48 -0000 1.9 *************** *** 212,220 **** epp_ContactStatus status = (epp_ContactStatus)it.next(); Element status_element = addXMLElement(doc, add_remove_element, "contact:status", status.m_value); ! if ( status.m_type.value() >= status_to_string_array_.length ) ! { ! throw new epp_XMLException("invalid status in request data"); ! } ! status_element.setAttribute("s", status_to_string_array_[status.m_type.value()]); if ( status.m_lang != null ) { --- 212,216 ---- epp_ContactStatus status = (epp_ContactStatus)it.next(); Element status_element = addXMLElement(doc, add_remove_element, "contact:status", status.m_value); ! status_element.setAttribute("s", status.m_type.toString()); if ( status.m_lang != null ) { Index: EPPDomainBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainBase.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPDomainBase.java 12 Mar 2002 22:23:00 -0000 1.9 --- EPPDomainBase.java 15 Mar 2002 15:31:48 -0000 1.10 *************** *** 56,120 **** protected static Hashtable domain_status_hash_; /** - * Array to allow for conversion from epp_DomainStatusType to - * a String representation of the domain status. - * The epp_DomainStatusType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum - */ - protected static String[] status_to_string_array_ = { - "clientDeleteProhibited", - "clientHold", - "clientRenewProhibited", - "clientTransferProhibited", - "clientUpdateProhibited", - "inactive", - "ok", - "pendingDelete", - "pendingTransfer", - "pendingVerification", - "serverDeleteProhibited", - "serverHold", - "serverRenewProhibited", - "serverTransferProhibited", - "serverUpdateProhibited" - }; - /** * @see The EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum */ protected static Hashtable contact_type_hash_; - /** - * @see The EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum - */ - protected static String[] contact_type_to_string_array_ = { - "admin", - "billing", - "tech" - }; - /** - * Array to allow for conversion from epp_DomainPeriodUnitType to - * a String representation of the unit type. - * The epp_DomainPeriodUnitType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp_domain.idl for the definition of the epp_DomainPeriodUnitType enum - */ - public static String[] period_unit_to_string_array_ = { - "y", - "m" - }; - - /** - * Array to allow for conversion from epp_DomainHostsType to - * a String representation of the hosts type. - * The epp_DomainHostsType static classes have a value() member - * function which returns their integer position in the enum. - * @see org.openrtk.idl.epp.domain.epp_DomainHostsType - * @see The EPP IDL epp_domain.idl for the definition of the epp_DomainHostsType enum - */ - public static String[] hosts_type_to_string_array_ = { - "all", - "del", - "none", - "sub" - }; /** --- 56,62 ---- *************** *** 186,190 **** public static String domainStatusToString(epp_DomainStatusType status_type) { ! return status_to_string_array_[status_type.value()]; } --- 128,132 ---- public static String domainStatusToString(epp_DomainStatusType status_type) { ! return status_type.toString(); } *************** *** 195,199 **** public static String domainContactTypeToString(epp_DomainContactType contact_type) { ! return contact_type_to_string_array_[contact_type.value()]; } --- 137,141 ---- public static String domainContactTypeToString(epp_DomainContactType contact_type) { ! return contact_type.toString(); } Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPDomainCreate.java 15 Mar 2002 02:33:01 -0000 1.9 --- EPPDomainCreate.java 15 Mar 2002 15:31:48 -0000 1.10 *************** *** 136,140 **** epp_DomainPeriod domain_period = action_request_.m_period; Element period = addXMLElement(doc, domain_create, "domain:period", Short.toString(domain_period.m_value)); ! period.setAttribute("unit", period_unit_to_string_array_[domain_period.m_unit.value()]); } --- 136,140 ---- epp_DomainPeriod domain_period = action_request_.m_period; Element period = addXMLElement(doc, domain_create, "domain:period", Short.toString(domain_period.m_value)); ! period.setAttribute("unit", domain_period.m_unit.toString()); } *************** *** 163,167 **** epp_DomainContact domain_contact = (epp_DomainContact)it.next(); Element contact_element = addXMLElement(doc, domain_create, "domain:contact", domain_contact.m_id); ! contact_element.setAttribute("type", contact_type_to_string_array_[domain_contact.m_type.value()]); } } --- 163,167 ---- epp_DomainContact domain_contact = (epp_DomainContact)it.next(); Element contact_element = addXMLElement(doc, domain_create, "domain:contact", domain_contact.m_id); ! contact_element.setAttribute("type", domain_contact.m_type.toString()); } } Index: EPPDomainInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainInfo.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPDomainInfo.java 15 Mar 2002 14:13:15 -0000 1.8 --- EPPDomainInfo.java 15 Mar 2002 15:31:48 -0000 1.9 *************** *** 119,126 **** action_request_.m_hosts_type = epp_DomainHostsType.ALL; } - else if ( action_request_.m_hosts_type.value() >= hosts_type_to_string_array_.length ) - { - throw new epp_XMLException("invalid hosts type value"); - } Document doc = new DocumentImpl(); --- 119,122 ---- *************** *** 141,145 **** Element domain_name = addXMLElement(doc, domain_info, "domain:name", action_request_.m_name); ! domain_name.setAttribute("hosts", hosts_type_to_string_array_[action_request_.m_hosts_type.value()]); info.appendChild( domain_info ); --- 137,141 ---- Element domain_name = addXMLElement(doc, domain_info, "domain:name", action_request_.m_name); ! domain_name.setAttribute("hosts", action_request_.m_hosts_type.toString()); info.appendChild( domain_info ); Index: EPPDomainRenew.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainRenew.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPDomainRenew.java 14 Mar 2002 22:57:04 -0000 1.7 --- EPPDomainRenew.java 15 Mar 2002 15:31:48 -0000 1.8 *************** *** 137,141 **** epp_DomainPeriod domain_period = action_request_.m_period; Element period = addXMLElement(doc, domain_renew, "domain:period", Short.toString(domain_period.m_value)); ! period.setAttribute("unit", period_unit_to_string_array_[domain_period.m_unit.value()]); } --- 137,141 ---- epp_DomainPeriod domain_period = action_request_.m_period; Element period = addXMLElement(doc, domain_renew, "domain:period", Short.toString(domain_period.m_value)); ! period.setAttribute("unit", domain_period.m_unit.toString()); } Index: EPPDomainTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainTransfer.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPDomainTransfer.java 14 Mar 2002 22:57:04 -0000 1.9 --- EPPDomainTransfer.java 15 Mar 2002 15:31:48 -0000 1.10 *************** *** 126,133 **** transfer_request_data.m_op = epp_TransferOpType.QUERY; } - else if ( transfer_request_data.m_op.value() >= transfer_op_to_string_array_.length ) - { - throw new epp_XMLException("invalid transfer op value"); - } Document doc = new DocumentImpl(); --- 126,129 ---- *************** *** 142,146 **** Element transfer = doc.createElement("transfer"); ! transfer.setAttribute("op", transfer_op_to_string_array_[transfer_request_data.m_op.value()]); Element domain_transfer = doc.createElement("domain:transfer"); --- 138,142 ---- Element transfer = doc.createElement("transfer"); ! transfer.setAttribute("op", transfer_request_data.m_op.toString()); Element domain_transfer = doc.createElement("domain:transfer"); *************** *** 154,158 **** epp_DomainPeriod domain_period = action_request_.m_period; Element period = addXMLElement(doc, domain_transfer, "domain:period", Short.toString(domain_period.m_value)); ! period.setAttribute("unit", period_unit_to_string_array_[domain_period.m_unit.value()]); } --- 150,154 ---- epp_DomainPeriod domain_period = action_request_.m_period; Element period = addXMLElement(doc, domain_transfer, "domain:period", Short.toString(domain_period.m_value)); ! period.setAttribute("unit", domain_period.m_unit.toString()); } Index: EPPDomainUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainUpdate.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPDomainUpdate.java 14 Mar 2002 22:57:04 -0000 1.7 --- EPPDomainUpdate.java 15 Mar 2002 15:31:48 -0000 1.8 *************** *** 235,239 **** epp_DomainContact domain_contact = (epp_DomainContact)it.next(); Element contact_element = addXMLElement(doc, add_remove_element, "domain:contact", domain_contact.m_id); ! contact_element.setAttribute("type", contact_type_to_string_array_[domain_contact.m_type.value()]); } } --- 235,239 ---- epp_DomainContact domain_contact = (epp_DomainContact)it.next(); Element contact_element = addXMLElement(doc, add_remove_element, "domain:contact", domain_contact.m_id); ! contact_element.setAttribute("type", domain_contact.m_type.toString()); } } *************** *** 252,260 **** epp_DomainStatus status = (epp_DomainStatus)it.next(); Element status_element = addXMLElement(doc, add_remove_element, "domain:status", status.m_value); ! if ( status.m_type.value() >= status_to_string_array_.length ) ! { ! throw new epp_XMLException("invalid status in request data"); ! } ! status_element.setAttribute("s", status_to_string_array_[status.m_type.value()]); if ( status.m_lang != null ) { --- 252,256 ---- epp_DomainStatus status = (epp_DomainStatus)it.next(); Element status_element = addXMLElement(doc, add_remove_element, "domain:status", status.m_value); ! status_element.setAttribute("s", status.m_type.toString()); if ( status.m_lang != null ) { Index: EPPHostBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostBase.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPHostBase.java 12 Mar 2002 22:23:00 -0000 1.8 --- EPPHostBase.java 15 Mar 2002 15:31:48 -0000 1.9 *************** *** 50,70 **** */ protected static Hashtable host_status_hash_; ! /** ! * Array to allow for conversion from epp_HostStatusType to ! * a String representation of the host status. ! * The epp_HostStatusType static classes have a value() member ! * function which returns their integer position in the enum. ! * @see The EPP IDL epp_host.idl for the definition of the epp_HostStatusType enum ! */ ! protected static String[] status_to_string_array_ = { ! "clientDeleteProhibited", ! "clientUpdateProhibited", ! "linked", ! "ok", ! "pendingDelete", ! "pendingTransfer", ! "serverDeleteProhibited", ! "serverUpdateProhibited" ! }; /** * Hashtable to allow for conversion from String address type to --- 50,54 ---- */ protected static Hashtable host_status_hash_; ! /** * Hashtable to allow for conversion from String address type to *************** *** 73,87 **** */ protected static Hashtable host_ip_to_type_hash_; - /** - * Array to allow for conversion from epp_HostAddressType to - * a String representation of the host address. - * The epp_HostAddressType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp_host.idl for the definition of the epp_HostAddressType enum - */ - protected static String[] host_ip_to_string_array_ = { - "v4", - "v6", - }; /** --- 57,60 ---- *************** *** 145,149 **** public static String hostStatusToString(epp_HostStatusType status_type) { ! return status_to_string_array_[status_type.value()]; } --- 118,122 ---- public static String hostStatusToString(epp_HostStatusType status_type) { ! return status_type.toString(); } *************** *** 154,158 **** public static String hostAddressTypeToString(epp_HostAddressType address_type) { ! return host_ip_to_string_array_[address_type.value()]; } --- 127,131 ---- public static String hostAddressTypeToString(epp_HostAddressType address_type) { ! return address_type.toString(); } Index: EPPHostCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCreate.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPHostCreate.java 14 Mar 2002 22:59:36 -0000 1.8 --- EPPHostCreate.java 15 Mar 2002 15:31:48 -0000 1.9 *************** *** 140,148 **** epp_HostAddress address = (epp_HostAddress)it.next(); Element addr_element = addXMLElement(doc, host_create, "host:addr", address.m_ip); ! if ( address.m_type.value() >= host_ip_to_string_array_.length ) ! { ! throw new epp_XMLException("invalid address type in request"); ! } ! addr_element.setAttribute("ip", host_ip_to_string_array_[address.m_type.value()]); } } --- 140,144 ---- epp_HostAddress address = (epp_HostAddress)it.next(); Element addr_element = addXMLElement(doc, host_create, "host:addr", address.m_ip); ! addr_element.setAttribute("ip", address.m_type.toString()); } } Index: EPPHostUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostUpdate.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPHostUpdate.java 14 Mar 2002 22:59:36 -0000 1.7 --- EPPHostUpdate.java 15 Mar 2002 15:31:48 -0000 1.8 *************** *** 209,217 **** epp_HostAddress address = (epp_HostAddress)it.next(); Element addr_element = addXMLElement(doc, add_remove_element, "host:addr", address.m_ip); ! if ( address.m_type.value() >= host_ip_to_string_array_.length ) ! { ! throw new epp_XMLException("invalid addresss type in request data"); ! } ! addr_element.setAttribute("ip", host_ip_to_string_array_[address.m_type.value()]); } } --- 209,213 ---- epp_HostAddress address = (epp_HostAddress)it.next(); Element addr_element = addXMLElement(doc, add_remove_element, "host:addr", address.m_ip); ! addr_element.setAttribute("ip", address.m_type.toString()); } } *************** *** 230,238 **** epp_HostStatus status = (epp_HostStatus)it.next(); Element status_element = addXMLElement(doc, add_remove_element, "host:status", status.m_value); ! if ( status.m_type.value() >= status_to_string_array_.length ) ! { ! throw new epp_XMLException("invalid status in request data"); ! } ! status_element.setAttribute("s", status_to_string_array_[status.m_type.value()]); if ( status.m_lang != null ) { --- 226,230 ---- epp_HostStatus status = (epp_HostStatus)it.next(); Element status_element = addXMLElement(doc, add_remove_element, "host:status", status.m_value); ! status_element.setAttribute("s", status.m_type.toString()); if ( status.m_lang != null ) { Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** EPPXMLBase.java 14 Mar 2002 23:43:46 -0000 1.25 --- EPPXMLBase.java 15 Mar 2002 15:31:48 -0000 1.26 *************** *** 75,87 **** protected static Hashtable transfer_status_to_type_hash_; - protected static String[] transfer_status_to_string_array_ = { - "clientApproved", - "clientCancelled", - "clientRejected", - "pending", - "serverApproved", - "serverCancelled" - }; - /** * Array to allow for conversion from epp_AuthInfoType to --- 75,78 ---- *************** *** 883,887 **** public static String transferStatusToString(epp_TransferStatusType status_type) { ! return transfer_status_to_string_array_[status_type.value()]; } --- 874,878 ---- public static String transferStatusToString(epp_TransferStatusType status_type) { ! return status_type.toString(); } |
From: Daniel M. <tub...@us...> - 2002-03-15 15:31:10
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/host In directory usw-pr-cvs1:/tmp/cvs-serv14542/host Modified Files: epp_HostAddressType.java epp_HostStatusType.java Log Message: added toString() method to a whole bunch of "type" classes. This will allow us to remove the arrays from the EPP* classes that try to convert types to strings -- they are less hacky here Index: epp_HostAddressType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/host/epp_HostAddressType.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_HostAddressType.java 4 Dec 2001 22:32:09 -0000 1.6 --- epp_HostAddressType.java 15 Mar 2002 15:31:05 -0000 1.7 *************** *** 38,41 **** --- 38,42 ---- private static int __size = 2; private static org.openrtk.idl.epp.host.epp_HostAddressType[] __array = new org.openrtk.idl.epp.host.epp_HostAddressType [__size]; + private static String[] __strings = { "v4", "v6" }; /** *************** *** 95,97 **** --- 96,100 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_HostAddressType Index: epp_HostStatusType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/host/epp_HostStatusType.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_HostStatusType.java 4 Dec 2001 22:32:09 -0000 1.6 --- epp_HostStatusType.java 15 Mar 2002 15:31:05 -0000 1.7 *************** *** 37,40 **** --- 37,50 ---- private static int __size = 8; private static org.openrtk.idl.epp.host.epp_HostStatusType[] __array = new org.openrtk.idl.epp.host.epp_HostStatusType [__size]; + private static String[] __strings = { + "clientDeleteProhibited", + "clientUpdateProhibited", + "linked", + "ok", + "pendingDelete", + "pendingTransfer", + "serverDeleteProhibited", + "serverUpdateProhibited" + }; /** *************** *** 160,162 **** --- 170,174 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_HostStatusType |
From: Daniel M. <tub...@us...> - 2002-03-15 15:31:10
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain In directory usw-pr-cvs1:/tmp/cvs-serv14542/domain Modified Files: epp_DomainContactType.java epp_DomainHostsType.java epp_DomainPeriodUnitType.java epp_DomainStatusType.java Log Message: added toString() method to a whole bunch of "type" classes. This will allow us to remove the arrays from the EPP* classes that try to convert types to strings -- they are less hacky here Index: epp_DomainContactType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainContactType.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainContactType.java 4 Dec 2001 22:31:06 -0000 1.7 --- epp_DomainContactType.java 15 Mar 2002 15:31:05 -0000 1.8 *************** *** 42,45 **** --- 42,50 ---- private static int __size = 3; private static org.openrtk.idl.epp.domain.epp_DomainContactType[] __array = new org.openrtk.idl.epp.domain.epp_DomainContactType [__size]; + private static String[] __strings = { + "admin", + "billing", + "tech" + }; /** *************** *** 111,113 **** --- 116,120 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_DomainContactType Index: epp_DomainHostsType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainHostsType.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_DomainHostsType.java 11 Mar 2002 22:44:45 -0000 1.2 --- epp_DomainHostsType.java 15 Mar 2002 15:31:05 -0000 1.3 *************** *** 42,47 **** private static int __size = 4; private static org.openrtk.idl.epp.domain.epp_DomainHostsType[] __array = new org.openrtk.idl.epp.domain.epp_DomainHostsType [__size]; ! ! private static final String __strings[] = {"ALL", "DEL", "NONE", "SUB"}; /** --- 42,46 ---- private static int __size = 4; private static org.openrtk.idl.epp.domain.epp_DomainHostsType[] __array = new org.openrtk.idl.epp.domain.epp_DomainHostsType [__size]; ! private static final String __strings[] = {"all", "del", "none", "sub"}; /** *************** *** 125,132 **** * @return The string representation of this object instance */ ! public String toString() ! { ! return __strings[__value]; ! } ! } // class epp_DomainHostsType --- 124,127 ---- * @return The string representation of this object instance */ ! public String toString() { return __strings[this.value()]; } } // class epp_DomainHostsType Index: epp_DomainPeriodUnitType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainPeriodUnitType.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_DomainPeriodUnitType.java 4 Dec 2001 22:31:06 -0000 1.6 --- epp_DomainPeriodUnitType.java 15 Mar 2002 15:31:05 -0000 1.7 *************** *** 37,40 **** --- 37,44 ---- private static int __size = 2; private static org.openrtk.idl.epp.domain.epp_DomainPeriodUnitType[] __array = new org.openrtk.idl.epp.domain.epp_DomainPeriodUnitType [__size]; + private static String[] __strings = { + "y", + "m" + }; /** *************** *** 95,97 **** --- 99,103 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_DomainPeriodUnitType Index: epp_DomainStatusType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainStatusType.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_DomainStatusType.java 4 Dec 2001 22:31:06 -0000 1.6 --- epp_DomainStatusType.java 15 Mar 2002 15:31:05 -0000 1.7 *************** *** 37,40 **** --- 37,57 ---- private static int __size = 15; private static org.openrtk.idl.epp.domain.epp_DomainStatusType[] __array = new org.openrtk.idl.epp.domain.epp_DomainStatusType [__size]; + private static String[] __strings = { + "clientDeleteProhibited", + "clientHold", + "clientRenewProhibited", + "clientTransferProhibited", + "clientUpdateProhibited", + "inactive", + "ok", + "pendingDelete", + "pendingTransfer", + "pendingVerification", + "serverDeleteProhibited", + "serverHold", + "serverRenewProhibited", + "serverTransferProhibited", + "serverUpdateProhibited" + }; /** *************** *** 237,239 **** --- 254,258 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_DomainStatusType |
From: Daniel M. <tub...@us...> - 2002-03-15 15:31:09
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact In directory usw-pr-cvs1:/tmp/cvs-serv14542/contact Modified Files: epp_ContactStatusType.java Log Message: added toString() method to a whole bunch of "type" classes. This will allow us to remove the arrays from the EPP* classes that try to convert types to strings -- they are less hacky here Index: epp_ContactStatusType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactStatusType.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_ContactStatusType.java 4 Dec 2001 22:31:46 -0000 1.6 --- epp_ContactStatusType.java 15 Mar 2002 15:31:05 -0000 1.7 *************** *** 37,40 **** --- 37,52 ---- private static int __size = 10; private static org.openrtk.idl.epp.contact.epp_ContactStatusType[] __array = new org.openrtk.idl.epp.contact.epp_ContactStatusType [__size]; + private static String[] __strings = { + "clientDeleteProhibited", + "serverDeleteProhibited", + "clientTransferProhibited", + "serverTransferProhibited", + "clientUpdateProhibited", + "serverUpdateProhibited", + "linked", + "ok", + "pendingDelete", + "pendingTransfer" + }; /** *************** *** 182,184 **** --- 194,198 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_ContactStatusType |
From: Daniel M. <tub...@us...> - 2002-03-15 15:31:09
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv14542 Modified Files: epp_TransferOpType.java Log Message: added toString() method to a whole bunch of "type" classes. This will allow us to remove the arrays from the EPP* classes that try to convert types to strings -- they are less hacky here Index: epp_TransferOpType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_TransferOpType.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_TransferOpType.java 18 Dec 2001 15:59:37 -0000 1.7 --- epp_TransferOpType.java 15 Mar 2002 15:31:05 -0000 1.8 *************** *** 38,41 **** --- 38,48 ---- private static int __size = 5; private static org.openrtk.idl.epp.epp_TransferOpType[] __array = new org.openrtk.idl.epp.epp_TransferOpType [__size]; + private static String[] __strings = { + "approve", + "cancel", + "query", + "reject", + "request" + }; /** *************** *** 128,130 **** --- 135,139 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_TransferOpType |
From: Larry Y. <ly...@us...> - 2002-03-15 15:17:07
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv4735 Modified Files: SessionExample.java Log Message: correct some logic error transforming from exists to avail Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/SessionExample.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** SessionExample.java 15 Mar 2002 14:43:31 -0000 1.19 --- SessionExample.java 15 Mar 2002 15:17:02 -0000 1.20 *************** *** 196,200 **** // // First, the registrar should check if the given domain ! // is available in the registry. If it does, we'll skip the domain // create step. // --- 196,200 ---- // // First, the registrar should check if the given domain ! // is available in the registry. If it does not, we'll skip the domain // create step. // *************** *** 240,244 **** // Contact Check // ! // Make sure the contact_roid we were given is available // in the registry. // --- 240,244 ---- // Contact Check // ! // Make sure the contact_roid we were given is not available // in the registry. // *************** *** 281,285 **** // id 1 will be used as the registrant for the domain. ! if ( contact_id1 == null || ! contact1_avail ) { // *************************** --- 281,285 ---- // id 1 will be used as the registrant for the domain. ! if ( contact_id1 == null || contact1_avail ) { // *************************** *************** *** 339,343 **** // id 2 will be used as the "tech" contact for the domain // we'll be creating later. ! if ( contact_id2 == null || ! contact2_avail ) { // *************************** --- 339,343 ---- // id 2 will be used as the "tech" contact for the domain // we'll be creating later. ! if ( contact_id2 == null || contact2_avail ) { // *************************** |
From: Daniel M. <tub...@us...> - 2002-03-15 14:43:35
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv11927 Modified Files: SessionExample.java Log Message: changed getCheckResultFor() calls to getAvailResultFor() and changed the logic in the sample to follow the inverted meaning of this test Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/SessionExample.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** SessionExample.java 13 Mar 2002 02:02:25 -0000 1.18 --- SessionExample.java 15 Mar 2002 14:43:31 -0000 1.19 *************** *** 196,200 **** // // First, the registrar should check if the given domain ! // exists in the registry. If it does, we'll skip the domain // create step. // --- 196,200 ---- // // First, the registrar should check if the given domain ! // is available in the registry. If it does, we'll skip the domain // create step. // *************** *** 221,228 **** epp_DomainCheckRsp domain_check_response = domain_check.getResponseData(); check_results = domain_check_response.getResults(); ! System.out.println("DomainCheck results: domain ["+domain_name+"] exists? ["+EPPXMLBase.getCheckResultFor(check_results, domain_name)+"]"); ! if ( EPPXMLBase.getCheckResultFor(check_results, domain_name) != null && ! ! EPPXMLBase.getCheckResultFor(check_results, domain_name).booleanValue() ) { --- 221,228 ---- epp_DomainCheckRsp domain_check_response = domain_check.getResponseData(); check_results = domain_check_response.getResults(); ! System.out.println("DomainCheck results: domain ["+domain_name+"] available? ["+EPPXMLBase.getAvailResultFor(check_results, domain_name)+"]"); ! if ( EPPXMLBase.getAvailResultFor(check_results, domain_name) != null && ! EPPXMLBase.getAvailResultFor(check_results, domain_name).booleanValue() ) { *************** *** 232,237 **** // as well. ! boolean contact1_exists = false; ! boolean contact2_exists = false; if ( contact_id1 != null ) --- 232,237 ---- // as well. ! boolean contact1_avail = false; ! boolean contact2_avail = false; if ( contact_id1 != null ) *************** *** 240,244 **** // Contact Check // ! // Make sure the contact_roid we were given exists // in the registry. // --- 240,244 ---- // Contact Check // ! // Make sure the contact_roid we were given is available // in the registry. // *************** *** 267,290 **** epp_ContactCheckRsp contact_check_response = contact_check.getResponseData(); check_results = contact_check_response.getResults(); ! System.out.println("ContactCheck results: contact ["+contact_id1+"] exists? ["+EPPXMLBase.getCheckResultFor(check_results, contact_id1)+"]"); ! System.out.println("ContactCheck results: contact ["+contact_id2+"] exists? ["+EPPXMLBase.getCheckResultFor(check_results, contact_id2)+"]"); ! if ( EPPXMLBase.getCheckResultFor(check_results, contact_id1) != null ) { ! contact1_exists = EPPXMLBase.getCheckResultFor(check_results, contact_id1).booleanValue(); } if ( contact_id2 != null && ! EPPXMLBase.getCheckResultFor(check_results, contact_id2) != null ) { ! contact2_exists = EPPXMLBase.getCheckResultFor(check_results, contact_id2).booleanValue(); } } // id 1 will be used as the registrant for the domain. ! if ( contact_id1 == null || ! contact1_exists ) { // *************************** // Contact Create // ! // The given contact_id1 does not exist in the registry // or there was no contact_id1 specified, so let's // create one now. --- 267,290 ---- epp_ContactCheckRsp contact_check_response = contact_check.getResponseData(); check_results = contact_check_response.getResults(); ! System.out.println("ContactCheck results: contact ["+contact_id1+"] available? ["+EPPXMLBase.getAvailResultFor(check_results, contact_id1)+"]"); ! System.out.println("ContactCheck results: contact ["+contact_id2+"] available? ["+EPPXMLBase.getAvailResultFor(check_results, contact_id2)+"]"); ! if ( EPPXMLBase.getAvailResultFor(check_results, contact_id1) != null ) { ! contact1_avail = EPPXMLBase.getAvailResultFor(check_results, contact_id1).booleanValue(); } if ( contact_id2 != null && ! EPPXMLBase.getAvailResultFor(check_results, contact_id2) != null ) { ! contact2_avail = EPPXMLBase.getAvailResultFor(check_results, contact_id2).booleanValue(); } } // id 1 will be used as the registrant for the domain. ! if ( contact_id1 == null || ! contact1_avail ) { // *************************** // Contact Create // ! // The given contact_id1 is available in the registry // or there was no contact_id1 specified, so let's // create one now. *************** *** 339,348 **** // id 2 will be used as the "tech" contact for the domain // we'll be creating later. ! if ( contact_id2 == null || ! contact2_exists ) { // *************************** // Contact Create // ! // The given contact_id2 does not exist in the registry // or there was no contact_id2 specified, so let's // create one now. --- 339,348 ---- // id 2 will be used as the "tech" contact for the domain // we'll be creating later. ! if ( contact_id2 == null || ! contact2_avail ) { // *************************** // Contact Create // ! // The given contact_id2 is available in the registry // or there was no contact_id2 specified, so let's // create one now. *************** *** 413,417 **** // Domain Create // ! // Domain doesn't exist in the registry, so create it now. // // *************************** --- 413,417 ---- // Domain Create // ! // Domain is available in the registry, so create it now. // // *************************** *************** *** 457,461 **** // date later in a domain info. ! } // end if for domain not existing in registry. --- 457,461 ---- // date later in a domain info. ! } // end if for domain is available in registry. *************** *** 599,612 **** epp_HostCheckRsp host_check_response = host_check.getResponseData(); check_results = host_check_response.getResults(); ! System.out.println("HostCheck results: host [ns1."+domain_name+"] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "ns1."+domain_name)+"]"); ! System.out.println("HostCheck results: host [ns2."+domain_name+"] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "ns2."+domain_name)+"]"); ! if ( EPPXMLBase.getCheckResultFor(check_results, "ns1."+domain_name) == null || ! EPPXMLBase.getCheckResultFor(check_results, "ns1."+domain_name).booleanValue() == false ) { // *************************** // Host Create // ! // Host ns1."domain_name" doesn't exist, so let's create it. // // *************************** --- 599,612 ---- epp_HostCheckRsp host_check_response = host_check.getResponseData(); check_results = host_check_response.getResults(); ! System.out.println("HostCheck results: host [ns1."+domain_name+"] avail? ["+EPPXMLBase.getAvailResultFor(check_results, "ns1."+domain_name)+"]"); ! System.out.println("HostCheck results: host [ns2."+domain_name+"] avail? ["+EPPXMLBase.getAvailResultFor(check_results, "ns2."+domain_name)+"]"); ! if ( EPPXMLBase.getAvailResultFor(check_results, "ns1."+domain_name) == null || ! EPPXMLBase.getAvailResultFor(check_results, "ns1."+domain_name).booleanValue() == true ) { // *************************** // Host Create // ! // Host ns1."domain_name" is available, so let's create it. // // *************************** *************** *** 646,656 **** } ! if ( EPPXMLBase.getCheckResultFor(check_results, "ns2."+domain_name) == null || ! EPPXMLBase.getCheckResultFor(check_results, "ns2."+domain_name).booleanValue() == false ) { // *************************** // Host Create // ! // Host ns2."domain_name" doesn't exist, so let's create it. // // *************************** --- 646,656 ---- } ! if ( EPPXMLBase.getAvailResultFor(check_results, "ns2."+domain_name) == null || ! EPPXMLBase.getAvailResultFor(check_results, "ns2."+domain_name).booleanValue() == true ) { // *************************** // Host Create // ! // Host ns2."domain_name" is available, so let's create it. // // *************************** |
From: Daniel M. <tub...@us...> - 2002-03-15 14:32:44
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv7030 Modified Files: DomainExample.java Log Message: changed calls to getCheckResultFor() to getAvailResultFor() changed the method of contact id generation because the system time was resulting in a contact id that was too long (over 16 chars) Index: DomainExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/DomainExample.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** DomainExample.java 13 Mar 2002 02:02:25 -0000 1.11 --- DomainExample.java 15 Mar 2002 14:32:41 -0000 1.12 *************** *** 233,239 **** // epp_CheckResult array. epp_CheckResult[] check_results = domain_check_response.m_results; ! System.out.println("DomainCheck results: domain ["+epp_client_id+"1.info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, epp_client_id+"1.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_client_id+"2.info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, epp_client_id+"2.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_domain_name+"] exists? ["+EPPXMLBase.getCheckResultFor(check_results, epp_domain_name)+"]"); } catch ( epp_XMLException xcp ) --- 233,239 ---- // epp_CheckResult array. epp_CheckResult[] check_results = domain_check_response.m_results; ! System.out.println("DomainCheck results: domain ["+epp_client_id+"1.info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, epp_client_id+"1.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_client_id+"2.info] exists? ["+EPPXMLBase.getAvailResultFor(check_results, epp_client_id+"2.info")+"]"); ! System.out.println("DomainCheck results: domain ["+epp_domain_name+"] exists? ["+EPPXMLBase.getAvailResultFor(check_results, epp_domain_name)+"]"); } catch ( epp_XMLException xcp ) *************** *** 288,296 **** contact_create_request.m_cmd = command_data; ! // This example uses the client trid to generate a unique contact id ! // so the create doesn't fail throw the whole example out the window ! // (we're dividing the current time by 1000 because without it ! // the contact id is too long) ! contact_create_request.m_id = epp_client_id+(System.currentTimeMillis()/1000); epp_ContactNameAddress name_address = new epp_ContactNameAddress(); --- 288,301 ---- contact_create_request.m_cmd = command_data; ! // This example uses the client trid to generate a unique contact id (as best we can) ! // so the create doesn't fail and throw the whole example out the window ! Random rng = new Random(); ! String randnum = "" + rng.nextInt() % 999999; ! while ( (epp_client_id + randnum).length() > 16 ) { ! // The contact ID length is a max of 16 characters ! // let's chop the front off of random number until it fits ! randnum = randnum.substring(0, randnum.length() - 1); ! } ! contact_create_request.m_id = epp_client_id + randnum; epp_ContactNameAddress name_address = new epp_ContactNameAddress(); |
From: Daniel M. <tub...@us...> - 2002-03-15 14:31:05
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv6786 Modified Files: epp_StatusCommandType.java epp_TransferStatusType.java Log Message: added toString() method to transfer status and status command types -- this will eventually replace the arrays we have defined in EPPXMLBase and EPPStatus Index: epp_StatusCommandType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusCommandType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_StatusCommandType.java 13 Mar 2002 18:33:22 -0000 1.1 --- epp_StatusCommandType.java 15 Mar 2002 14:31:01 -0000 1.2 *************** *** 37,40 **** --- 37,41 ---- private static int __size = 5; private static org.openrtk.idl.epp.epp_StatusCommandType[] __array = new org.openrtk.idl.epp.epp_StatusCommandType [__size]; + private static String[] __strings = { "create", "delete", "renew", "transfer", "update" }; public static final int _CREATE = 0; *************** *** 67,69 **** --- 68,72 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_StatusCommandType Index: epp_TransferStatusType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_TransferStatusType.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_TransferStatusType.java 4 Dec 2001 22:32:50 -0000 1.6 --- epp_TransferStatusType.java 15 Mar 2002 14:31:01 -0000 1.7 *************** *** 39,42 **** --- 39,43 ---- private static int __size = 6; private static org.openrtk.idl.epp.epp_TransferStatusType[] __array = new org.openrtk.idl.epp.epp_TransferStatusType [__size]; + private static String[] __strings = { "clientApproved", "clientCancelled", "clientRejected", "pending", "serverApproved", "serverCancelled" }; /** *************** *** 134,136 **** --- 135,139 ---- __array[__value] = this; } + + public String toString() { return __strings[this.value()]; } } // class epp_TransferStatusType |
From: Larry Y. <ly...@us...> - 2002-03-15 14:13:18
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv1735 Modified Files: EPPDomainInfo.java Log Message: moved attributes hosts from <domain:info> to <domain:name> Index: EPPDomainInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainInfo.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPDomainInfo.java 14 Mar 2002 22:57:04 -0000 1.7 --- EPPDomainInfo.java 15 Mar 2002 14:13:15 -0000 1.8 *************** *** 140,146 **** setCommonAttributes(domain_info); ! domain_info.setAttribute("hosts", hosts_type_to_string_array_[action_request_.m_hosts_type.value()]); ! ! addXMLElement(doc, domain_info, "domain:name", action_request_.m_name); info.appendChild( domain_info ); --- 140,145 ---- setCommonAttributes(domain_info); ! Element domain_name = addXMLElement(doc, domain_info, "domain:name", action_request_.m_name); ! domain_name.setAttribute("hosts", hosts_type_to_string_array_[action_request_.m_hosts_type.value()]); info.appendChild( domain_info ); |
From: Daniel M. <tub...@us...> - 2002-03-15 02:33:59
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv31507 Modified Files: EPPClient.java Log Message: in the constructor, set the value of sendver_ to the value found in the properties file Index: EPPClient.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/EPPClient.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** EPPClient.java 13 Mar 2002 16:08:48 -0000 1.16 --- EPPClient.java 15 Mar 2002 02:33:56 -0000 1.17 *************** *** 90,94 **** // Is RTK version number included as extension in login ! private boolean sendver_ = true; /** --- 90,94 ---- // Is RTK version number included as extension in login ! private boolean sendver_; /** *************** *** 97,102 **** --- 97,113 ---- public EPPClient() { + String method_name = "EPPClient()"; version_ = VERSION; lang_ = DEFAULT_LANG; + try + { + String sendver_str = RTKBase.getRTKProperties().getProperty("rtk.login.sendversion", "false"); + sendver_ = (Boolean.valueOf(sendver_str)).booleanValue(); + } + catch (Exception xcp) + { + debug(DEBUG_LEVEL_ONE,method_name,"Configuration file not found or file read error! Default sendver value will be used."); + sendver_ = false; + } } |