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-08-14 20:04:22
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv26456/tucows/oxrs/epp/rtk Modified Files: EPPClient.java Log Message: first commit for core RTK class changes for EPP 0604 Index: EPPClient.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/EPPClient.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** EPPClient.java 15 Mar 2002 02:33:56 -0000 1.17 --- EPPClient.java 14 Aug 2002 20:03:49 -0000 1.18 *************** *** 844,848 **** creds.setOptions( new epp_Options(version_, lang_) ); epp_Command command_data = new epp_Command(creds, null, client_tr_id); ! if( sendver_ ) command_data.setExtension( new com.tucows.oxrs.epp.rtk.xml.extension.RTKVersion() ); if ( epp_services_ != null ) --- 844,852 ---- creds.setOptions( new epp_Options(version_, lang_) ); epp_Command command_data = new epp_Command(creds, null, client_tr_id); ! if( sendver_ ) { ! epp_Extension exts[] = new epp_Extension[1]; ! exts[0] = new com.tucows.oxrs.epp.rtk.xml.extension.RTKVersion(); ! command_data.setExtensions( exts ); ! } if ( epp_services_ != null ) |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv26456/tucows/oxrs/epp/rtk/xml Modified Files: EPPContactCheck.java EPPContactCreate.java EPPContactDelete.java EPPContactInfo.java EPPContactTransfer.java EPPContactUpdate.java EPPDomainCheck.java EPPDomainCreate.java EPPDomainDelete.java EPPDomainInfo.java EPPDomainRenew.java EPPDomainTransfer.java EPPDomainUpdate.java EPPGreeting.java EPPHostCheck.java EPPHostCreate.java EPPHostDelete.java EPPHostInfo.java EPPHostUpdate.java EPPLogin.java EPPLogout.java EPPPoll.java EPPStatus.java EPPXMLBase.java Log Message: first commit for core RTK class changes for EPP 0604 Index: EPPContactCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCheck.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPContactCheck.java 14 Mar 2002 22:59:36 -0000 1.6 --- EPPContactCheck.java 14 Aug 2002 20:03:49 -0000 1.7 *************** *** 142,146 **** command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPContactCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCreate.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPContactCreate.java 15 Mar 2002 02:33:01 -0000 1.9 --- EPPContactCreate.java 14 Aug 2002 20:03:50 -0000 1.10 *************** *** 176,180 **** command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 176,180 ---- command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPContactDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactDelete.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPContactDelete.java 14 Mar 2002 22:59:36 -0000 1.5 --- EPPContactDelete.java 14 Aug 2002 20:03:50 -0000 1.6 *************** *** 138,142 **** command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPContactInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactInfo.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPContactInfo.java 14 Mar 2002 22:59:36 -0000 1.9 --- EPPContactInfo.java 14 Aug 2002 20:03:50 -0000 1.10 *************** *** 136,140 **** command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 136,140 ---- command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPContactTransfer.java 15 Mar 2002 15:31:48 -0000 1.11 --- EPPContactTransfer.java 14 Aug 2002 20:03:50 -0000 1.12 *************** *** 160,164 **** command.appendChild( transfer ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 160,164 ---- command.appendChild( transfer ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPContactUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactUpdate.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPContactUpdate.java 15 Mar 2002 15:31:48 -0000 1.9 --- EPPContactUpdate.java 14 Aug 2002 20:03:50 -0000 1.10 *************** *** 161,165 **** command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 161,165 ---- command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPDomainCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCheck.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPDomainCheck.java 14 Mar 2002 22:57:04 -0000 1.6 --- EPPDomainCheck.java 14 Aug 2002 20:03:50 -0000 1.7 *************** *** 142,146 **** command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPDomainCreate.java 15 Mar 2002 15:31:48 -0000 1.10 --- EPPDomainCreate.java 14 Aug 2002 20:03:50 -0000 1.11 *************** *** 178,182 **** command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 178,182 ---- command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPDomainDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainDelete.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPDomainDelete.java 14 Mar 2002 22:57:04 -0000 1.5 --- EPPDomainDelete.java 14 Aug 2002 20:03:50 -0000 1.6 *************** *** 138,142 **** command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPDomainInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainInfo.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPDomainInfo.java 15 Mar 2002 15:31:48 -0000 1.9 --- EPPDomainInfo.java 14 Aug 2002 20:03:50 -0000 1.10 *************** *** 143,147 **** command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 143,147 ---- command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPDomainRenew.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainRenew.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPDomainRenew.java 15 Mar 2002 19:11:13 -0000 1.9 --- EPPDomainRenew.java 14 Aug 2002 20:03:50 -0000 1.10 *************** *** 144,148 **** command.appendChild( renew ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 144,148 ---- command.appendChild( renew ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPDomainTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainTransfer.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPDomainTransfer.java 15 Mar 2002 15:31:48 -0000 1.10 --- EPPDomainTransfer.java 14 Aug 2002 20:03:50 -0000 1.11 *************** *** 166,170 **** command.appendChild( transfer ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 166,170 ---- command.appendChild( transfer ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPDomainUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainUpdate.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPDomainUpdate.java 15 Mar 2002 15:31:48 -0000 1.8 --- EPPDomainUpdate.java 14 Aug 2002 20:03:50 -0000 1.9 *************** *** 170,174 **** command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 170,174 ---- command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPGreeting.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPGreeting.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPGreeting.java 19 Mar 2002 15:47:04 -0000 1.7 --- EPPGreeting.java 14 Aug 2002 20:03:50 -0000 1.8 *************** *** 58,61 **** --- 58,62 ---- private static Hashtable dcp_recipient_string_to_type_hash_ = null; private static Hashtable dcp_retention_string_to_type_hash_ = null; + private static Hashtable dcp_expiry_string_to_type_hash_ = null; static *************** *** 63,77 **** dcp_access_string_to_type_hash_ = new Hashtable(); dcp_access_string_to_type_hash_.put("all", epp_dcpAccessType.ALL); ! dcp_access_string_to_type_hash_.put("noaccess", epp_dcpAccessType.NO_ACCESS); dcp_access_string_to_type_hash_.put("null", epp_dcpAccessType.NULL_ACCESS); ! dcp_access_string_to_type_hash_.put("social", epp_dcpAccessType.SOCIAL); ! dcp_access_string_to_type_hash_.put("technical", epp_dcpAccessType.TECHNICAL); dcp_purpose_string_to_type_hash_ = new Hashtable(); dcp_purpose_string_to_type_hash_.put("contact", epp_dcpPurposeType.CONTACT); - dcp_purpose_string_to_type_hash_.put("dnreg", epp_dcpPurposeType.DN_REG); - dcp_purpose_string_to_type_hash_.put("ipreg", epp_dcpPurposeType.IP_REG); dcp_purpose_string_to_type_hash_.put("other", epp_dcpPurposeType.OTHER_PURPOSE); ! dcp_purpose_string_to_type_hash_.put("tmreg", epp_dcpPurposeType.TM_REG); dcp_recipient_string_to_type_hash_ = new Hashtable(); --- 64,78 ---- dcp_access_string_to_type_hash_ = new Hashtable(); dcp_access_string_to_type_hash_.put("all", epp_dcpAccessType.ALL); ! dcp_access_string_to_type_hash_.put("none", epp_dcpAccessType.NONE_ACCESS); dcp_access_string_to_type_hash_.put("null", epp_dcpAccessType.NULL_ACCESS); ! dcp_access_string_to_type_hash_.put("other", epp_dcpAccessType.OTHER); ! dcp_access_string_to_type_hash_.put("personal", epp_dcpAccessType.PERSONAL); ! dcp_access_string_to_type_hash_.put("personalAndOther", epp_dcpAccessType.PERSONAL); dcp_purpose_string_to_type_hash_ = new Hashtable(); + dcp_purpose_string_to_type_hash_.put("admin", epp_dcpPurposeType.ADMIN); dcp_purpose_string_to_type_hash_.put("contact", epp_dcpPurposeType.CONTACT); dcp_purpose_string_to_type_hash_.put("other", epp_dcpPurposeType.OTHER_PURPOSE); ! dcp_purpose_string_to_type_hash_.put("prov", epp_dcpPurposeType.PROV); dcp_recipient_string_to_type_hash_ = new Hashtable(); *************** *** 84,91 **** dcp_retention_string_to_type_hash_ = new Hashtable(); dcp_retention_string_to_type_hash_.put("business", epp_dcpRetentionType.BUSINESS); - dcp_retention_string_to_type_hash_.put("functional", epp_dcpRetentionType.FUNCTIONAL); dcp_retention_string_to_type_hash_.put("indefinite", epp_dcpRetentionType.INDEFINITE); dcp_retention_string_to_type_hash_.put("legal", epp_dcpRetentionType.LEGAL); dcp_retention_string_to_type_hash_.put("none", epp_dcpRetentionType.NONE); } --- 85,96 ---- dcp_retention_string_to_type_hash_ = new Hashtable(); dcp_retention_string_to_type_hash_.put("business", epp_dcpRetentionType.BUSINESS); dcp_retention_string_to_type_hash_.put("indefinite", epp_dcpRetentionType.INDEFINITE); dcp_retention_string_to_type_hash_.put("legal", epp_dcpRetentionType.LEGAL); dcp_retention_string_to_type_hash_.put("none", epp_dcpRetentionType.NONE); + dcp_retention_string_to_type_hash_.put("stated", epp_dcpRetentionType.STATED); + + dcp_expiry_string_to_type_hash_ = new Hashtable(); + dcp_expiry_string_to_type_hash_.put("absolute", epp_dcpExpiryType.ABSOLUTE); + dcp_expiry_string_to_type_hash_.put("relative", epp_dcpExpiryType.RELATIVE); } *************** *** 283,289 **** { String type = recipients_nodes.item(i).getNodeName().toLowerCase(); ! recipients_list.add(dcp_recipient_string_to_type_hash_.get(type)); } ! dcp_statement.m_recipients = (epp_dcpRecipientType[])convertListToArray(epp_dcpRecipientType.class, recipients_list); } --- 288,295 ---- { String type = recipients_nodes.item(i).getNodeName().toLowerCase(); ! epp_dcpRecipient recip = new epp_dcpRecipient((epp_dcpRecipientType)dcp_recipient_string_to_type_hash_.get(type), null); ! recipients_list.add(recip); } ! dcp_statement.m_recipients = (epp_dcpRecipient[])convertListToArray(epp_dcpRecipientType.class, recipients_list); } Index: EPPHostCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCheck.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPHostCheck.java 14 Mar 2002 22:59:36 -0000 1.6 --- EPPHostCheck.java 14 Aug 2002 20:03:51 -0000 1.7 *************** *** 142,146 **** command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPHostCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCreate.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPHostCreate.java 15 Mar 2002 15:31:48 -0000 1.9 --- EPPHostCreate.java 14 Aug 2002 20:03:51 -0000 1.10 *************** *** 148,152 **** command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 148,152 ---- command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPHostDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostDelete.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPHostDelete.java 14 Mar 2002 22:59:36 -0000 1.5 --- EPPHostDelete.java 14 Aug 2002 20:03:51 -0000 1.6 *************** *** 138,142 **** command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPHostInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostInfo.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPHostInfo.java 14 Mar 2002 22:59:36 -0000 1.8 --- EPPHostInfo.java 14 Aug 2002 20:03:51 -0000 1.9 *************** *** 136,140 **** command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 136,140 ---- command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPHostUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostUpdate.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPHostUpdate.java 15 Mar 2002 15:31:48 -0000 1.8 --- EPPHostUpdate.java 14 Aug 2002 20:03:51 -0000 1.9 *************** *** 161,165 **** command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 161,165 ---- command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPLogin.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogin.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPLogin.java 14 Mar 2002 23:23:14 -0000 1.8 --- EPPLogin.java 14 Aug 2002 20:03:51 -0000 1.9 *************** *** 148,152 **** command.appendChild( login ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 148,152 ---- command.appendChild( login ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPLogout.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogout.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPLogout.java 14 Mar 2002 23:23:14 -0000 1.9 --- EPPLogout.java 14 Aug 2002 20:03:51 -0000 1.10 *************** *** 108,112 **** if ( action_request_ != null ) { ! prepareExtensionElement( doc, command, action_request_.m_extension ); } --- 108,112 ---- if ( action_request_ != null ) { ! prepareExtensionElement( doc, command, action_request_.m_extensions ); } Index: EPPPoll.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPPoll.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPPoll.java 14 Mar 2002 23:23:14 -0000 1.7 --- EPPPoll.java 14 Aug 2002 20:03:51 -0000 1.8 *************** *** 126,130 **** command.appendChild( poll ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 126,130 ---- command.appendChild( poll ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != null ) Index: EPPStatus.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPStatus.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPStatus.java 15 Mar 2002 20:14:29 -0000 1.3 --- EPPStatus.java 14 Aug 2002 20:03:51 -0000 1.4 *************** *** 122,126 **** command.appendChild( status ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) --- 122,126 ---- command.appendChild( status ); ! prepareExtensionElement( doc, command, command_data.m_extensions ); if ( command_data.m_client_trid != 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.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** EPPXMLBase.java 15 Mar 2002 15:49:52 -0000 1.27 --- EPPXMLBase.java 14 Aug 2002 20:03:51 -0000 1.28 *************** *** 176,180 **** Node msg_node = an_element.getElementsByTagName("msg").item(0); result.m_lang = ((Element)msg_node).getAttribute("lang"); - result.m_id = ((Element)msg_node).getAttribute( "id" ); result.m_msg = msg_node.getFirstChild().getNodeValue(); --- 176,179 ---- *************** *** 188,194 **** { Node value_node = value_nodes.item(count2); ! values.add(value_node.getFirstChild().getNodeValue()); } ! result.m_values = convertListToStringArray(values); } --- 187,198 ---- { Node value_node = value_nodes.item(count2); ! epp_ResultValue value = new epp_ResultValue( null, ! value_node.getFirstChild().getNodeValue(), ! null, ! value_node.getFirstChild().getNodeValue() ); ! // XXX have to parse stuff here if we can. ! values.add(value); } ! result.m_values = (epp_ResultValue[])convertListToArray((new epp_ResultValue()).getClass(), values); } *************** *** 231,235 **** if ( extension_nodes.getLength() == 0 ) { ! generic_response.m_extension_string = null; } else --- 235,239 ---- if ( extension_nodes.getLength() == 0 ) { ! generic_response.m_extension_strings = null; } else *************** *** 252,256 **** RE regexp = new RE("<extension>(.*)</extension>$"); regexp.match(extension_string); ! generic_response.m_extension_string = regexp.getParen(1); } catch( IOException ioe ) --- 256,261 ---- RE regexp = new RE("<extension>(.*)</extension>$"); regexp.match(extension_string); ! // XXX fix me!!!! ! //generic_response.m_extension_string = regexp.getParen(1); } catch( IOException ioe ) *************** *** 296,299 **** --- 301,305 ---- Element msg_queue_element = (Element)msg_queue_nodes.item(0); msg_queue.m_count = Integer.parseInt(msg_queue_element.getAttribute("count")); + msg_queue.m_id = msg_queue_element.getAttribute("id"); NodeList queue_date_nodes = msg_queue_element.getElementsByTagName("qDate"); *************** *** 768,805 **** protected void prepareExtensionElement( Document doc, Element command, ! epp_Extension extension ) throws epp_XMLException { String method_name = "prepareExtensionElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); ! if ( extension != null ) { ! String extension_string = extension.toXML(); ! if ( extension_string != null && ! extension_string.length() != 0 ) { ! try { ! Element extension_element = doc.createElement("extension"); ! Node extension_node = getExtensionNode(extension_string); ! if ( extension_node != null ) { ! extension_node = doc.importNode( getExtensionNode(extension_string), true ); ! extension_element.appendChild( extension_node ); } ! else { ! // if the extension node was null, then it wasn't valid XML or ! // it is just a string (eg "hellothere") and this ! // can be included as a raw string in the extension tag. ! extension_element.appendChild( doc.createTextNode(extension_string) ); } - - command.appendChild( extension_element ); - } - catch ( Exception xcp ) - { - debug(DEBUG_LEVEL_ONE,method_name,xcp); - throw new epp_XMLException( "error in extension XML ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]" ); } } --- 774,816 ---- protected void prepareExtensionElement( Document doc, Element command, ! epp_Extension[] extensions ) throws epp_XMLException { String method_name = "prepareExtensionElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); ! if ( extensions != null ) { ! for ( int count = 0; count < extensions.length; count++ ) { ! epp_Extension extension = extensions[count]; ! ! String extension_string = extension.toXML(); ! if ( extension_string != null && ! extension_string.length() != 0 ) { ! try { ! Element extension_element = doc.createElement("extension"); ! Node extension_node = getExtensionNode(extension_string); ! if ( extension_node != null ) ! { ! extension_node = doc.importNode( getExtensionNode(extension_string), true ); ! extension_element.appendChild( extension_node ); ! } ! else ! { ! // if the extension node was null, then it wasn't valid XML or ! // it is just a string (eg "hellothere") and this ! // can be included as a raw string in the extension tag. ! extension_element.appendChild( doc.createTextNode(extension_string) ); ! } ! ! command.appendChild( extension_element ); } ! catch ( Exception xcp ) { ! debug(DEBUG_LEVEL_ONE,method_name,xcp); ! throw new epp_XMLException( "error in extension XML ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]" ); } } } |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv26274/openrtk/idl/epp Modified Files: epp_Command.java epp_DataCollectionPolicy.java epp_Exception.java epp_LogoutReq.java epp_MessageQueue.java epp_Response.java epp_Result.java epp_dcpAccessType.java epp_dcpPurposeType.java epp_dcpRetentionType.java epp_dcpStatement.java Added Files: epp_ResultValue.java epp_dcpExpiry.java epp_dcpExpiryType.java epp_dcpRecipient.java Log Message: first commit of Java IDL classes for EPP 0604 --- NEW FILE: epp_ResultValue.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * org/openrtk/idl/epp/epp_ResultValue.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Wednesday, August 14, 2002 12:14:44 o'clock PM EDT */ public class epp_ResultValue implements org.omg.CORBA.portable.IDLEntity { // Can be null/empty if the XML is not parsable. public String m_namespace = null; // element if the XML is unparsable. public String m_xml_string = null; // Can be null/empty if the XML is not parsable. public String m_element_name = null; // element if the XML is unparsable. public String m_element_value = null; public epp_ResultValue () { } // ctor public epp_ResultValue (String _m_namespace, String _m_xml_string, String _m_element_name, String _m_element_value) { m_namespace = _m_namespace; m_xml_string = _m_xml_string; m_element_name = _m_element_name; m_element_value = _m_element_value; } // ctor public void setNamespace(String value) { m_namespace = value; } public String getNamespace() { return m_namespace; } public void setXmlString(String value) { m_xml_string = value; } public String getXmlString() { return m_xml_string; } public void setElementName(String value) { m_element_name = value; } public String getElementName() { return m_element_name; } public void setElementValue(String value) { m_element_value = value; } public String getElementValue() { return m_element_value; } public String toString() { return this.getClass().getName() + ": { m_namespace ["+m_namespace+"] m_xml_string ["+m_xml_string+"] m_element_name ["+m_element_name+"] m_element_value ["+m_element_value+"] }"; } } // class epp_ResultValue --- NEW FILE: epp_dcpExpiry.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class used to specifiy the expiry date of the data collection policy.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpExpiry.java,v 1.1 2002/08/14 20:02:55 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/08/14 20:02:55 $<br> * @see org.openrtk.idl.epp.epp_DataCollectionPolicy * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_dcpExpiry implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp.epp_dcpExpiryType m_type = null; public String m_value = null; public epp_dcpExpiry () { } // ctor public epp_dcpExpiry (org.openrtk.idl.epp.epp_dcpExpiryType _m_type, String _m_value) { m_type = _m_type; m_value = _m_value; } // ctor public void setType(org.openrtk.idl.epp.epp_dcpExpiryType value) { m_type = value; } public org.openrtk.idl.epp.epp_dcpExpiryType getType() { return m_type; } public void setValue(String value) { m_value = value; } public String getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_value ["+m_value+"] }"; } } // class epp_dcpExpiry --- NEW FILE: epp_dcpExpiryType.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class defining constant instances of data collection policy expiry types which describes * date type for the expiry of the data collection policy.</p> * Two access types are defined: ABSOLUTE, and RELATIVE.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpExpiryType.java,v 1.1 2002/08/14 20:02:55 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/08/14 20:02:55 $<br> * @see org.openrtk.idl.epp.epp_DataCollectionPolicy * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_dcpExpiryType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 2; private static org.openrtk.idl.epp.epp_dcpExpiryType[] __array = new org.openrtk.idl.epp.epp_dcpExpiryType [__size]; private static String[] __strings = { "absolute","relative" }; /** * Integer value representing the ABSOLUTE access type. * @see #ABSOLUTE */ public static final int _ABSOLUTE = 0; /** * Instance of epp_dcpExpiryType representing the ABSOLUTE expiry type. */ public static final org.openrtk.idl.epp.epp_dcpExpiryType ABSOLUTE = new org.openrtk.idl.epp.epp_dcpExpiryType(_ABSOLUTE); /** * Integer value representing the RELATIVE access type. * @see #RELATIVE */ public static final int _RELATIVE = 1; /** * Instance of epp_dcpExpiryType representing the RELATIVE expiry type. */ public static final org.openrtk.idl.epp.epp_dcpExpiryType RELATIVE = new org.openrtk.idl.epp.epp_dcpExpiryType(_RELATIVE); /** * Accessor method for the internal integer representing the expiry type. * @return The integer value of this expiry type */ public int value () { return __value; } /** * Transform an integer into a epp_dcpExpiryType constant. * Given the integer representation of the expiry type, returns * one of the expiry type constants. * @param value The integer value for the desired expiry type */ public static org.openrtk.idl.epp.epp_dcpExpiryType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } /** * For internal use only. * Initializes the internal access type array. * @param value The integer value for the desired expiry type */ protected epp_dcpExpiryType (int value) { __value = value; __array[__value] = this; } public String toString() { return __strings[this.value()]; } } // class epp_dcpExpiryType --- NEW FILE: epp_dcpRecipient.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Wrapper class for the DCP Recipient.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpRecipient.java,v 1.1 2002/08/14 20:02:55 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/08/14 20:02:55 $<br> * @see org.openrtk.idl.epp.epp_dcpStatement */ public class epp_dcpRecipient implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp.epp_dcpRecipientType m_type = null; public String m_rec_desc = null; public epp_dcpRecipient () { } // ctor public epp_dcpRecipient (org.openrtk.idl.epp.epp_dcpRecipientType _m_type, String _m_rec_desc) { m_type = _m_type; m_rec_desc = _m_rec_desc; } // ctor public void setType(org.openrtk.idl.epp.epp_dcpRecipientType value) { m_type = value; } public org.openrtk.idl.epp.epp_dcpRecipientType getType() { return m_type; } public void setRecDesc(String value) { m_rec_desc = value; } public String getRecDesc() { return m_rec_desc; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_rec_desc ["+m_rec_desc+"] }"; } } // class epp_dcpRecipient Index: epp_Command.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Command.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_Command.java 13 Mar 2002 02:40:48 -0000 1.8 --- epp_Command.java 14 Aug 2002 20:02:54 -0000 1.9 *************** *** 43,50 **** /** * The optional command extensions. ! * @see #setExtension(org.openrtk.idl.epp.epp_Extension) ! * @see #getExtension() */ ! public org.openrtk.idl.epp.epp_Extension m_extension = null; /** * The client transaction identifier assigned by the client to the command. --- 43,50 ---- /** * The optional command extensions. ! * @see #setExtensions(org.openrtk.idl.epp.epp_Extension) ! * @see #getExtensions() */ ! public org.openrtk.idl.epp.epp_Extension m_extensions[] = null; /** * The client transaction identifier assigned by the client to the command. *************** *** 64,74 **** * The constructor with initializing variables. * @param _m_creds The element that provides client identity information ! * @param _m_extension The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ ! public epp_Command (org.openrtk.idl.epp.epp_Credentials _m_creds, org.openrtk.idl.epp.epp_Extension _m_extension, String _m_client_trid) { m_creds = _m_creds; ! m_extension = _m_extension; m_client_trid = _m_client_trid; } // ctor --- 64,74 ---- * The constructor with initializing variables. * @param _m_creds The element that provides client identity information ! * @param _m_extensions The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ ! public epp_Command (org.openrtk.idl.epp.epp_Credentials _m_creds, org.openrtk.idl.epp.epp_Extension[] _m_extensions, String _m_client_trid) { m_creds = _m_creds; ! m_extensions = _m_extensions; m_client_trid = _m_client_trid; } // ctor *************** *** 90,102 **** * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_extension */ ! public void setExtension(org.openrtk.idl.epp.epp_Extension value) { m_extension = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_extension */ ! public org.openrtk.idl.epp.epp_Extension getExtension() { return m_extension; } /** --- 90,120 ---- * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_extensions ! * @deprecated */ ! public void setExtension(org.openrtk.idl.epp.epp_Extension value) { ! m_extensions = new org.openrtk.idl.epp.epp_Extension[1]; ! m_extensions[0] = value; ! } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_extensions ! * @deprecated */ ! public org.openrtk.idl.epp.epp_Extension getExtension() { return m_extensions == null ? null : m_extensions[0]; } ! ! /** ! * Accessor method for the optional command extensions ! * @param value The optional command extensions ! * @see #m_extensions ! */ ! public void setExtensions(org.openrtk.idl.epp.epp_Extension[] value) { m_extensions = value; } ! /** ! * Accessor method for the optional command extensions ! * @return The optional command extensions ! * @see #m_extensions ! */ ! public org.openrtk.idl.epp.epp_Extension[] getExtensions() { return m_extensions; } /** *************** *** 133,137 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_creds ["+m_creds+"] m_extension ["+m_extension+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_Command --- 151,155 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_creds ["+m_creds+"] m_extensions ["+(m_extensions != null ? java.util.Arrays.asList(m_extensions) : null)+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_Command Index: epp_DataCollectionPolicy.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_DataCollectionPolicy.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_DataCollectionPolicy.java 12 Mar 2002 22:00:26 -0000 1.1 --- epp_DataCollectionPolicy.java 14 Aug 2002 20:02:55 -0000 1.2 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,6 ---- ** ** EPP RTK Java ! ** Copyright (C) 2002, Tucows, Inc. ** ** *************** *** 46,49 **** --- 46,51 ---- public org.openrtk.idl.epp.epp_dcpStatement m_statements[] = null; + public org.openrtk.idl.epp.epp_dcpExpiry m_expiry = null; + /** * Empty constructor *************** *** 58,65 **** * @param _m_statements The array of statement elements */ ! public epp_DataCollectionPolicy (org.openrtk.idl.epp.epp_dcpAccessType _m_access, org.openrtk.idl.epp.epp_dcpStatement[] _m_statements) { m_access = _m_access; m_statements = _m_statements; } // ctor --- 60,68 ---- * @param _m_statements The array of statement elements */ ! public epp_DataCollectionPolicy (org.openrtk.idl.epp.epp_dcpAccessType _m_access, org.openrtk.idl.epp.epp_dcpStatement[] _m_statements, org.openrtk.idl.epp.epp_dcpExpiry _m_expiry) { m_access = _m_access; m_statements = _m_statements; + m_expiry = _m_expiry; } // ctor *************** *** 90,93 **** --- 93,99 ---- public org.openrtk.idl.epp.epp_dcpStatement[] getStatements() { return m_statements; } + public void setExpiry(org.openrtk.idl.epp.epp_dcpExpiry value) { m_expiry = value; } + public org.openrtk.idl.epp.epp_dcpExpiry getExpiry() { return m_expiry; } + /** * Converts this class into a string. *************** *** 95,99 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_access ["+m_access+"] m_statements ["+(m_statements != null ? java.util.Arrays.asList(m_statements) : null)+"] }"; } } // class epp_DataCollectionPolicy --- 101,105 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_access ["+m_access+"] m_statements ["+(m_statements != null ? java.util.Arrays.asList(m_statements) : null)+"] m_expiry ["+m_expiry+"] }"; } } // class epp_DataCollectionPolicy Index: epp_Exception.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Exception.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Exception.java 4 Dec 2001 22:32:49 -0000 1.7 --- epp_Exception.java 14 Aug 2002 20:02:55 -0000 1.8 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,6 ---- ** ** EPP RTK Java ! ** Copyright (C) 2002, Tucows, Inc. ** ** *************** *** 44,47 **** --- 44,51 ---- */ public org.openrtk.idl.epp.epp_Result m_details[] = null; + public org.openrtk.idl.epp.epp_TransID m_trans_id = null; + + // Multiple extensions allows in EPP + public String m_ext_strings[] = null; /** *************** *** 62,65 **** --- 66,80 ---- /** + * The constructor with initializing variables. + * @param _m_details The array of error details + */ + public epp_Exception (org.openrtk.idl.epp.epp_Result[] _m_details, org.openrtk.idl.epp.epp_TransID _m_trans_id, String[] _m_ext_strings) + { + m_details = _m_details; + m_trans_id = _m_trans_id; + m_ext_strings = _m_ext_strings; + } // ctor + + /** * Accessor method for the array of error details * @param value The array of error details *************** *** 74,77 **** --- 89,98 ---- public org.openrtk.idl.epp.epp_Result[] getDetails() { return m_details; } + public void setTransId(org.openrtk.idl.epp.epp_TransID value) { m_trans_id = value; } + public org.openrtk.idl.epp.epp_TransID getTransId() { return m_trans_id; } + + public void setExtStrings(String[] value) { m_ext_strings = value; } + public String[] getExtStrings() { return m_ext_strings; } + /** * Converts this class into a string. *************** *** 79,83 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_details ["+(m_details != null ? java.util.Arrays.asList(m_details) : null)+"] }"; } } // class epp_Exception --- 100,104 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_details ["+(m_details != null ? java.util.Arrays.asList(m_details) : null)+"] m_trans_id ["+m_trans_id+"] m_ext_strings ["+(m_ext_strings != null ? java.util.Arrays.asList(m_ext_strings) : null)+"] }"; } } // class epp_Exception Index: epp_LogoutReq.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_LogoutReq.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_LogoutReq.java 13 Mar 2002 02:40:48 -0000 1.8 --- epp_LogoutReq.java 14 Aug 2002 20:02:55 -0000 1.9 *************** *** 36,43 **** /** * The optional command extensions. ! * @see #setExtension(org.openrtk.idl.epp.epp_Extension) ! * @see #getExtension() */ ! public org.openrtk.idl.epp.epp_Extension m_extension = null; /** * The client transaction identifier assigned by the client to the command. --- 36,43 ---- /** * The optional command extensions. ! * @see #setExtensions(org.openrtk.idl.epp.epp_Extension[]) ! * @see #getExtensions() */ ! public org.openrtk.idl.epp.epp_Extension[] m_extensions = null; /** * The client transaction identifier assigned by the client to the command. *************** *** 58,65 **** * @param _m_extension The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ public epp_LogoutReq (org.openrtk.idl.epp.epp_Extension _m_extension, String _m_client_trid) { ! m_extension = _m_extension; m_client_trid = _m_client_trid; } // ctor --- 58,78 ---- * @param _m_extension The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command + * @deprecated */ public epp_LogoutReq (org.openrtk.idl.epp.epp_Extension _m_extension, String _m_client_trid) { ! m_extensions = new org.openrtk.idl.epp.epp_Extension[1]; ! m_extensions[0] = _m_extension; ! m_client_trid = _m_client_trid; ! } // ctor ! ! /** ! * The constructor with initializing variables. ! * @param _m_extensions The optional command extensions ! * @param _m_client_trid The client transaction identifier assigned by the client to the command ! */ ! public epp_LogoutReq (org.openrtk.idl.epp.epp_Extension[] _m_extensions, String _m_client_trid) ! { ! m_extensions = _m_extensions; m_client_trid = _m_client_trid; } // ctor *************** *** 68,80 **** * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_extension */ ! public void setExtension(org.openrtk.idl.epp.epp_Extension value) { m_extension = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_extension */ ! public org.openrtk.idl.epp.epp_Extension getExtension() { return m_extension; } /** --- 81,111 ---- * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_extensions ! * @deprecated */ ! public void setExtension(org.openrtk.idl.epp.epp_Extension value) { ! m_extensions = new org.openrtk.idl.epp.epp_Extension[1]; ! m_extensions[0] = value; ! } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_extensions ! * @deprecated */ ! public org.openrtk.idl.epp.epp_Extension getExtension() { return m_extensions == null ? null : m_extensions[0]; } ! ! /** ! * Accessor method for the optional command extensions ! * @param value The optional command extensions ! * @see #m_extensions ! */ ! public void setExtensions(org.openrtk.idl.epp.epp_Extension[] value) { m_extensions = value; } ! /** ! * Accessor method for the optional command extensions ! * @return The optional command extensions ! * @see #m_extensions ! */ ! public org.openrtk.idl.epp.epp_Extension[] getExtensions() { return m_extensions; } /** *************** *** 111,115 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_extension ["+m_extension+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_LogoutReq --- 142,146 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_extensions ["+(m_extensions != null ? java.util.Arrays.asList(m_extensions) : null)+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_LogoutReq Index: epp_MessageQueue.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_MessageQueue.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_MessageQueue.java 4 Dec 2001 22:32:50 -0000 1.3 --- epp_MessageQueue.java 14 Aug 2002 20:02:55 -0000 1.4 *************** *** 48,51 **** --- 48,54 ---- public String m_queue_date = null; + public String m_msg = null; + public String m_id = null; + /** * Empty constructor *************** *** 60,67 **** * @param _m_queue_date The date and time that a particular message was enqueued */ ! public epp_MessageQueue (int _m_count, String _m_queue_date) { m_count = _m_count; m_queue_date = _m_queue_date; } // ctor --- 63,72 ---- * @param _m_queue_date The date and time that a particular message was enqueued */ ! public epp_MessageQueue (int _m_count, String _m_queue_date, String _m_msg, String _m_id) { m_count = _m_count; m_queue_date = _m_queue_date; + m_msg = _m_msg; + m_id = _m_id; } // ctor *************** *** 91,94 **** --- 96,105 ---- */ public String getQueueDate() { return m_queue_date; } + + public void setMsg(String value) { m_msg = value; } + public String getMsg() { return m_msg; } + + public void setId(String value) { m_id = value; } + public String getId() { return m_id; } /** Index: epp_Response.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Response.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_Response.java 13 Mar 2002 02:40:48 -0000 1.8 --- epp_Response.java 14 Aug 2002 20:02:55 -0000 1.9 *************** *** 50,57 **** /** * The optional response extensions from the registry. ! * @see #setExtensionString(String) ! * @see #getExtensionString() */ ! public String m_extension_string = null; /** * The transaction identifiers assigned by the client and the server. --- 50,57 ---- /** * The optional response extensions from the registry. ! * @see #setExtensionStrings(String[]) ! * @see #getExtensionStrings() */ ! public String[] m_extension_strings = null; /** * The transaction identifiers assigned by the client and the server. *************** *** 74,77 **** --- 74,78 ---- * @param _m_extension_string The response extensions from the registry * @param _m_trans_id The transaction identifiers assigned by the client and the server + * @deprecated */ public epp_Response (org.openrtk.idl.epp.epp_Result[] _m_results, org.openrtk.idl.epp.epp_MessageQueue _m_message_queue, String _m_extension_string, org.openrtk.idl.epp.epp_TransID _m_trans_id) *************** *** 79,83 **** m_results = _m_results; m_message_queue = _m_message_queue; ! m_extension_string = _m_extension_string; m_trans_id = _m_trans_id; } // ctor --- 80,100 ---- m_results = _m_results; m_message_queue = _m_message_queue; ! m_extension_strings = new String[1]; ! m_extension_strings[0] = _m_extension_string; ! m_trans_id = _m_trans_id; ! } // ctor ! ! /** ! * The constructor with initializing variables. ! * @param _m_results The array of the results that document the success or failure of an EPP command execution ! * @param _m_message_queue The element that indicates the status of the messages queued in the EPP server ! * @param _m_extension_strings The response extensions from the registry ! * @param _m_trans_id The transaction identifiers assigned by the client and the server ! */ ! public epp_Response (org.openrtk.idl.epp.epp_Result[] _m_results, org.openrtk.idl.epp.epp_MessageQueue _m_message_queue, String[] _m_extension_strings, org.openrtk.idl.epp.epp_TransID _m_trans_id) ! { ! m_results = _m_results; ! m_message_queue = _m_message_queue; ! m_extension_strings = _m_extension_strings; m_trans_id = _m_trans_id; } // ctor *************** *** 112,118 **** * Accessor method for the response extensions from the registry * @param value The response extensions ! * @see #m_extension_string */ ! public void setExtensionString(String value) { m_extension_string = value; } /** * Accessor method for the response extensions from the registry --- 129,153 ---- * Accessor method for the response extensions from the registry * @param value The response extensions ! * @see #m_extension_strings ! * @deprecated */ ! public void setExtensionString(String value) { ! m_extension_strings = new String[1]; ! m_extension_strings[0] = value; ! } ! /** ! * Accessor method for the response extensions from the registry ! * @return The response extensions ! * @see #m_extension_strings ! * @deprecated ! */ ! public String getExtensionString() { return m_extension_strings == null ? null : m_extension_strings[0]; } ! ! /** ! * Accessor method for the response extensions from the registry ! * @param value The response extensions ! * @see #m_extension_strings ! */ ! public void setExtensionStrings(String[] value) { m_extension_strings = value; } /** * Accessor method for the response extensions from the registry *************** *** 120,124 **** * @see #m_extension_string */ ! public String getExtensionString() { return m_extension_string; } /** --- 155,159 ---- * @see #m_extension_string */ ! public String[] getExtensionStrings() { return m_extension_strings; } /** *************** *** 155,159 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] m_message_queue ["+m_message_queue+"] m_extension_string ["+m_extension_string+"] m_trans_id ["+m_trans_id+"] }"; } } // class epp_Response --- 190,194 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] m_message_queue ["+m_message_queue+"] m_extension_strings ["+(m_extension_strings != null ? java.util.Arrays.asList(m_extension_strings) : null)+"] m_trans_id ["+m_trans_id+"] }"; } } // class epp_Response Index: epp_Result.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Result.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_Result.java 13 Mar 2002 18:33:22 -0000 1.8 --- epp_Result.java 14 Aug 2002 20:02:55 -0000 1.9 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,6 ---- ** ** EPP RTK Java ! ** Copyright (C) 2002, Tucows, Inc. ** ** *************** *** 54,69 **** public String m_lang = null; /** ! * The identifier of the service message dequeued from the server by the client. ! * Normally be present when responding to an EPP poll command. ! * @see #setId(String) ! * @see #getId() ! */ ! public String m_id = null; ! /** ! * The array of messages that provide server error details. ! * @see #setValues(String[]) * @see #getValues() */ ! public String m_values[] = null; /** * The generic Result data. --- 54,62 ---- public String m_lang = null; /** ! * The array of values that provide server error details. ! * @see #setValues(epp_ResultValue[]) * @see #getValues() */ ! public epp_ResultValue m_values[] = null; /** * The generic Result data. *************** *** 85,92 **** * @param _m_msg The human-readable description of the response code * @param _m_lang The language used to express the response message - * @param _m_id The identifier of the service message dequeued from the server by the client * @param _m_values The array of messages that provide server error details */ ! public epp_Result (short _m_code, String _m_msg, String _m_lang, String _m_id, String[] _m_values) { // Can we call another constructor in here??? --- 78,84 ---- * @param _m_msg The human-readable description of the response code * @param _m_lang The language used to express the response message * @param _m_values The array of messages that provide server error details */ ! public epp_Result (short _m_code, String _m_msg, String _m_lang, epp_ResultValue[] _m_values) { // Can we call another constructor in here??? *************** *** 95,99 **** m_msg = _m_msg; m_lang = _m_lang; - m_id = _m_id; m_values = _m_values; } // ctor --- 87,90 ---- *************** *** 104,117 **** * @param _m_msg The human-readable description of the response code * @param _m_lang The language used to express the response message - * @param _m_id The identifier of the service message dequeued from the server by the client * @param _m_values The array of messages that provide server error details * @param _m_data The generic result data. */ ! public epp_Result (short _m_code, String _m_msg, String _m_lang, String _m_id, String[] _m_values, org.openrtk.idl.epp.epp_ResultData _m_data) { m_code = _m_code; m_msg = _m_msg; m_lang = _m_lang; - m_id = _m_id; m_values = _m_values; m_data = _m_data; --- 95,106 ---- * @param _m_msg The human-readable description of the response code * @param _m_lang The language used to express the response message * @param _m_values The array of messages that provide server error details * @param _m_data The generic result data. */ ! public epp_Result (short _m_code, String _m_msg, String _m_lang, epp_ResultValue[] _m_values, org.openrtk.idl.epp.epp_ResultData _m_data) { m_code = _m_code; m_msg = _m_msg; m_lang = _m_lang; m_values = _m_values; m_data = _m_data; *************** *** 158,179 **** /** ! * Accessor method for the identifier of the service message dequeued from the server by the client ! * @param value The service message identifier ! * @see #m_id ! */ ! public void setId(String value) { m_id = value; } ! /** ! * Accessor method for the identifier of the service message dequeued from the server by the client ! * @return The service message identifier ! * @see #m_id ! */ ! public String getId() { return m_id; } ! ! /** ! * Accessor method for the array of messages that provide server error details * @param value The array of error details * @see #m_values */ ! public void setValues(String[] value) { m_values = value; } /** * Accessor method for the array of messages that provide server error details --- 147,155 ---- /** ! * Accessor method for the array of value that provide server error details * @param value The array of error details * @see #m_values */ ! public void setValues(epp_ResultValue[] value) { m_values = value; } /** * Accessor method for the array of messages that provide server error details *************** *** 181,185 **** * @see #m_values */ ! public String[] getValues() { return m_values; } /** --- 157,161 ---- * @see #m_values */ ! public epp_ResultValue[] getValues() { return m_values; } /** *************** *** 201,205 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_code ["+m_code+"] m_values ["+(m_values != null ? java.util.Arrays.asList(m_values) : null)+"] m_msg ["+m_msg+"] m_lang ["+m_lang+"] m_id ["+m_id+"] m_data ["+m_data+"] }"; } } // class epp_Result --- 177,181 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_code ["+m_code+"] m_values ["+(m_values != null ? java.util.Arrays.asList(m_values) : null)+"] m_msg ["+m_msg+"] m_lang ["+m_lang+"] m_data ["+m_data+"] }"; } } // class epp_Result Index: epp_dcpAccessType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpAccessType.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_dcpAccessType.java 15 Mar 2002 15:50:52 -0000 1.2 --- epp_dcpAccessType.java 14 Aug 2002 20:02:55 -0000 1.3 *************** *** 26,30 **** * Class defining constant instances of data collection policy access types which describes * access provided by the server to data received from the client.</p> ! * Five access types are defined: ALL, NO_ACCESS, NULL_ACCESS, SOCIAL, TECHNICAL.</p> * $Header$<br> * $Revision$<br> --- 26,30 ---- * Class defining constant instances of data collection policy access types which describes * access provided by the server to data received from the client.</p> ! * Six access types are defined: ALL, NONE, NULL_ACCESS, OTHER, PERSONAL, and PERSONAL_AND_OTHER.</p> * $Header$<br> * $Revision$<br> *************** *** 36,42 **** { private int __value; ! 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" }; /** --- 36,42 ---- { private int __value; ! private static int __size = 6; private static org.openrtk.idl.epp.epp_dcpAccessType[] __array = new org.openrtk.idl.epp.epp_dcpAccessType [__size]; ! private static String[] __strings = { "all","none","null","other","personal","personalAndOther" }; /** *************** *** 50,61 **** public static final org.openrtk.idl.epp.epp_dcpAccessType ALL = new org.openrtk.idl.epp.epp_dcpAccessType(_ALL); /** ! * Integer value representing the NO_ACCESS access type. ! * @see #NO_ACCESS */ ! public static final int _NO_ACCESS = 1; /** ! * Instance of epp_dcpAccessType representing the NO_ACCESS access type. */ ! public static final org.openrtk.idl.epp.epp_dcpAccessType NO_ACCESS = new org.openrtk.idl.epp.epp_dcpAccessType(_NO_ACCESS); /** * Integer value representing the NULL_ACCESS access type. --- 50,61 ---- public static final org.openrtk.idl.epp.epp_dcpAccessType ALL = new org.openrtk.idl.epp.epp_dcpAccessType(_ALL); /** ! * Integer value representing the NONE_ACCESS access type. ! * @see #NONE_ACCESS */ ! public static final int _NONE_ACCESS = 1; /** ! * Instance of epp_dcpAccessType representing the NONE_ACCESS access type. */ ! public static final org.openrtk.idl.epp.epp_dcpAccessType NONE_ACCESS = new org.openrtk.idl.epp.epp_dcpAccessType(_NONE_ACCESS); /** * Integer value representing the NULL_ACCESS access type. *************** *** 68,88 **** public static final org.openrtk.idl.epp.epp_dcpAccessType NULL_ACCESS = new org.openrtk.idl.epp.epp_dcpAccessType(_NULL_ACCESS); /** ! * Integer value representing the SOCIAL access type. ! * @see #SOCIAL */ ! public static final int _SOCIAL = 3; /** ! * Instance of epp_dcpAccessType representing the SOCIAL access type. */ ! public static final org.openrtk.idl.epp.epp_dcpAccessType SOCIAL = new org.openrtk.idl.epp.epp_dcpAccessType(_SOCIAL); /** ! * Integer value representing the TECHNICAL access type. ! * @see #TECHNICAL */ ! public static final int _TECHNICAL = 4; /** ! * Instance of epp_dcpAccessType representing the TECHNICAL access type. */ ! public static final org.openrtk.idl.epp.epp_dcpAccessType TECHNICAL = new org.openrtk.idl.epp.epp_dcpAccessType(_TECHNICAL); /** --- 68,97 ---- public static final org.openrtk.idl.epp.epp_dcpAccessType NULL_ACCESS = new org.openrtk.idl.epp.epp_dcpAccessType(_NULL_ACCESS); /** ! * Integer value representing the OTHER access type. ! * @see #OTHER */ ! public static final int _OTHER = 3; /** ! * Instance of epp_dcpAccessType representing the OTHER access type. */ ! public static final org.openrtk.idl.epp.epp_dcpAccessType OTHER = new org.openrtk.idl.epp.epp_dcpAccessType(_OTHER); /** ! * Integer value representing the PERSONAL access type. ! * @see #PERSONAL */ ! public static final int _PERSONAL = 4; /** ! * Instance of epp_dcpAccessType representing the PERSONAL access type. */ ! public static final org.openrtk.idl.epp.epp_dcpAccessType PERSONAL = new org.openrtk.idl.epp.epp_dcpAccessType(_PERSONAL); ! /** ! * Integer value representing the PERSONAL_AND_OTHER access type. ! * @see #PERSONAL_AND_OTHER ! */ ! public static final int _PERSONAL_AND_OTHER = 4; ! /** ! * Instance of epp_dcpAccessType representing the PERSONAL_AND_OTHER access type. ! */ ! public static final org.openrtk.idl.epp.epp_dcpAccessType PERSONAL_AND_OTHER = new org.openrtk.idl.epp.epp_dcpAccessType(_PERSONAL_AND_OTHER); /** Index: epp_dcpPurposeType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpPurposeType.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_dcpPurposeType.java 15 Mar 2002 15:50:52 -0000 1.2 --- epp_dcpPurposeType.java 14 Aug 2002 20:02:55 -0000 1.3 *************** *** 26,30 **** * Class defining constant instances of data collection purpose types which describes * EPP server's policy of data collection and management.</p> ! * Five purpose types are defined: CONTACT, DN_REG, IP_REG, OTHER_PURPOSE, TM_REG.</p> * $Header$<br> * $Revision$<br> --- 26,30 ---- * Class defining constant instances of data collection purpose types which describes * EPP server's policy of data collection and management.</p> ! * Four purpose types are defined: ADMIN, CONTACT, OTHER_PURPOSE, and PROV.</p> * $Header$<br> * $Revision$<br> *************** *** 36,75 **** { private int __value; ! 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" }; /** ! * Integer value representing the CONTACT purpose type. ! * @see #CONTACT */ ! public static final int _CONTACT = 0; /** * Instance of epp_dcpPurposeType representing the CONTACT purpose type. */ ! public static final org.openrtk.idl.epp.epp_dcpPurposeType CONTACT = new org.openrtk.idl.epp.epp_dcpPurposeType(_CONTACT); ! /** ! * Integer value representing the DN_REG purpose type. ! * @see #DN_REG ! */ ! public static final int _DN_REG = 1; ! /** ! * Instance of epp_dcpPurposeType representing the DN_REG purpose type. ! */ ! public static final org.openrtk.idl.epp.epp_dcpPurposeType DN_REG = new org.openrtk.idl.epp.epp_dcpPurposeType(_DN_REG); /** ! * Integer value representing the IP_REG purpose type. ! * @see #IP_REG */ ! public static final int _IP_REG = 2; /** ! * Instance of epp_dcpPurposeType representing the IP_REG purpose type. */ ! public static final org.openrtk.idl.epp.epp_dcpPurposeType IP_REG = new org.openrtk.idl.epp.epp_dcpPurposeType(_IP_REG); /** * Integer value representing the OTHER_PURPOSE purpose type. * @see #OTHER_PURPOSE */ ! public static final int _OTHER_PURPOSE = 3; /** * Instance of epp_dcpPurposeType representing the OTHER_PURPOSE purpose type. --- 36,66 ---- { private int __value; ! private static int __size = 4; private static org.openrtk.idl.epp.epp_dcpPurposeType[] __array = new org.openrtk.idl.epp.epp_dcpPurposeType [__size]; ! private static String[] __strings = { "admin","contact","other","prov" }; /** ! * Integer value representing the ADMIN purpose type. ! * @see #ADMIN */ ! public static final int _ADMIN = 0; /** * Instance of epp_dcpPurposeType representing the CONTACT purpose type. */ ! public static final org.openrtk.idl.epp.epp_dcpPurposeType ADMIN = new org.openrtk.idl.epp.epp_dcpPurposeType(_ADMIN); /** ! * Integer value representing the CONTACT purpose type. ! * @see #CONTACT */ ! public static final int _CONTACT = 1; /** ! * Instance of epp_dcpPurposeType representing the CONTACT purpose type. */ ! public static final org.openrtk.idl.epp.epp_dcpPurposeType CONTACT = new org.openrtk.idl.epp.epp_dcpPurposeType(_CONTACT); /** * Integer value representing the OTHER_PURPOSE purpose type. * @see #OTHER_PURPOSE */ ! public static final int _OTHER_PURPOSE = 2; /** * Instance of epp_dcpPurposeType representing the OTHER_PURPOSE purpose type. *************** *** 77,88 **** public static final org.openrtk.idl.epp.epp_dcpPurposeType OTHER_PURPOSE = new org.openrtk.idl.epp.epp_dcpPurposeType(_OTHER_PURPOSE); /** ! * Integer value representing the TM_REG purpose type. ! * @see #TM_REG */ ! public static final int _TM_REG = 4; /** ! * Instance of epp_dcpPurposeType representing the TM_REG purpose type. */ ! public static final org.openrtk.idl.epp.epp_dcpPurposeType TM_REG = new org.openrtk.idl.epp.epp_dcpPurposeType(_TM_REG); /** --- 68,79 ---- public static final org.openrtk.idl.epp.epp_dcpPurposeType OTHER_PURPOSE = new org.openrtk.idl.epp.epp_dcpPurposeType(_OTHER_PURPOSE); /** ! * Integer value representing the PROV purpose type. ! * @see #PROV */ ! public static final int _PROV = 3; /** ! * Instance of epp_dcpPurposeType representing the PROV purpose type. */ ! public static final org.openrtk.idl.epp.epp_dcpPurposeType PROV = new org.openrtk.idl.epp.epp_dcpPurposeType(_PROV); /** Index: epp_dcpRetentionType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpRetentionType.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_dcpRetentionType.java 15 Mar 2002 15:50:52 -0000 1.2 --- epp_dcpRetentionType.java 14 Aug 2002 20:02:55 -0000 1.3 *************** *** 25,29 **** * Class defining constant instances of data retention types which describes * EPP server's policy of data collection and management.</p> ! * Five retention types are defined: BUSINESS, FUNCTIONAL, INDEFINITE, LEGAL, NONE.</p> * $Header$<br> * $Revision$<br> --- 25,29 ---- * Class defining constant instances of data retention types which describes * EPP server's policy of data collection and management.</p> ! * Five retention types are defined: BUSINESS, INDEFINITE, LEGAL, NONE and STATED.</p> * $Header$<br> * $Revision$<br> *************** *** 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" }; /** --- 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","indefinite","legal","none","stated" }; /** *************** *** 49,65 **** public static final org.openrtk.idl.epp.epp_dcpRetentionType BUSINESS = new org.openrtk.idl.epp.epp_dcpRetentionType(_BUSINESS); /** - * Integer value representing the FUNCTIONAL retention type. - * @see #FUNCTIONAL - */ - public static final int _FUNCTIONAL = 1; - /** - * Instance of epp_dcpRetentionType representing the FUNCTIONAL retention type. - */ - public static final org.openrtk.idl.epp.epp_dcpRetentionType FUNCTIONAL = new org.openrtk.idl.epp.epp_dcpRetentionType(_FUNCTIONAL); - /** * Integer value representing the INDEFINITE retention type. * @see #INDEFINITE */ ! public static final int _INDEFINITE = 2; /** * Instance of epp_dcpRetentionType representing the INDEFINITE retention type. --- 49,56 ---- public static final org.openrtk.idl.epp.epp_dcpRetentionType BUSINESS = new org.openrtk.idl.epp.epp_dcpRetentionType(_BUSINESS); /** * Integer value representing the INDEFINITE retention type. * @see #INDEFINITE */ ! public static final int _INDEFINITE = 1; /** * Instance of epp_dcpRetentionType representing the INDEFINITE retention type. *************** *** 70,74 **** * @see #LEGAL */ ! public static final int _LEGAL = 3; /** * Instance of epp_dcpRetentionType representing the LEGAL retention type. --- 61,65 ---- * @see #LEGAL */ ! public static final int _LEGAL = 2; /** * Instance of epp_dcpRetentionType representing the LEGAL retention type. *************** *** 79,87 **** * @see #NONE */ ! public static final int _NONE = 4; /** * Instance of epp_dcpRetentionType representing the NONE retention type. */ public static final org.openrtk.idl.epp.epp_dcpRetentionType NONE = new org.openrtk.idl.epp.epp_dcpRetentionType(_NONE); /** --- 70,87 ---- * @see #NONE */ ! public static final int _NONE = 3; /** * Instance of epp_dcpRetentionType representing the NONE retention type. */ public static final org.openrtk.idl.epp.epp_dcpRetentionType NONE = new org.openrtk.idl.epp.epp_dcpRetentionType(_NONE); + /** + * Integer value representing the STATED retention type. + * @see #STATED + */ + public static final int _STATED = 4; + /** + * Instance of epp_dcpRetentionType representing the STATED retention type. + */ + public static final org.openrtk.idl.epp.epp_dcpRetentionType STATED = new org.openrtk.idl.epp.epp_dcpRetentionType(_STATED); /** Index: epp_dcpStatement.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpStatement.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_dcpStatement.java 19 Mar 2002 15:48:36 -0000 1.2 --- epp_dcpStatement.java 14 Aug 2002 20:02:55 -0000 1.3 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,6 ---- ** ** EPP RTK Java ! ** Copyright (C) 2002, Tucows, Inc. ** ** *************** *** 43,50 **** /** * The array of data recipient types. ! * @see #setRecipients(epp_dcpRecipientType[]) * @see #getRecipients() */ ! public org.openrtk.idl.epp.epp_dcpRecipientType m_recipients[] = null; /** * The data retention type. --- 43,50 ---- /** * The array of data recipient types. ! * @see #setRecipients(epp_dcpRecipient[]) * @see #getRecipients() */ ! public org.openrtk.idl.epp.epp_dcpRecipient m_recipients[] = null; /** * The data retention type. *************** *** 66,73 **** --- 66,90 ---- * @param _m_recipients The array of data recipient types * @param _m_retention The data retention type + * @deprecated */ 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 = new org.openrtk.idl.epp.epp_dcpRecipient[_m_recipients.length]; + for ( int count = 0; count <= _m_recipients.length; count++ ) { + m_recipients[count].m_type = _m_recipients[count]; + } + m_retention = _m_retention; + } // ctor + + /** + * The constructor with initializing variables. + * @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_dcpRecipient[] _m_recipients, org.openrtk.idl.epp.epp_dcpRetentionType _m_retention) + { + m_purposes = _m_purposes; m_recipients = _m_recipients; m_retention = _m_retention; *************** *** 90,101 **** * @param value The array of data recipient types * @see #m_recipients */ ! public void setRecipients(org.openrtk.idl.epp.epp_dcpRecipientType[] value) { m_recipients = value; } /** * Accessor method for the array of data recipient types * @return The array of data recipient types * @see #m_recipients */ ! public org.openrtk.idl.epp.epp_dcpRecipientType[] getRecipients() { return m_recipients; } /** * Accessor method for the data retention type --- 107,145 ---- * @param value The array of data recipient types * @see #m_recipients + * @deprecated */ ! public void setRecipients(org.openrtk.idl.epp.epp_dcpRecipientType[] value) { ! m_recipients = new org.openrtk.idl.epp.epp_dcpRecipient[value.length]; ! for ( int count = 0; count <= value.length; count++ ) { ! m_recipients[count].m_type = value[count]; ! } ! } /** * Accessor method for the array of data recipient types * @return The array of data recipient types * @see #m_recipients + * @deprecated */ ! public org.openrtk.idl.epp.epp_dcpRecipientType[] getRecipientsTypes() { ! org.openrtk.idl.epp.epp_dcpRecipientType[] recips = new org.openrtk.idl.epp.epp_dcpRecipientType[m_recipients.length]; ! for ( int count = 0; count <= m_recipients.length; count++ ) { ! recips[count] = m_recipients[count].m_type; ! } ! return recips; ! } ! ! /** ! * Accessor method for the array of data recipient types ! * @param value The array of data recipient types ! * @see #m_recipients ! */ ! public void setRecipients(org.openrtk.idl.epp.epp_dcpRecipient[] value) { m_recipients = value; } ! /** ! * Accessor method for the array of data recipient types ! * @return The array of data recipient types ! * @see #m_recipients ! */ ! public org.openrtk.idl.epp.epp_dcpRecipient[] getRecipients() { return m_recipients; } ! /** * Accessor method for the data retention type |
From: Daniel M. <tub...@us...> - 2002-08-14 20:02:58
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact In directory usw-pr-cvs1:/tmp/cvs-serv26274/openrtk/idl/epp/contact Modified Files: epp_ContactInfoReq.java Log Message: first commit of Java IDL classes for EPP 0604 Index: epp_ContactInfoReq.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactInfoReq.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactInfoReq.java 4 Dec 2001 22:31:46 -0000 1.9 --- epp_ContactInfoReq.java 14 Aug 2002 20:02:55 -0000 1.10 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,6 ---- ** ** EPP RTK Java ! ** Copyright (C) 2002, Tucows, Inc. ** ** *************** *** 47,50 **** --- 47,56 ---- */ public String m_id = null; + /** + * The authorization information required to authorize object transfers. + * @see #setAuthInfo(org.openrtk.idl.epp.epp_AuthInfo) + * @see #getAuthInfo() + */ + public org.openrtk.idl.epp.epp_AuthInfo m_auth_info = null; /** *************** *** 59,62 **** --- 65,69 ---- * @param _m_cmd The common and generic command element * @param _m_id The identifier for the contact object to be queried + * @deprecated */ public epp_ContactInfoReq (org.openrtk.idl.epp.epp_Command _m_cmd, String _m_id) *************** *** 67,70 **** --- 74,90 ---- /** + * The constructor with initializing variables. + * @param _m_cmd The common and generic command element + * @param _m_id The identifier for the contact object to be queried + * @param _m_auth_info The authorization information required to authorize object transfers + */ + public epp_ContactInfoReq (org.openrtk.idl.epp.epp_Command _m_cmd, String _m_id, org.openrtk.idl.epp.epp_AuthInfo _m_auth_info) + { + m_cmd = _m_cmd; + m_id = _m_id; + m_auth_info = _m_auth_info; + } // ctor + + /** * Accessor method for the common and generic command element * @param value The command element *************** *** 104,112 **** /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_id ["+m_id+"] }"; } } // class epp_ContactInfoReq --- 124,145 ---- /** + * Accessor method for the authorization information + * @param value The authorization information + * @see #m_auth_info + */ + public void setAuthInfo(org.openrtk.idl.epp.epp_AuthInfo value) { m_auth_info = value; } + /** + * Accessor method for the authorization information + * @return The authorization information + * @see #m_auth_info + */ + public org.openrtk.idl.epp.epp_AuthInfo getAuthInfo() { return m_auth_info; } + + /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_id ["+m_id+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_ContactInfoReq |
From: Daniel M. <tub...@us...> - 2002-08-14 20:02:58
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain In directory usw-pr-cvs1:/tmp/cvs-serv26274/openrtk/idl/epp/domain Modified Files: epp_DomainInfoReq.java Log Message: first commit of Java IDL classes for EPP 0604 Index: epp_DomainInfoReq.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainInfoReq.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainInfoReq.java 11 Mar 2002 22:13:28 -0000 1.8 --- epp_DomainInfoReq.java 14 Aug 2002 20:02:55 -0000 1.9 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,6 ---- ** ** EPP RTK Java ! ** Copyright (C) 2002, Tucows, Inc. ** ** *************** *** 53,56 **** --- 53,62 ---- */ public org.openrtk.idl.epp.domain.epp_DomainHostsType m_hosts_type = null; + /** + * The authorization information required to authorize object transfers. + * @see #setAuthInfo(org.openrtk.idl.epp.epp_AuthInfo) + * @see #getAuthInfo() + */ + public org.openrtk.idl.epp.epp_AuthInfo m_auth_info = null; /** *************** *** 68,71 **** --- 74,78 ---- * @param _m_name The name of the domain object to be queried * @param _m_hosts_type The type of hosts of the domain object to be queried + * @deprecated */ public epp_DomainInfoReq (org.openrtk.idl.epp.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp.domain.epp_DomainHostsType _m_hosts_type) *************** *** 77,80 **** --- 84,104 ---- /** + * The constructor with initializing variables. + * The hosts type parameter tells the server how much + * host information to return in the response. + * @param _m_cmd The common and generic command element + * @param _m_name The name of the domain object to be queried + * @param _m_hosts_type The type of hosts of the domain object to be queried + * @param _m_auth_info The authorization information required to authorize object transfers + */ + public epp_DomainInfoReq (org.openrtk.idl.epp.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp.domain.epp_DomainHostsType _m_hosts_type, org.openrtk.idl.epp.epp_AuthInfo _m_auth_info) + { + m_cmd = _m_cmd; + m_name = _m_name; + m_hosts_type = _m_hosts_type; + m_auth_info = _m_auth_info; + } // ctor + + /** * Accessor method for the common and generic command element * @param value The command element *************** *** 116,124 **** /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] m_hosts_type ["+m_hosts_type+"] }"; } } // class epp_DomainInfoReq --- 140,161 ---- /** + * Accessor method for the authorization information + * @param value The authorization information + * @see #m_auth_info + */ + public void setAuthInfo(org.openrtk.idl.epp.epp_AuthInfo value) { m_auth_info = value; } + /** + * Accessor method for the authorization information + * @return The authorization information + * @see #m_auth_info + */ + public org.openrtk.idl.epp.epp_AuthInfo getAuthInfo() { return m_auth_info; } + + /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] m_hosts_type ["+m_hosts_type+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_DomainInfoReq |
From: Daniel M. <tub...@us...> - 2002-08-12 17:56:35
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv15747/java/src/com/tucows/oxrs/epp/rtk Modified Files: RTKBase.java Log Message: porting debug output stream from epp-0402 branch Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/RTKBase.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** RTKBase.java 15 Mar 2002 19:30:14 -0000 1.14 --- RTKBase.java 12 Aug 2002 17:56:31 -0000 1.15 *************** *** 50,54 **** * RTK Version number. */ ! public static final String RTK_VERSION = "0.5.0"; /** --- 50,54 ---- * RTK Version number. */ ! public static final String RTK_VERSION = "0.5.1"; /** *************** *** 78,81 **** --- 78,83 ---- private static int debug_level_ = DEBUG_NONE; + private static PrintStream debug_print_stream_ = System.err; + private static Properties rtk_properties_ = null; *************** *** 127,134 **** } /** ! * Accessor method for the version * @return The current debug level */ public static int getDebugLevel() { return debug_level_; } /** --- 129,153 ---- } /** ! * Accessor method for the debug level * @return The current debug level */ public static int getDebugLevel() { return debug_level_; } + /** + * Accessor method for the debug output stream. + * The default is System.err + * @param stream The debug's new output stream + */ + public static void setDebugPrintStream(PrintStream stream) + { + if ( stream != null ) + { + debug_print_stream_ = stream; + } + } + /** + * Accessor method for the debug output stream + * @return The current debug output stream + */ + public static PrintStream getDebugPrintStream() { return debug_print_stream_; } /** *************** *** 146,150 **** if ( debug_level_ >= level ) { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } --- 165,169 ---- if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } *************** *** 166,171 **** if ( debug_level_ >= level ) { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(); } } --- 185,190 ---- if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); } } |
From: Daniel M. <tub...@us...> - 2002-07-31 15:17:33
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv10691 Modified Files: Tag: epp-0402 SessionExample.java Log Message: more helpful example output Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/SessionExample.java,v retrieving revision 1.16.2.1 retrieving revision 1.16.2.2 diff -C2 -d -r1.16.2.1 -r1.16.2.2 *** SessionExample.java 3 May 2002 17:05:58 -0000 1.16.2.1 --- SessionExample.java 31 Jul 2002 15:17:29 -0000 1.16.2.2 *************** *** 169,172 **** --- 169,173 ---- epp_Response response = poll_response.getRsp(); System.out.println("Poll results: "+response); + System.out.println("Poll ResData type: "+poll_response.getResData().getType()); System.out.println("Poll ResData: "+poll_response.getResData()); } |
From: Daniel M. <tub...@us...> - 2002-07-31 14:53:13
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv17010 Modified Files: Tag: epp-0402 PollExample.java Log Message: more helpful messages Index: PollExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/Attic/PollExample.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** PollExample.java 3 May 2002 17:07:46 -0000 1.1.2.2 --- PollExample.java 31 Jul 2002 14:53:08 -0000 1.1.2.3 *************** *** 145,148 **** --- 145,149 ---- response = poll_response.getRsp(); System.out.println("Poll results: "+response); + System.out.println("Poll ResData type: "+poll_response.getResData().getType()); System.out.println("Poll ResData: "+poll_response.getResData()); |
From: Daniel M. <tub...@us...> - 2002-07-31 13:52:45
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory usw-pr-cvs1:/tmp/cvs-serv16750 Modified Files: Tag: epp-0402 VERSION.TXT Log Message: release notes for 0.4.3 Index: VERSION.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/VERSION.TXT,v retrieving revision 1.17.2.2 retrieving revision 1.17.2.3 diff -C2 -d -r1.17.2.2 -r1.17.2.3 *** VERSION.TXT 4 Apr 2002 19:19:00 -0000 1.17.2.2 --- VERSION.TXT 31 Jul 2002 13:52:42 -0000 1.17.2.3 *************** *** 7,10 **** --- 7,23 ---- ====================== + epp-rtk-java-0.4.3 - May 3, 2002 + + + back-ported polling code from main branch 0.5.x to 0.4.x + + back-ported status array improvements in the org.openrtk... + classes and their new toString() methods. updated + the EPP... classes to use these changes. + + created new PollExample class which loops through poll messages + and interacts with the user to acknowledge them + + some improvements to SessionExample + + added ability in RTKBase to set the debug's output stream to + give the user the ability to redirect debug to a separate file + + null value checking added in disconnect() method in EPPClient + epp-rtk-java-0.4.2 - April 4, 2002 |
From: Daniel M. <tub...@us...> - 2002-07-31 13:52:32
|
Update of /cvsroot/epp-rtk/epp-rtk/java/doc In directory usw-pr-cvs1:/tmp/cvs-serv16652/doc Modified Files: Tag: epp-0402 epp-rtk-user-guide.html Log Message: user guide updates for release 0.4.3 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.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** epp-rtk-user-guide.html 25 Oct 2001 14:12:17 -0000 1.8 --- epp-rtk-user-guide.html 31 Jul 2002 13:52:28 -0000 1.8.2.1 *************** *** 61,64 **** --- 61,71 ---- </TD> </TR> + <TR valign=top> + <TD>May 3, 2002</TD> + <TD>Dan Manley</TD> + <TD>Updates for Rel 0.4.3: Copied polling sections from 0.5.x + RTK user guide because the code was back-ported.<BR> + </TD> + </TR> </TABLE> *************** *** 96,100 **** <a href="#4.2.11">4.2.11 epp_LogoutReq</a><br> <a href="#4.2.12">4.2.12 epp_PollReq</a><br> ! <a href="#4.2.13">4.2.13 epp_PollResData</a><br> <a href="#4.2.14">4.2.14 epp_Session</a><br> </blockquote> --- 103,107 ---- <a href="#4.2.11">4.2.11 epp_LogoutReq</a><br> <a href="#4.2.12">4.2.12 epp_PollReq</a><br> ! <a href="#4.2.13">4.2.13 epp_PollRsp</a><br> <a href="#4.2.14">4.2.14 epp_Session</a><br> </blockquote> *************** *** 815,846 **** </blockquote> ! <a name="4.2.12"><h3>4.2.12 epp_PollResData</h3></a> <blockquote> ! This structure contains data pertaining to the message that was polled. It has two members: ! 'data' which is the actual data that was returned in the poll request, and 'type' which indicates ! the type of data in the previous member. The 'data' member is actually a "union"-type of structure. ! The translation of a union IDL struture into Java makes for a class who's usage is not evident ! at first.<P> ! Currently, there are only two known types of PollResData (and even these are subject to change): ! epp_PollResDataType.DOMAIN_TRANSFER and epp_PollResDataType.CONTACT_TRANSFER. This will be set in ! the 'type' member of the epp_PollResData. If the type is CONTACT_TRANSFER, then you would call ! the method m_contact_transfer() on the 'data' member of epp_PollResData. This would return an ! instance of epp_PollContactTransfer. If the type is DOMAIN_TRANSFER, then you would call the ! data's m_domain_tranfer() method. This would return an instance of epp_PollDomainTransfer. ! The object contained in the 'data' member is trying to alert you to activity with regards to that ! object in the registry. i.e. If the type is DOMAIN_TRANSFER, then the domain in the data member ! is a domain that is going through the transfer process. To get the details, you would have to ! retrieve the domain name from epp_PollDomainTransfer and perform a Transfer Query.<P> ! PollResData details are registry specific. Be sure to read up on poll response information ! in the literature provided by your registry.<P> ! Please see the Javadocs on the classes mentioned here for more information. Please also see the ! section on EPPPoll below. If you are writing PollResData classes for a registry, then you'll ! probably want to take a look at the code and Javadocs for the classes EPPPoll, PollResData, and ! domaintransfer for information on the framework of poll response data in the Java RTK. </blockquote> --- 822,857 ---- </blockquote> ! <a name="4.2.13"><h3>4.2.13 epp_PollRsp</h3></a> <blockquote> ! This class contains the response data to a poll request. The actual data ! is variable according to the type of poll notification received from the ! server. The res-data member is the epp_PollResData interface and supports ! a getType() method call. You can programmatically use the String return ! value of this method to call the right code to extract the needed from ! the class implementing epp_PollResData. The string values are listed ! below in the description of the res-data member. ! <ul> ! <li><pre><b>rsp</b></pre> ! <blockquote> ! This is the generic response data member. It is an instance of ! epp_Response. ! </blockquote> ! <li><pre><b>res-data</b></pre> ! <blockquote> ! Instance of epp_PollResData interface. The actual poll response data. ! Contains such data as object transfer notifications. In the main RTK ! package, the interface could be an instance of one of the following ! classes (in brackets is the value returned by getType()): ! <ul> ! <li>epp_DomainTrnData ("domain:trnData") ! <li>epp_ContactTrnData ("contact:trnData") ! </ul> ! </blockquote> ! </ul> </blockquote> *************** *** 1238,1243 **** messages or possibly anticipated server outage messages. ! A Poll message may be contructed like the other EPP action. This usage is ! detailed below. But the EPPClient contains the method poll() will various overloaded versions. This greatly simplifies the poll request process. --- 1249,1254 ---- messages or possibly anticipated server outage messages. ! A Poll message is contructed like the other EPP actions. This usage is ! detailed below. But the EPPClient contains the method poll() with various overloaded versions. This greatly simplifies the poll request process. *************** *** 1289,1292 **** --- 1300,1319 ---- String message_id = results[0].getId(); + epp_PollResData poll_res_data = poll_response.getResData(); + String res_type = poll_res_data.getType(); + + if ( res_type.equals("domain:trnData") ) + { + // In this case, the poll response data is for + // a domain transfer notification, which comes in the + // same form as a domain transfer query response, + // let's cast it and get what we need out of it. + epp_DomainTrnData domain_trn_data = (epp_DomainTrnData)poll_res_data; + String domain_name = domain_trn_data.getName(); + + // And other attributes specified in the epp_DomainTrnData class + } + else if ..... // Cast to something else + </pre> *************** *** 1328,1332 **** <blockquote> Instance of epp_PollResData. Please see the section regarding ! epp_PollResData where the common IDL classes are described. </blockquote> </blockquote> --- 1355,1359 ---- <blockquote> Instance of epp_PollResData. Please see the section regarding ! epp_PollRsp where the common IDL classes are described. </blockquote> </blockquote> |
From: Daniel M. <tub...@us...> - 2002-05-03 18:07:16
|
Update of /cvsroot/epp-rtk/epp-rtk/java/etc In directory usw-pr-cvs1:/tmp/cvs-serv21623 Modified Files: Tag: epp-0402 rtk.properties Log Message: added debuglevel property (already in code) and description Index: rtk.properties =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/etc/rtk.properties,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** rtk.properties 28 Sep 2001 17:58:42 -0000 1.3 --- rtk.properties 3 May 2002 18:07:12 -0000 1.3.2.1 *************** *** 16,17 **** --- 16,27 ---- # string, then "com.tucows.oxrs.epp.rtk.transport" is assumed. rtk.transport=EPPTransportTCPTLS + + # RTK's debug level. Acceptable values are from 0 to 3. + # 0 = No debug messages, including exceptions + # 1 = Only show exception messages + # 2 = Debugs various points of interest in the code. Outputs + # XML to and from the server + # 3 = Shows all debug info, including entry and exits from + # most method calls. + # Default value is 1. + rtk.debuglevel=1 |
From: Daniel M. <tub...@us...> - 2002-05-03 17:11:10
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory usw-pr-cvs1:/tmp/cvs-serv4709 Modified Files: Tag: epp-0402 build.xml Log Message: upped version number to 0.4.3 Index: build.xml =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/build.xml,v retrieving revision 1.16.2.1 retrieving revision 1.16.2.2 diff -C2 -d -r1.16.2.1 -r1.16.2.2 *** build.xml 4 Apr 2002 18:23:25 -0000 1.16.2.1 --- build.xml 3 May 2002 17:11:08 -0000 1.16.2.2 *************** *** 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"/ --> --- 9,13 ---- <property name="optimize" value="true"/> <property name="project.name" value="epp-rtk-java"/> ! <property name="project.version" value="0.4.3"/> <!-- property name="build.compiler" value="jikes"/ --> <!-- property name="build.compiler" value="classic"/ --> |
From: Daniel M. <tub...@us...> - 2002-05-03 17:07:49
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv3513/src/com/tucows/oxrs/epp/rtk/example Modified Files: Tag: epp-0402 PollExample.java Log Message: fixes to the Javadoc for the PollExample class Index: PollExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/Attic/PollExample.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** PollExample.java 3 May 2002 17:05:58 -0000 1.1.2.1 --- PollExample.java 3 May 2002 17:07:46 -0000 1.1.2.2 *************** *** 42,54 **** /** ! * Example code for a typical logical EPP sessions. ! * For more information on the creation of Domain, Host and Contact ! * objects, please see their respective example Java source files. * * @author Daniel Manley * @version $Revision$ $Date$ - * @see com.tucows.oxrs.epp.rtk.example.DomainExample - * @see com.tucows.oxrs.epp.rtk.example.HostExample - * @see com.tucows.oxrs.epp.rtk.example.ContactExample **/ public class PollExample --- 42,49 ---- /** ! * Example code for a querying and acknowledging Poll messages. * * @author Daniel Manley * @version $Revision$ $Date$ **/ public class PollExample |
From: Daniel M. <tub...@us...> - 2002-05-03 17:06:03
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/org/openrtk/idl/epp/contact Modified Files: Tag: epp-0402 epp_ContactStatusType.java epp_ContactTransferRsp.java Added Files: Tag: epp-0402 epp_ContactTrnData.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample --- NEW FILE: epp_ContactTrnData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp.contact; /** * FIXME!</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactTrnData.java,v 1.2.2.1 2002/05/03 17:05:59 tubadanm Exp $<br> * $Revision: 1.2.2.1 $<br> * $Date: 2002/05/03 17:05:59 $<br> * @see org.openrtk.idl.epp.contact.epp_ContactInfoReq */ public class epp_ContactTrnData extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.portable.IDLEntity, org.openrtk.idl.epp.epp_PollResData { /** * Constant variable defined by IDLs.</p> * Used when this classes is used to hold the poll response * data pertaining to contact transfer notifications. The value * of this constant links this class to a set of poll response * data. */ public static final String m_type = "contact:trnData"; /** * Access method for the m_type constant. * @see #m_type */ public String getType() { return m_type; } /** * The id of the contact object in the registry. * @see #setId(String) * @see #getId() */ public String m_id = null; /** * The transfer status associated with the contact object. * @see #setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType) * @see #getTransferStatus() */ public org.openrtk.idl.epp.epp_TransferStatusType m_transfer_status = null; /** * The identifier of the client that requested the contact object transfer. * @see #setRequestClientId(String) * @see #getRequestClientId() */ public String m_request_client_id = null; /** * The identifier of the client that should act upon the contact transfer request. * @see #setActionClientId(String) * @see #getActionClientId() */ public String m_action_client_id = null; /** * The date that the contact transfer was requested. * @see #setRequestDate(String) * @see #getRequestDate() */ public String m_request_date = null; /** * The required or completed action date to the contact transfer request. * @see #setActionDate(String) * @see #getActionDate() */ public String m_action_date = null; /** * Empty constructor */ public epp_ContactTrnData () { } // ctor /** * The constructor with initializing variables. * @param _m_id The id of the contact object in the registry * @param _m_transfer_status The transfer status associated with the contact object * @param _m_request_client_id The identifier of the client that requested the contact object transfer * @param _m_action_client_id The identifier of the client that should act upon the contact transfer request * @param _m_request_date The date that the contact transfer was requested * @param _m_action_date The required or completed action date to the contact transfer request */ public epp_ContactTrnData (String _m_id, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_action_client_id, String _m_request_date, String _m_action_date) { m_id = _m_id; m_transfer_status = _m_transfer_status; m_request_client_id = _m_request_client_id; m_action_client_id = _m_action_client_id; m_request_date = _m_request_date; m_action_date = _m_action_date; } // ctor /** * Accessor method for the id of the contact object in the registry * @param value The contact id * @see #m_id */ public void setId(String value) { m_id = value; } /** * Accessor method for the id of the contact object in the registry * @return The contact id * @see #m_id */ public String getId() { return m_id; } /** * Accessor method for the transfer status associated with the contact object * @param value The contact transfer status * @see #m_transfer_status */ public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { m_transfer_status = value; } /** * Accessor method for the transfer status associated with the contact object * @return The contact transfer status * @see #m_transfer_status */ public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } /** * Accessor method for the identifier of the client that requested the contact object transfer * @param value The contact request client id * @see #m_request_client_id */ public void setRequestClientId(String value) { m_request_client_id = value; } /** * Accessor method for the identifier of the client that requested the contact object transfer * @return The contact request client id * @see #m_request_client_id */ public String getRequestClientId() { return m_request_client_id; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @param value The contact action client id * @see #m_action_client_id */ public void setActionClientId(String value) { m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The contact action client id * @see #m_action_client_id */ public String getActionClientId() { return m_action_client_id; } /** * Accessor method for the date that the contact transfer was requested * @param value The contact transfer request date * @see #m_request_date */ public void setRequestDate(String value) { m_request_date = value; } /** * Accessor method for the date that the contact transfer was requested * @return The contact transfer request date * @see #m_request_date */ public String getRequestDate() { return m_request_date; } /** * Accessor method for the required or completed action date to the contact transfer request * @param value The action date to the contact transfer request * @see #m_action_date */ public void setActionDate(String value) { m_action_date = value; } /** * Accessor method for the required or completed action date to the contact transfer request * @return The action date to the contact transfer request * @see #m_action_date */ public String getActionDate() { return m_action_date; } /** * Method required by ObjectImpl and the CORBA Object interface. * Always returns null. It's only here to satisfy the CORBA requirements * of the IDL usage. */ public String[] _ids() { return null; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_id ["+m_id+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_action_client_id ["+m_action_client_id+"] m_request_date ["+m_request_date+"] m_action_date ["+m_action_date+"] }"; } } // interface epp_ContactTrnData 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.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_ContactStatusType.java 4 Dec 2001 22:31:46 -0000 1.6 --- epp_ContactStatusType.java 3 May 2002 17:05:59 -0000 1.6.2.1 *************** *** 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 Index: epp_ContactTransferRsp.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactTransferRsp.java,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** epp_ContactTransferRsp.java 4 Dec 2001 22:31:46 -0000 1.9 --- epp_ContactTransferRsp.java 3 May 2002 17:05:59 -0000 1.9.2.1 *************** *** 43,81 **** public org.openrtk.idl.epp.epp_Response m_rsp = null; /** ! * The identifier for the contact object in the registry. ! * @see #setId(String) ! * @see #getId() ! */ ! public String m_id = null; ! /** ! * The transfer status associated with the contact object. ! * @see #setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType) ! * @see #getTransferStatus() ! */ ! public org.openrtk.idl.epp.epp_TransferStatusType m_transfer_status = null; ! /** ! * The identifier of the client that requested the contact object transfer. ! * @see #setRequestClientId(String) ! * @see #getRequestClientId() ! */ ! public String m_request_client_id = null; ! /** ! * The date that the contact transfer was requested. ! * @see #setRequestDate(String) ! * @see #getRequestDate() ! */ ! public String m_request_date = null; ! /** ! * The identifier of the client that should act upon the contact transfer request. ! * @see #setActionClientId(String) ! * @see #getActionClientId() ! */ ! public String m_action_client_id = null; ! /** ! * The required or completed action date to the contact transfer request. ! * @see #setActionDate(String) ! * @see #getActionDate() */ ! public String m_action_date = null; /** --- 43,51 ---- public org.openrtk.idl.epp.epp_Response m_rsp = null; /** ! * The transfer data for the contact object in the registry. ! * @see #setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) ! * @see #getTrnData() */ ! public org.openrtk.idl.epp.contact.epp_ContactTrnData m_trn_data = null; /** *************** *** 95,108 **** * @param _m_action_client_id The identifier of the client that should act upon the contact transfer request * @param _m_action_date The required or completed action date to the contact transfer request */ public epp_ContactTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_id, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_request_date, String _m_action_client_id, String _m_action_date) { m_rsp = _m_rsp; ! m_id = _m_id; ! m_transfer_status = _m_transfer_status; ! m_request_client_id = _m_request_client_id; ! m_request_date = _m_request_date; ! m_action_client_id = _m_action_client_id; ! m_action_date = _m_action_date; } // ctor --- 65,91 ---- * @param _m_action_client_id The identifier of the client that should act upon the contact transfer request * @param _m_action_date The required or completed action date to the contact transfer request + * @deprecated Please use epp_ContactTransferRsp(epp_Response, epp_ContactTrnData) instead */ public epp_ContactTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_id, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_request_date, String _m_action_client_id, String _m_action_date) { m_rsp = _m_rsp; ! m_trn_data = new org.openrtk.idl.epp.contact.epp_ContactTrnData(); ! m_trn_data.m_id = _m_id; ! m_trn_data.m_transfer_status = _m_transfer_status; ! m_trn_data.m_request_client_id = _m_request_client_id; ! m_trn_data.m_request_date = _m_request_date; ! m_trn_data.m_action_client_id = _m_action_client_id; ! m_trn_data.m_action_date = _m_action_date; ! } // ctor ! ! /** ! * The constructor with initializing variables. ! * @param _m_rsp The common and generic response element ! * @param _m_trn_data The transfer data for the contact object in the registry ! */ ! public epp_ContactTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, org.openrtk.idl.epp.contact.epp_ContactTrnData _m_trn_data) ! { ! m_rsp = _m_rsp; ! m_trn_data = _m_trn_data; } // ctor *************** *** 121,124 **** --- 104,120 ---- /** + * Accessor method for the transfer data of the contact object in the registry + * @param value The contact's transfer data + * @see #m_trn_data + */ + public void setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData value) { m_trn_data = value; } + /** + * Accessor method for the transfer data of the contact object in the registry + * @return The contact's transfer data + * @see #m_trn_data + */ + public org.openrtk.idl.epp.contact.epp_ContactTrnData getTrnData() { return m_trn_data; } + + /** * @deprecated * @see #setId(String) *************** *** 134,211 **** * Accessor method for the identifier for the contact object in the registry * @param value The contact id ! * @see #m_id */ ! public void setId(String value) { m_id = value; } /** * Accessor method for the identifier for the contact object in the registry * @return The contact id ! * @see #m_id */ ! public String getId() { return m_id; } /** * Accessor method for the transfer status associated with the contact object * @param value The contact transfer status ! * @see #m_transfer_status */ ! public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { m_transfer_status = value; } /** * Accessor method for the transfer status associated with the contact object * @return The contact transfer status ! * @see #m_transfer_status */ ! public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } /** * Accessor method for the client that requested the contact object transfer * @param value The client that requested the contact object transfer ! * @see #m_request_client_id */ ! public void setRequestClientId(String value) { m_request_client_id = value; } /** * Accessor method for the client that requested the contact object transfer * @return The client that requested the contact object transfer ! * @see #m_request_client_id */ ! public String getRequestClientId() { return m_request_client_id; } /** * Accessor method for the date that the contact transfer was requested * @param value The date that the contact transfer was requested ! * @see #m_request_date */ ! public void setRequestDate(String value) { m_request_date = value; } /** * Accessor method for the date that the contact transfer was requested * @return The date that the contact transfer was requested ! * @see #m_request_date */ ! public String getRequestDate() { return m_request_date; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @param value The identifier of the client that should act upon the contact transfer request ! * @see #m_action_client_id */ ! public void setActionClientId(String value) { m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The identifier of the client that should act upon the contact transfer request ! * @see #m_action_client_id */ ! public String getActionClientId() { return m_action_client_id; } /** * Accessor method for the required or completed action date to the contact transfer request * @param value The contact transfer action date ! * @see #m_action_date */ ! public void setActionDate(String value) { m_action_date = value; } /** * Accessor method for the required or completed action date to the contact transfer request * @return The contact transfer action date ! * @see #m_action_date */ ! public String getActionDate() { return m_action_date; } /** --- 130,219 ---- * Accessor method for the identifier for the contact object in the registry * @param value The contact id ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_id = value; } /** * Accessor method for the identifier for the contact object in the registry * @return The contact id ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getId() { return m_trn_data == null ? null : m_trn_data.m_id; } /** * Accessor method for the transfer status associated with the contact object * @param value The contact transfer status ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_transfer_status = value; } /** * Accessor method for the transfer status associated with the contact object * @return The contact transfer status ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_trn_data == null ? null : m_trn_data.m_transfer_status; } /** * Accessor method for the client that requested the contact object transfer * @param value The client that requested the contact object transfer ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setRequestClientId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_request_client_id = value; } /** * Accessor method for the client that requested the contact object transfer * @return The client that requested the contact object transfer ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getRequestClientId() { return m_trn_data == null ? null : m_trn_data.m_request_client_id; } /** * Accessor method for the date that the contact transfer was requested * @param value The date that the contact transfer was requested ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setRequestDate(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_request_date = value; } /** * Accessor method for the date that the contact transfer was requested * @return The date that the contact transfer was requested ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getRequestDate() { return m_trn_data == null ? null : m_trn_data.m_request_date; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @param value The identifier of the client that should act upon the contact transfer request ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setActionClientId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The identifier of the client that should act upon the contact transfer request ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getActionClientId() { return m_trn_data == null ? null : m_trn_data.m_action_client_id; } /** * Accessor method for the required or completed action date to the contact transfer request * @param value The contact transfer action date ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setActionDate(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_action_date = value; } /** * Accessor method for the required or completed action date to the contact transfer request * @return The contact transfer action date ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getActionDate() { return m_trn_data == null ? null : m_trn_data.m_action_date; } /** *************** *** 214,218 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_id ["+m_id+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_request_date ["+m_request_date+"] m_action_client_id ["+m_action_client_id+"] m_action_date ["+m_action_date+"] }"; } } // class epp_ContactTransferRsp --- 222,226 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_trn_data ["+m_trn_data+"] }"; } } // class epp_ContactTransferRsp |
From: Daniel M. <tub...@us...> - 2002-05-03 17:06:03
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/host In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/org/openrtk/idl/epp/host Modified Files: Tag: epp-0402 epp_HostAddressType.java epp_HostStatusType.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample 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.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_HostAddressType.java 4 Dec 2001 22:32:09 -0000 1.6 --- epp_HostAddressType.java 3 May 2002 17:05:59 -0000 1.6.2.1 *************** *** 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.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_HostStatusType.java 4 Dec 2001 22:32:09 -0000 1.6 --- epp_HostStatusType.java 3 May 2002 17:05:59 -0000 1.6.2.1 *************** *** 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-05-03 17:06:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/com/tucows/oxrs/epp/rtk/xml Modified Files: Tag: epp-0402 EPPContactBase.java EPPContactTransfer.java EPPContactUpdate.java EPPDomainBase.java EPPDomainCreate.java EPPDomainRenew.java EPPDomainTransfer.java EPPDomainUpdate.java EPPHostBase.java EPPHostCreate.java EPPHostUpdate.java EPPPoll.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample Index: EPPContactBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactBase.java,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** EPPContactBase.java 28 Sep 2001 16:23:38 -0000 1.8 --- EPPContactBase.java 3 May 2002 17:05:58 -0000 1.8.2.1 *************** *** 35,38 **** --- 35,41 ---- import org.openrtk.idl.epp.epp_XMLException; import org.openrtk.idl.epp.contact.*; + import org.openrtk.idl.epp.epp_Exception; + import org.openrtk.idl.epp.epp_XMLException; + import org.openrtk.idl.epp.epp_TransferStatusType; import org.w3c.dom.*; *************** *** 51,76 **** */ 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. *************** *** 175,179 **** 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(); } *************** *** 186,189 **** --- 168,207 ---- initContactStatusHash(); return (epp_ContactStatusType) contact_status_hash_.get(s); + } + + public static epp_ContactTrnData getTrnData(NodeList transfer_data_list) + throws epp_XMLException + { + epp_ContactTrnData trn_data = new epp_ContactTrnData(); + + for (int count = 0; count < transfer_data_list.getLength(); count++) + { + Node a_node = transfer_data_list.item(count); + + if ( a_node.getNodeName().equals("contact:id") ) { trn_data.m_id = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("contact:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("contact:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("contact:trStatus") ) + { + String status_value = a_node.getFirstChild().getNodeValue(); + if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) + { + throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); + } + else + { + trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); + } + + } + + if ( a_node.getNodeName().equals("contact:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("contact:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } + + } + + return trn_data; } Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** EPPContactTransfer.java 28 Sep 2001 16:23:38 -0000 1.6 --- EPPContactTransfer.java 3 May 2002 17:05:58 -0000 1.6.2.1 *************** *** 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"); *************** *** 236,266 **** } ! for (int count = 0; count < contact_transfer_data_list.getLength(); count++) ! { ! Node a_node = contact_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("contact:id") ) { action_response_.m_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("contact:reID") ) { action_response_.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acID") ) { action_response_.m_action_client_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("contact:trStatus") ) ! { ! String status_value = a_node.getFirstChild().getNodeValue(); ! if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) ! { ! throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); ! } ! else ! { ! action_response_.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); ! } ! ! } ! ! if ( a_node.getNodeName().equals("contact:reDate") ) { action_response_.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acDate") ) { action_response_.m_action_date = a_node.getFirstChild().getNodeValue(); } ! ! } } --- 232,236 ---- } ! action_response_.m_trn_data = getTrnData(contact_transfer_data_list); } Index: EPPContactUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactUpdate.java,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** EPPContactUpdate.java 28 Sep 2001 16:23:38 -0000 1.6 --- EPPContactUpdate.java 3 May 2002 17:05:58 -0000 1.6.2.1 *************** *** 213,221 **** 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 ) { --- 213,217 ---- 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.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** EPPDomainBase.java 28 Sep 2001 16:23:38 -0000 1.7 --- EPPDomainBase.java 3 May 2002 17:05:59 -0000 1.7.2.1 *************** *** 34,39 **** --- 34,44 ---- import com.tucows.oxrs.epp.rtk.*; import org.openrtk.idl.epp.domain.*; + import org.openrtk.idl.epp.epp_Exception; + import org.openrtk.idl.epp.epp_XMLException; + import org.openrtk.idl.epp.epp_TransferStatusType; import org.w3c.dom.Element; + import org.w3c.dom.NodeList; + import org.w3c.dom.Node; /** *************** *** 51,100 **** 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" - }; /** --- 56,62 ---- *************** *** 166,170 **** 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(); } *************** *** 175,179 **** 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(); } *************** *** 188,190 **** --- 150,188 ---- } + public static epp_DomainTrnData getTrnData(NodeList transfer_data_list) + throws epp_XMLException + { + epp_DomainTrnData trn_data = new epp_DomainTrnData(); + + for (int count = 0; count < transfer_data_list.getLength(); count++) + { + Node a_node = transfer_data_list.item(count); + + if ( a_node.getNodeName().equals("domain:name") ) { trn_data.m_name = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("domain:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("domain:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("domain:trStatus") ) + { + String status_value = a_node.getFirstChild().getNodeValue(); + if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) + { + throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); + } + else + { + trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); + } + + } + + if ( a_node.getNodeName().equals("domain:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("domain:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("domain:exDate") ) { trn_data.m_expiration_date = a_node.getFirstChild().getNodeValue(); } + + } + + return trn_data; + } } Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** EPPDomainCreate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPDomainCreate.java 3 May 2002 17:05:59 -0000 1.5.2.1 *************** *** 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: EPPDomainRenew.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainRenew.java,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** EPPDomainRenew.java 24 Jul 2001 17:54:23 -0000 1.5 --- EPPDomainRenew.java 3 May 2002 17:05:59 -0000 1.5.2.1 *************** *** 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.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** EPPDomainTransfer.java 24 Jul 2001 17:54:23 -0000 1.5 --- EPPDomainTransfer.java 3 May 2002 17:05:59 -0000 1.5.2.1 *************** *** 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()); } *************** *** 183,187 **** String request_xml; ! try { request_xml = createXMLFromDoc(doc); --- 179,183 ---- String request_xml; ! try { request_xml = createXMLFromDoc(doc); *************** *** 242,273 **** } ! for (int count = 0; count < domain_transfer_data_list.getLength(); count++) ! { ! Node a_node = domain_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("domain:name") ) { action_response_.m_name = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("domain:reID") ) { action_response_.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acID") ) { action_response_.m_action_client_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("domain:trStatus") ) ! { ! String status_value = a_node.getFirstChild().getNodeValue(); ! if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) ! { ! throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); ! } ! else ! { ! action_response_.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); ! } ! ! } ! ! if ( a_node.getNodeName().equals("domain:reDate") ) { action_response_.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acDate") ) { action_response_.m_action_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:exDate") ) { action_response_.m_expiration_date = a_node.getFirstChild().getNodeValue(); } ! ! } } --- 238,242 ---- } ! action_response_.m_trn_data = getTrnData(domain_transfer_data_list); } Index: EPPDomainUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainUpdate.java,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** EPPDomainUpdate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPDomainUpdate.java 3 May 2002 17:05:59 -0000 1.5.2.1 *************** *** 236,240 **** 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()]); } } --- 236,240 ---- 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()); } } *************** *** 253,261 **** 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 ) { --- 253,257 ---- 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.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** EPPHostBase.java 28 Sep 2001 16:23:38 -0000 1.7 --- EPPHostBase.java 3 May 2002 17:05:59 -0000 1.7.2.1 *************** *** 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.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** EPPHostCreate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPHostCreate.java 3 May 2002 17:05:59 -0000 1.5.2.1 *************** *** 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.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** EPPHostUpdate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPHostUpdate.java 3 May 2002 17:05:59 -0000 1.5.2.1 *************** *** 210,218 **** 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()]); } } --- 210,214 ---- 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()); } } *************** *** 231,239 **** 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 ) { --- 227,231 ---- 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: EPPPoll.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPPoll.java,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** EPPPoll.java 24 Jul 2001 17:54:23 -0000 1.5 --- EPPPoll.java 3 May 2002 17:05:59 -0000 1.5.2.1 *************** *** 163,169 **** * then the RTK property "poll.parser.extension.packages" will be used * to supply other package names for searching.</p> ! * So, let's say the first child of resData is "domain:transfer". * Non-alphanumeric characters are stripped out of the tag name and ! * the parser class "domaintransfer" is searched for first in * "com.tucows.oxrs.epp.rtk.xml.poll". It turns out that this class * is found in this location, so searching stops there. EPPPoll --- 163,169 ---- * then the RTK property "poll.parser.extension.packages" will be used * to supply other package names for searching.</p> ! * So, let's say the first child of resData is "domain:trnData". * Non-alphanumeric characters are stripped out of the tag name and ! * the parser class "domaintrnData" is searched for first in * "com.tucows.oxrs.epp.rtk.xml.poll". It turns out that this class * is found in this location, so searching stops there. EPPPoll *************** *** 172,176 **** * epp_PollResData (including the union inside there). This * data is then retrieved and put into m_res_data of epp_PollRsp.</P> ! * If "domaintransfer" was not found in the default package, then * the RTK property "poll.parser.extension.packages" is loaded. This * must be a comma separated list of packages names in which the class --- 172,176 ---- * epp_PollResData (including the union inside there). This * data is then retrieved and put into m_res_data of epp_PollRsp.</P> ! * If "domaintrnData" was not found in the default package, then * the RTK property "poll.parser.extension.packages" is loaded. This * must be a comma separated list of packages names in which the class |
From: Daniel M. <tub...@us...> - 2002-05-03 17:06:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/org/openrtk/idl/epp Modified Files: Tag: epp-0402 epp_TransferOpType.java epp_TransferStatusType.java Added Files: Tag: epp-0402 epp_Poll.java epp_PollOpType.java epp_PollOperations.java epp_PollReq.java epp_PollResData.java epp_PollResDataOperations.java epp_PollRsp.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample --- NEW FILE: epp_PollResDataOperations.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_PollResData is extended by any classes that which * to represent poll response data.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_PollResDataOperations.java,v 1.1.2.1 2002/05/03 17:05:59 tubadanm Exp $<br> * $Revision: 1.1.2.1 $<br> * $Date: 2002/05/03 17:05:59 $<br> * @see org.openrtk.idl.epp.epp_PollResData */ public interface epp_PollResDataOperations { // the subinterface. String getType (); } // interface epp_PollResDataOperations 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.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** epp_TransferOpType.java 18 Dec 2001 15:59:37 -0000 1.7 --- epp_TransferOpType.java 3 May 2002 17:05:59 -0000 1.7.2.1 *************** *** 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 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.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_TransferStatusType.java 4 Dec 2001 22:32:50 -0000 1.6 --- epp_TransferStatusType.java 3 May 2002 17:05:59 -0000 1.6.2.1 *************** *** 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: Daniel M. <tub...@us...> - 2002-05-03 17:06:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/com/tucows/oxrs/epp/rtk/xml/poll Modified Files: Tag: epp-0402 contacttrnData.java domaintrnData.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample Index: contacttrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/contacttrnData.java,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** contacttrnData.java 24 Jul 2001 18:12:07 -0000 1.1 --- contacttrnData.java 3 May 2002 17:05:59 -0000 1.1.2.1 *************** *** 1,6 **** --- 1,30 ---- + /* + ** + ** EPP RTK Java + ** Copyright (C) 2002, Tucows, Inc. + ** + ** + ** This library is free software; you can redistribute it and/or + ** modify it under the terms of the GNU Lesser General Public + ** License as published by the Free Software Foundation; either + ** version 2.1 of the License, or (at your option) any later version. + ** + ** This library is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + ** Lesser General Public License for more details. + ** + ** You should have received a copy of the GNU Lesser General Public + ** License along with this library; if not, write to the Free Software + ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + ** + */ + package com.tucows.oxrs.epp.rtk.xml.poll; import com.tucows.oxrs.epp.rtk.xml.EPPXMLBase; + import com.tucows.oxrs.epp.rtk.xml.EPPContactBase; import org.openrtk.idl.epp.*; + import org.openrtk.idl.epp.contact.epp_ContactTrnData; import org.w3c.dom.*; *************** *** 9,18 **** * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_contact_transfer member set. */ public class contacttrnData extends EPPXMLBase implements PollResData { ! private epp_PollResData poll_res_data_; /** --- 33,45 ---- * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_contact_transfer member set.</p> ! * $Header$<br> ! * $Revision$<br> ! * $Date$<br> */ public class contacttrnData extends EPPXMLBase implements PollResData { ! private epp_ContactTrnData poll_res_data_; /** *************** *** 26,35 **** NodeList contact_transfer_data_list = res_data_sub_node.getChildNodes(); ! epp_PollResData poll_res_data_ = new epp_PollResData(); ! ! epp_PollResDataUnion poll_res_data_union = new epp_PollResDataUnion(); ! ! epp_PollContactTransfer contact_transfer = new epp_PollContactTransfer(); ! debug(DEBUG_LEVEL_TWO,method_name,"contact:trnData's node count ["+contact_transfer_data_list.getLength()+"]"); --- 53,58 ---- NodeList contact_transfer_data_list = res_data_sub_node.getChildNodes(); ! poll_res_data_ = new epp_ContactTrnData(); ! debug(DEBUG_LEVEL_TWO,method_name,"contact:trnData's node count ["+contact_transfer_data_list.getLength()+"]"); *************** *** 39,62 **** } ! for (int count = 0; count < contact_transfer_data_list.getLength(); count++) ! { ! Node a_node = contact_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("contact:name") ) { contact_transfer.m_contact_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("contact:authInfo") ) ! { ! contact_transfer.m_auth_info = new epp_AuthInfo(); ! contact_transfer.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); ! contact_transfer.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); ! contact_transfer.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); ! } - } - - poll_res_data_union.m_contact_transfer(contact_transfer); - - poll_res_data_.m_type = epp_PollResDataType.CONTACT_TRANSFER; - poll_res_data_.m_data = poll_res_data_union; } --- 62,67 ---- } ! poll_res_data_ = EPPContactBase.getTrnData(contact_transfer_data_list); } Index: domaintrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/domaintrnData.java,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** domaintrnData.java 24 Jul 2001 18:12:07 -0000 1.1 --- domaintrnData.java 3 May 2002 17:05:59 -0000 1.1.2.1 *************** *** 1,6 **** --- 1,30 ---- + /* + ** + ** EPP RTK Java + ** Copyright (C) 2002, Tucows, Inc. + ** + ** + ** This library is free software; you can redistribute it and/or + ** modify it under the terms of the GNU Lesser General Public + ** License as published by the Free Software Foundation; either + ** version 2.1 of the License, or (at your option) any later version. + ** + ** This library is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + ** Lesser General Public License for more details. + ** + ** You should have received a copy of the GNU Lesser General Public + ** License along with this library; if not, write to the Free Software + ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + ** + */ + package com.tucows.oxrs.epp.rtk.xml.poll; import com.tucows.oxrs.epp.rtk.xml.EPPXMLBase; + import com.tucows.oxrs.epp.rtk.xml.EPPDomainBase; import org.openrtk.idl.epp.*; + import org.openrtk.idl.epp.domain.epp_DomainTrnData; import org.w3c.dom.*; *************** *** 10,19 **** * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_domain_transfer member set. */ public class domaintrnData extends EPPXMLBase implements PollResData { ! private epp_PollResData poll_res_data_; --- 34,46 ---- * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_domain_transfer member set.</p> ! * $Header$<br> ! * $Revision$<br> ! * $Date$<br> */ public class domaintrnData extends EPPXMLBase implements PollResData { ! private epp_DomainTrnData poll_res_data_; *************** *** 28,36 **** NodeList domain_transfer_data_list = res_data_node.getChildNodes(); ! epp_PollResData poll_res_data_ = new epp_PollResData(); ! ! epp_PollResDataUnion poll_res_data_union = new epp_PollResDataUnion(); ! ! epp_PollDomainTransfer domain_transfer = new epp_PollDomainTransfer(); debug(DEBUG_LEVEL_TWO,method_name,"domain:transfer's node count ["+domain_transfer_data_list.getLength()+"]"); --- 55,59 ---- NodeList domain_transfer_data_list = res_data_node.getChildNodes(); ! poll_res_data_ = new epp_DomainTrnData(); debug(DEBUG_LEVEL_TWO,method_name,"domain:transfer's node count ["+domain_transfer_data_list.getLength()+"]"); *************** *** 41,64 **** } ! for (int count = 0; count < domain_transfer_data_list.getLength(); count++) ! { ! Node a_node = domain_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("domain:name") ) { domain_transfer.m_domain_name = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("domain:authInfo") ) ! { ! domain_transfer.m_auth_info = new epp_AuthInfo(); ! domain_transfer.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); ! domain_transfer.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); ! domain_transfer.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); ! } - } - - poll_res_data_union.m_domain_transfer(domain_transfer); - - poll_res_data_.m_type = epp_PollResDataType.DOMAIN_TRANSFER; - poll_res_data_.m_data = poll_res_data_union; } --- 64,69 ---- } ! poll_res_data_ = EPPDomainBase.getTrnData(domain_transfer_data_list); } |
From: Daniel M. <tub...@us...> - 2002-05-03 17:06:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/org/openrtk/idl/epp/domain Modified Files: Tag: epp-0402 epp_DomainContactType.java epp_DomainPeriodUnitType.java epp_DomainStatusType.java epp_DomainTransferRsp.java Added Files: Tag: epp-0402 epp_DomainTrnData.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample --- NEW FILE: epp_DomainTrnData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp.domain; /** * FIXME!</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainTrnData.java,v 1.2.2.1 2002/05/03 17:05:59 tubadanm Exp $<br> * $Revision: 1.2.2.1 $<br> * $Date: 2002/05/03 17:05:59 $<br> * @see org.openrtk.idl.epp.domain.epp_DomainInfoReq */ public class epp_DomainTrnData extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.portable.IDLEntity, org.openrtk.idl.epp.epp_PollResData { /** * Constant variable defined by IDLs.</p> * Used when this classes is used to hold the poll response * data pertaining to contact transfer notifications. The value * of this constant links this class to a set of poll response * data. */ public static final String m_type = "domain:trnData"; /** * Access method for the m_type constant. * @see #m_type */ public String getType() { return m_type; } /** * The name of the domain object in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * The transfer status associated with the domain object. * @see #setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType) * @see #getTransferStatus() */ public org.openrtk.idl.epp.epp_TransferStatusType m_transfer_status = null; /** * The identifier of the client that requested the domain object transfer. * @see #setRequestClientId(String) * @see #getRequestClientId() */ public String m_request_client_id = null; /** * The identifier of the client that should act upon the domain transfer request. * @see #setActionClientId(String) * @see #getActionClientId() */ public String m_action_client_id = null; /** * The date that the domain transfer was requested. * @see #setRequestDate(String) * @see #getRequestDate() */ public String m_request_date = null; /** * The required or completed action date to the domain transfer request. * @see #setActionDate(String) * @see #getActionDate() */ public String m_action_date = null; /** * The expiration date of the domain object. * @see #setExpirationDate(String) * @see #getExpirationDate() */ public String m_expiration_date = null; /** * Empty constructor */ public epp_DomainTrnData () { } // ctor /** * The constructor with initializing variables. * @param _m_name The name of the domain object in the registry * @param _m_transfer_status The transfer status associated with the domain object * @param _m_request_client_id The identifier of the client that requested the domain object transfer * @param _m_action_client_id The identifier of the client that should act upon the domain transfer request * @param _m_request_date The date that the domain transfer was requested * @param _m_action_date The required or completed action date to the domain transfer request * @param _m_expiration_date The expiration date of the domain object */ public epp_DomainTrnData (String _m_name, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_action_client_id, String _m_request_date, String _m_action_date, String _m_expiration_date) { m_name = _m_name; m_transfer_status = _m_transfer_status; m_request_client_id = _m_request_client_id; m_action_client_id = _m_action_client_id; m_request_date = _m_request_date; m_action_date = _m_action_date; m_expiration_date = _m_expiration_date; } // ctor /** * Accessor method for the name of the domain object in the registry * @param value The domain name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the domain object in the registry * @return The domain name * @see #m_name */ public String getName() { return m_name; } /** * Accessor method for the transfer status associated with the domain object * @param value The domain transfer status * @see #m_transfer_status */ public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { m_transfer_status = value; } /** * Accessor method for the transfer status associated with the domain object * @return The domain transfer status * @see #m_transfer_status */ public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } /** * Accessor method for the identifier of the client that requested the domain object transfer * @param value The domain request client id * @see #m_request_client_id */ public void setRequestClientId(String value) { m_request_client_id = value; } /** * Accessor method for the identifier of the client that requested the domain object transfer * @return The domain request client id * @see #m_request_client_id */ public String getRequestClientId() { return m_request_client_id; } /** * Accessor method for the identifier of the client that should act upon the domain transfer request * @param value The domain action client id * @see #m_action_client_id */ public void setActionClientId(String value) { m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the domain transfer request * @return The domain action client id * @see #m_action_client_id */ public String getActionClientId() { return m_action_client_id; } /** * Accessor method for the date that the domain transfer was requested * @param value The domain transfer request date * @see #m_request_date */ public void setRequestDate(String value) { m_request_date = value; } /** * Accessor method for the date that the domain transfer was requested * @return The domain transfer request date * @see #m_request_date */ public String getRequestDate() { return m_request_date; } /** * Accessor method for the required or completed action date to the domain transfer request * @param value The action date to the domain transfer request * @see #m_action_date */ public void setActionDate(String value) { m_action_date = value; } /** * Accessor method for the required or completed action date to the domain transfer request * @return The action date to the domain transfer request * @see #m_action_date */ public String getActionDate() { return m_action_date; } /** * Accessor method for the expiration date of the domain object * @param value The domain expiration date * @see #m_expiration_date */ public void setExpirationDate(String value) { m_expiration_date = value; } /** * Accessor method for the expiration date of the domain object * @return The domain expiration date * @see #m_expiration_date */ public String getExpirationDate() { return m_expiration_date; } /** * Method required by ObjectImpl and the CORBA Object interface. * Always returns null. It's only here to satisfy the CORBA requirements * of the IDL usage. */ public String[] _ids() { return null; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_name ["+m_name+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_action_client_id ["+m_action_client_id+"] m_request_date ["+m_request_date+"] m_action_date ["+m_action_date+"] m_expiration_date ["+m_expiration_date+"] }"; } } // interface epp_DomainTrnData 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.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** epp_DomainContactType.java 4 Dec 2001 22:31:06 -0000 1.7 --- epp_DomainContactType.java 3 May 2002 17:05:59 -0000 1.7.2.1 *************** *** 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_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.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_DomainPeriodUnitType.java 4 Dec 2001 22:31:06 -0000 1.6 --- epp_DomainPeriodUnitType.java 3 May 2002 17:05:59 -0000 1.6.2.1 *************** *** 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.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_DomainStatusType.java 4 Dec 2001 22:31:06 -0000 1.6 --- epp_DomainStatusType.java 3 May 2002 17:05:59 -0000 1.6.2.1 *************** *** 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 Index: epp_DomainTransferRsp.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainTransferRsp.java,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** epp_DomainTransferRsp.java 4 Dec 2001 22:31:06 -0000 1.7 --- epp_DomainTransferRsp.java 3 May 2002 17:05:59 -0000 1.7.2.1 *************** *** 43,87 **** public org.openrtk.idl.epp.epp_Response m_rsp = null; /** ! * The name of the domain object in the registry. ! * @see #setName(String) ! * @see #getName() ! */ ! public String m_name = null; ! /** ! * The transfer status associated with the domain object. ! * @see #setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType) ! * @see #getTransferStatus() ! */ ! public org.openrtk.idl.epp.epp_TransferStatusType m_transfer_status = null; ! /** ! * The identifier of the client that requested the domain object transfer. ! * @see #setRequestClientId(String) ! * @see #getRequestClientId() ! */ ! public String m_request_client_id = null; ! /** ! * The identifier of the client that should act upon the domain transfer request. ! * @see #setActionClientId(String) ! * @see #getActionClientId() ! */ ! public String m_action_client_id = null; ! /** ! * The date that the domain transfer was requested. ! * @see #setRequestDate(String) ! * @see #getRequestDate() ! */ ! public String m_request_date = null; ! /** ! * The required or completed action date to the domain transfer request. ! * @see #setActionDate(String) ! * @see #getActionDate() ! */ ! public String m_action_date = null; ! /** ! * The expiration date of the domain object. ! * @see #setExpirationDate(String) ! * @see #getExpirationDate() */ ! public String m_expiration_date = null; /** --- 43,51 ---- public org.openrtk.idl.epp.epp_Response m_rsp = null; /** ! * The transfer data of the domain in the registry. ! * @see #setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) ! * @see #getTrnData() */ ! public org.openrtk.idl.epp.domain.epp_DomainTrnData m_trn_data = null; /** *************** *** 102,116 **** * @param _m_action_date The required or completed action date to the domain transfer request * @param _m_expiration_date The expiration date of the domain object */ public epp_DomainTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_name, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_action_client_id, String _m_request_date, String _m_action_date, String _m_expiration_date) { m_rsp = _m_rsp; ! m_name = _m_name; ! m_transfer_status = _m_transfer_status; ! m_request_client_id = _m_request_client_id; ! m_action_client_id = _m_action_client_id; ! m_request_date = _m_request_date; ! m_action_date = _m_action_date; ! m_expiration_date = _m_expiration_date; } // ctor --- 66,93 ---- * @param _m_action_date The required or completed action date to the domain transfer request * @param _m_expiration_date The expiration date of the domain object + * @deprecated Please use epp_DomainTransferRsp(epp_Response, epp_DomainTrnData) instead */ public epp_DomainTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_name, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_action_client_id, String _m_request_date, String _m_action_date, String _m_expiration_date) { m_rsp = _m_rsp; ! m_trn_data = new org.openrtk.idl.epp.domain.epp_DomainTrnData(); ! m_trn_data.m_name = _m_name; ! m_trn_data.m_transfer_status = _m_transfer_status; ! m_trn_data.m_request_client_id = _m_request_client_id; ! m_trn_data.m_action_client_id = _m_action_client_id; ! m_trn_data.m_request_date = _m_request_date; ! m_trn_data.m_action_date = _m_action_date; ! m_trn_data.m_expiration_date = _m_expiration_date; ! } // ctor ! ! /** ! * The constructor with initializing variables. ! * @param _m_rsp The common and generic response element ! * @param _m_trn_data The transfer data for the domain object in the registry ! */ ! public epp_DomainTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, org.openrtk.idl.epp.domain.epp_DomainTrnData _m_trn_data) ! { ! m_rsp = _m_rsp; ! m_trn_data = _m_trn_data; } // ctor *************** *** 129,221 **** /** * Accessor method for the name of the domain object in the registry * @param value The domain name ! * @see #m_name */ ! public void setName(String value) { m_name = value; } /** * Accessor method for the name of the domain object in the registry * @return The domain name ! * @see #m_name */ ! public String getName() { return m_name; } /** * Accessor method for the transfer status associated with the domain object * @param value The domain transfer status ! * @see #m_transfer_status */ ! public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { m_transfer_status = value; } /** * Accessor method for the transfer status associated with the domain object * @return The domain transfer status ! * @see #m_transfer_status */ ! public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } /** * Accessor method for the identifier of the client that requested the domain object transfer * @param value The domain request client id ! * @see #m_request_client_id */ ! public void setRequestClientId(String value) { m_request_client_id = value; } /** * Accessor method for the identifier of the client that requested the domain object transfer * @return The domain request client id ! * @see #m_request_client_id */ ! public String getRequestClientId() { return m_request_client_id; } /** * Accessor method for the identifier of the client that should act upon the domain transfer request * @param value The domain action client id ! * @see #m_action_client_id */ ! public void setActionClientId(String value) { m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the domain transfer request * @return The domain action client id ! * @see #m_action_client_id */ ! public String getActionClientId() { return m_action_client_id; } /** * Accessor method for the date that the domain transfer was requested * @param value The domain transfer request date ! * @see #m_request_date */ ! public void setRequestDate(String value) { m_request_date = value; } /** * Accessor method for the date that the domain transfer was requested * @return The domain transfer request date ! * @see #m_request_date */ ! public String getRequestDate() { return m_request_date; } /** * Accessor method for the required or completed action date to the domain transfer request * @param value The action date to the domain transfer request ! * @see #m_action_date */ ! public void setActionDate(String value) { m_action_date = value; } /** * Accessor method for the required or completed action date to the domain transfer request * @return The action date to the domain transfer request ! * @see #m_action_date */ ! public String getActionDate() { return m_action_date; } /** * Accessor method for the expiration date of the domain object * @param value The domain expiration date ! * @see #m_expiration_date */ ! public void setExpirationDate(String value) { m_expiration_date = value; } /** * Accessor method for the expiration date of the domain object * @return The domain expiration date ! * @see #m_expiration_date */ ! public String getExpirationDate() { return m_expiration_date; } /** --- 106,225 ---- /** + * Accessor method for the transfer data of the domain object in the registry + * @param value The domain's transfer data + * @see #m_trn_data + */ + public void setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData value) { m_trn_data = value; } + /** + * Accessor method for the transfer data of the domain object in the registry + * @return The domain's transfer data + * @see #m_trn_data + */ + public org.openrtk.idl.epp.domain.epp_DomainTrnData getTrnData() { return m_trn_data; } + + /** * Accessor method for the name of the domain object in the registry * @param value The domain name ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ ! public void setName(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_DomainTrnData(); } m_trn_data.m_name = value; } /** * Accessor method for the name of the domain object in the registry * @return The domain name ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getName() { return m_trn_data == null ? null : m_trn_data.m_name; } /** * Accessor method for the transfer status associated with the domain object * @param value The domain transfer status ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ ! public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { if ( m_trn_data == null ) { m_trn_data = new epp_DomainTrnData(); } m_trn_data.m_transfer_status = value; } /** * Accessor method for the transfer status associated with the domain object * @return The domain transfer status ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_trn_data == null ? null : m_trn_data.m_transfer_status; } /** * Accessor method for the identifier of the client that requested the domain object transfer * @param value The domain request client id ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ ! public void setRequestClientId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_DomainTrnData(); } m_trn_data.m_request_client_id = value; } /** * Accessor method for the identifier of the client that requested the domain object transfer * @return The domain request client id ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getRequestClientId() { return m_trn_data == null ? null : m_trn_data.m_request_client_id; } /** * Accessor method for the identifier of the client that should act upon the domain transfer request * @param value The domain action client id ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ ! public void setActionClientId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_DomainTrnData(); } m_trn_data.m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the domain transfer request * @return The domain action client id ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getActionClientId() { return m_trn_data == null ? null : m_trn_data.m_action_client_id; } /** * Accessor method for the date that the domain transfer was requested * @param value The domain transfer request date ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ ! public void setRequestDate(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_DomainTrnData(); } m_trn_data.m_request_date = value; } /** * Accessor method for the date that the domain transfer was requested * @return The domain transfer request date ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getRequestDate() { return m_trn_data == null ? null : m_trn_data.m_request_date; } /** * Accessor method for the required or completed action date to the domain transfer request * @param value The action date to the domain transfer request ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ ! public void setActionDate(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_DomainTrnData(); } m_trn_data.m_action_date = value; } /** * Accessor method for the required or completed action date to the domain transfer request * @return The action date to the domain transfer request ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getActionDate() { return m_trn_data == null ? null : m_trn_data.m_action_date; } /** * Accessor method for the expiration date of the domain object * @param value The domain expiration date ! * @see #m_trn_data ! * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ ! public void setExpirationDate(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_DomainTrnData(); } m_trn_data.m_expiration_date = value; } /** * Accessor method for the expiration date of the domain object * @return The domain expiration date ! * @see #m_trn_data ! * @deprecated Please use getTrnData() instead */ ! public String getExpirationDate() { return m_trn_data == null ? null : m_trn_data.m_expiration_date; } /** *************** *** 224,228 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_name ["+m_name+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_action_client_id ["+m_action_client_id+"] m_request_date ["+m_request_date+"] m_action_date ["+m_action_date+"] m_expiration_date ["+m_expiration_date+"] }"; } } // class epp_DomainTransferRsp --- 228,232 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_trn_data ["+m_trn_data+"] }"; } } // class epp_DomainTransferRsp |
From: Daniel M. <tub...@us...> - 2002-05-03 17:06:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/com/tucows/oxrs/epp/rtk/example Modified Files: Tag: epp-0402 DomainExample.java SessionExample.java Added Files: Tag: epp-0402 PollExample.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample --- NEW FILE: PollExample.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/Attic/PollExample.java,v 1.1.2.1 2002/05/03 17:05:58 tubadanm Exp $ * $Revision: 1.1.2.1 $ * $Date: 2002/05/03 17:05:58 $ */ package com.tucows.oxrs.epp.rtk.example; import java.util.*; import java.io.*; import com.tucows.oxrs.epp.rtk.*; import com.tucows.oxrs.epp.rtk.xml.*; import org.openrtk.idl.epp.*; import org.openrtk.idl.epp.domain.*; import org.openrtk.idl.epp.host.*; import org.openrtk.idl.epp.contact.*; /** * Example code for a typical logical EPP sessions. * For more information on the creation of Domain, Host and Contact * objects, please see their respective example Java source files. * * @author Daniel Manley * @version $Revision: 1.1.2.1 $ $Date: 2002/05/03 17:05:58 $ * @see com.tucows.oxrs.epp.rtk.example.DomainExample * @see com.tucows.oxrs.epp.rtk.example.HostExample * @see com.tucows.oxrs.epp.rtk.example.ContactExample **/ public class PollExample { private static String USAGE = "Usage: com.tucows.oxrs.epp.rtk.example.PollExample epp_host_name epp_host_port epp_client_id epp_password"; /** * Main of the example. */ public static void main(String args[]) { // This date will be used in the client trid // because the .biz registry requires unique // trid's per client session. Date current_time = new Date(); System.out.println("Start of the Poll example"); try { epp_Command command_data = null; if (args.length < 5) { System.err.println(USAGE); System.exit(1); } // calling setDebugLevel() with no params makes the RTK // read the "rtk.debuglevel" property from rtk.properties file RTKBase.setDebugLevel(); String epp_host_name = args[0]; String epp_host_port_string = args[1]; String epp_client_id = args[2]; String epp_password = args[3]; int epp_host_port = Integer.parseInt(epp_host_port_string); EPPClient epp_client = new EPPClient(epp_host_name, epp_host_port, epp_client_id, epp_password); epp_client.setLang("en"); System.out.println("Connecting to the EPP Server and getting the greeting"); /* * Uncomment following line if you don't want to send RTK version * number on Login. Although Liberty RMS recomends to use this unspec * tag on Login request. */ //epp_client.setVersionSentOnLogin( false ); epp_Greeting greeting = epp_client.connectAndGetGreeting(); System.out.println("greeting's server: ["+greeting.getServerId()+"]"); System.out.println("greeting's server-date: ["+greeting.getServerDate()+"]"); if ( greeting.getVersions() != null && greeting.getVersions().length > 0 ) { System.out.println("greeting's version: ["+greeting.getVersions()[0]+"]"); } if ( greeting.getLangs() != null && greeting.getLangs().length > 0 ) { System.out.println("greeting's lang: ["+greeting.getLangs()[0]+"]"); } // The .biz registry requires unique client trid's for // a session, so we're using the date here to keep it unique String client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); command_data = new epp_Command(); command_data.setClientTrid( client_trid ); System.out.println("Logging into the EPP Server"); epp_client.login(client_trid); boolean keep_polling = true; while ( keep_polling ) { String message_id = ""; int response_code = 1000; epp_PollRsp poll_response; epp_Response response; // *************************** // Poll (for waiting messages) // *************************** System.out.println("Polling the server..."); current_time = new Date(); client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); poll_response = epp_client.poll(client_trid); response = poll_response.getRsp(); System.out.println("Poll results: "+response); System.out.println("Poll ResData: "+poll_response.getResData()); message_id = response.getResults()[0].getId(); response_code = response.getResults()[0].getCode(); if ( response_code != epp_Session.EPP_COMMAND_COMPLETED_SUCCESSFULLY_NO_MESSAGES ) { BufferedReader buffed_reader = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Do you wish to acknowledge this poll message [y]? "); String answer = buffed_reader.readLine(); while ( ( answer != null ) && ( answer.length() != 0 ) && ( ! answer.equalsIgnoreCase("y") ) && ( ! answer.equalsIgnoreCase("n") ) ) { answer = buffed_reader.readLine(); } if ( ! answer.equalsIgnoreCase("n") ) { System.out.println("Going to acknowledge poll message id ["+message_id+"]"); // *************************** // Poll (acknowledge a message) // *************************** System.out.println("Polling the server..."); current_time = new Date(); client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); poll_response = epp_client.poll(client_trid, message_id); response = poll_response.getRsp(); System.out.println("Poll results: "+response); System.out.println("Poll ResData: "+poll_response.getResData()); } else { System.out.println("Going to reject the transfer"); keep_polling = false; } } else { keep_polling = false; } } // All done with this session, so let's log out... System.out.println("Logging out from the EPP Server"); epp_client.logout(client_trid); // ... and disconnect System.out.println("Disconnecting from the EPP Server"); epp_client.disconnect(); } catch ( epp_XMLException xcp ) { System.err.println("epp_XMLException! ["+xcp.getErrorMessage()+"]"); } catch ( epp_Exception xcp ) { System.err.println("epp_Exception!"); epp_Result[] results = xcp.getDetails(); // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresult: ["+results[0]+"]"); } catch ( Exception xcp ) { System.err.println("Exception! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } } } Index: DomainExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/DomainExample.java,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** DomainExample.java 18 Dec 2001 02:56:12 -0000 1.9 --- DomainExample.java 3 May 2002 17:05:58 -0000 1.9.2.1 *************** *** 802,806 **** System.out.println("DomainTransfer results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); ! System.out.println("DomainTransfer Results: transfer status ["+domain_transfer_response.m_transfer_status+"]"); } catch ( epp_XMLException xcp ) --- 802,806 ---- System.out.println("DomainTransfer results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); ! System.out.println("DomainTransfer Results: transfer status ["+domain_transfer_response.m_trn_data.m_transfer_status+"]"); } catch ( epp_XMLException xcp ) Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/SessionExample.java,v retrieving revision 1.16 retrieving revision 1.16.2.1 diff -C2 -d -r1.16 -r1.16.2.1 *** SessionExample.java 18 Dec 2001 02:56:12 -0000 1.16 --- SessionExample.java 3 May 2002 17:05:58 -0000 1.16.2.1 *************** *** 169,172 **** --- 169,173 ---- epp_Response response = poll_response.getRsp(); System.out.println("Poll results: "+response); + System.out.println("Poll ResData: "+poll_response.getResData()); } catch ( epp_XMLException xcp ) *************** *** 559,563 **** epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTransferStatus() )+"]"); // If an exception was thrown to this command, then probably --- 560,564 ---- epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTrnData().getTransferStatus() )+"]"); // If an exception was thrown to this command, then probably *************** *** 803,836 **** // as its nameservers. ! // *************************** ! // Domain Update ! // ! // Adding two nameservers to this domain ! // ! // *************************** ! System.out.println("Creating the Domain Update command"); ! epp_DomainUpdateReq domain_update_request = new epp_DomainUpdateReq(); ! current_time = new Date(); ! client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); ! command_data.setClientTrid( client_trid ); ! domain_update_request.setCmd( command_data ); ! domain_update_request.setName( domain_name ); ! // We determined a little earlier which operations to perform. ! if ( add != null ) ! { ! domain_update_request.setAdd( add ); } ! if ( remove != null ) { ! domain_update_request.setRemove( remove ); } - EPPDomainUpdate domain_update = new EPPDomainUpdate(); - domain_update.setRequestData(domain_update_request); - - domain_update = (EPPDomainUpdate) epp_client.processAction(domain_update); // As long as no exception was thrown, the update was a success --- 804,851 ---- // as its nameservers. ! try ! { ! // *************************** ! // Domain Update ! // ! // Adding two nameservers to this domain ! // ! // *************************** ! System.out.println("Creating the Domain Update command"); ! epp_DomainUpdateReq domain_update_request = new epp_DomainUpdateReq(); ! current_time = new Date(); ! client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); ! command_data.setClientTrid( client_trid ); ! domain_update_request.setCmd( command_data ); ! domain_update_request.setName( domain_name ); ! // We determined a little earlier which operations to perform. ! if ( add != null ) ! { ! domain_update_request.setAdd( add ); ! } ! if ( remove != null ) ! { ! domain_update_request.setRemove( remove ); ! } ! ! EPPDomainUpdate domain_update = new EPPDomainUpdate(); ! domain_update.setRequestData(domain_update_request); ! ! domain_update = (EPPDomainUpdate) epp_client.processAction(domain_update); } ! catch ( epp_Exception xcp ) { ! // If the domain is in a pendingTransfer state, ! // some registries will throw an error when we ! // try to update it. We'll catch it, report it ! // and move on. ! System.err.println("epp_Exception!"); ! epp_Result[] results = xcp.getDetails(); ! System.err.println("\t"+results[0]); } // As long as no exception was thrown, the update was a success *************** *** 905,911 **** epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTransferStatus() )+"]"); ! if ( domain_transfer_response.getTransferStatus() == epp_TransferStatusType.PENDING ) { // hmmm... there's a transfer pending on this domain, --- 920,926 ---- epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTrnData().getTransferStatus() )+"]"); ! if ( domain_transfer_response.getTrnData().getTransferStatus() == epp_TransferStatusType.PENDING ) { // hmmm... there's a transfer pending on this domain, *************** *** 959,963 **** domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTransferStatus() )+"]"); if ( transfer_request.getOp() == epp_TransferOpType.APPROVE ) --- 974,978 ---- domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTrnData().getTransferStatus() )+"]"); if ( transfer_request.getOp() == epp_TransferOpType.APPROVE ) |
From: Daniel M. <tub...@us...> - 2002-05-03 17:06:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv2747/src/com/tucows/oxrs/epp/rtk Modified Files: Tag: epp-0402 RTKBase.java Log Message: Couple of changes... 1. back-ported polling code from main branch 0.5.x to 0.4.x 2. back-ported status array improvements in the org.openrtk... classes and their new toString() methods. updated the EPP... classes to use these changes. 3. created new PollExample class which loops through poll messages and interacts with the user to acknowledge them 4. some improvements to SessionExample Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/RTKBase.java,v retrieving revision 1.12.2.2 retrieving revision 1.12.2.3 diff -C2 -d -r1.12.2.2 -r1.12.2.3 *** RTKBase.java 2 May 2002 15:14:17 -0000 1.12.2.2 --- RTKBase.java 3 May 2002 17:05:58 -0000 1.12.2.3 *************** *** 50,54 **** * RTK Version number. */ ! public static final String RTK_VERSION = "0.4.2"; /** --- 50,54 ---- * RTK Version number. */ ! public static final String RTK_VERSION = "0.4.3"; /** |
From: Daniel M. <tub...@us...> - 2002-05-02 15:35:03
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv22268 Removed Files: Tag: epp-0402 epp_Poll.java epp_PollContactTransfer.java epp_PollDomainTransfer.java epp_PollOpType.java epp_PollOperations.java epp_PollReq.java epp_PollResData.java epp_PollResDataType.java epp_PollResDataUnion.java epp_PollRsp.java Log Message: removing the old polling classes -- will replace them with the polling classes from EPP 0503 --- epp_Poll.java DELETED --- --- epp_PollContactTransfer.java DELETED --- --- epp_PollDomainTransfer.java DELETED --- --- epp_PollOpType.java DELETED --- --- epp_PollOperations.java DELETED --- --- epp_PollReq.java DELETED --- --- epp_PollResData.java DELETED --- --- epp_PollResDataType.java DELETED --- --- epp_PollResDataUnion.java DELETED --- --- epp_PollRsp.java DELETED --- |
From: Daniel M. <tub...@us...> - 2002-05-02 15:14:45
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv11442 Modified Files: Tag: epp-0402 EPPClient.java Log Message: check for null on the transport when disconnecting Index: EPPClient.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/EPPClient.java,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** EPPClient.java 9 Oct 2001 16:52:31 -0000 1.15 --- EPPClient.java 2 May 2002 15:14:42 -0000 1.15.2.1 *************** *** 753,758 **** this.isValid = false; ! transport_.disconnect(); ! transport_ = null; debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); --- 753,761 ---- this.isValid = false; ! if ( transport_ != null ) ! { ! transport_.disconnect(); ! transport_ = null; ! } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); |
From: Daniel M. <tub...@us...> - 2002-05-02 15:14:21
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv11056 Modified Files: Tag: epp-0402 RTKBase.java Log Message: added ability to set the debug's output stream to give the user the ability to redirect debug to a separate file Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/RTKBase.java,v retrieving revision 1.12.2.1 retrieving revision 1.12.2.2 diff -C2 -d -r1.12.2.1 -r1.12.2.2 *** RTKBase.java 4 Apr 2002 18:23:25 -0000 1.12.2.1 --- RTKBase.java 2 May 2002 15:14:17 -0000 1.12.2.2 *************** *** 78,81 **** --- 78,83 ---- private static int debug_level_ = DEBUG_NONE; + private static PrintStream debug_print_stream_ = System.err; + private static Properties rtk_properties_ = null; *************** *** 127,134 **** } /** ! * Accessor method for the version * @return The current debug level */ public static int getDebugLevel() { return debug_level_; } /** --- 129,153 ---- } /** ! * Accessor method for the debug level * @return The current debug level */ public static int getDebugLevel() { return debug_level_; } + /** + * Accessor method for the debug output stream. + * The default is System.err + * @param stream The debug's new output stream + */ + public static void setDebugPrintStream(PrintStream stream) + { + if ( stream != null ) + { + debug_print_stream_ = stream; + } + } + /** + * Accessor method for the debug output stream + * @return The current debug output stream + */ + public static PrintStream getDebugPrintStream() { return debug_print_stream_; } /** *************** *** 146,150 **** if ( debug_level_ >= level ) { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } --- 165,169 ---- if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } *************** *** 166,171 **** if ( debug_level_ >= level ) { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(); } } --- 185,190 ---- if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); } } |
From: Daniel M. <tub...@us...> - 2002-04-04 19:19:03
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory usw-pr-cvs1:/tmp/cvs-serv7154 Modified Files: Tag: epp-0402 VERSION.TXT Log Message: added notes for release 0.4.2 Index: VERSION.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/VERSION.TXT,v retrieving revision 1.17.2.1 retrieving revision 1.17.2.2 diff -C2 -d -r1.17.2.1 -r1.17.2.2 *** VERSION.TXT 4 Apr 2002 18:23:25 -0000 1.17.2.1 --- VERSION.TXT 4 Apr 2002 19:19:00 -0000 1.17.2.2 *************** *** 9,13 **** 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 --- 9,16 ---- epp-rtk-java-0.4.2 - April 4, 2002 ! + Fixed bug in unspec rendering in EPPXMLBase. ! This was preventing the use of the us-rtk-addon ! in commands to the server (such as EPPContactCreate). ! Thanks to Claud Dahl for finding this. epp-rtk-java-0.4.1 - Dec 18, 2001 |