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...> - 2003-03-20 22:21:14
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705/contact In directory sc8-pr-cvs1:/tmp/cvs-serv25179/contact Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705/contact added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-20 22:21:14
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705/host In directory sc8-pr-cvs1:/tmp/cvs-serv25179/host Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705/host added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-20 22:21:14
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705/domain In directory sc8-pr-cvs1:/tmp/cvs-serv25179/domain Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705/domain added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-20 22:20:58
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705 In directory sc8-pr-cvs1:/tmp/cvs-serv25042/epp0705 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705 added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-19 22:37:16
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv18574/example Modified Files: SessionExample.java Log Message: updates for compliance with epp 07/05 Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/SessionExample.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** SessionExample.java 17 Mar 2003 21:42:29 -0000 1.21 --- SessionExample.java 19 Mar 2003 22:37:11 -0000 1.22 *************** *** 122,134 **** epp_client.setLang("en"); - // we use plain socket for this example - // epp_client.setProtocol(EPPClient.PROTOCOL_TCP_TLS); - // epp_client.setProtocol(EPPClient.PROTOCOL_TCP); - 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 RTK recomends to use this unspec * tag on Login request. */ --- 122,130 ---- 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 RTK recomends to use this extension * tag on Login request. */ *************** *** 312,318 **** contact_create_request.setAuthInfo( contact1_auth_info ); ! epp_ContactNameAddress name_address = new epp_ContactNameAddress(); ! name_address.setName( "John Doe" ); ! name_address.setOrg( "ACME Solutions" ); epp_ContactAddress address = new epp_ContactAddress(); address.setStreet1( "100 Centre St" ); --- 308,315 ---- contact_create_request.setAuthInfo( contact1_auth_info ); ! epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; ! name_address[0] = new epp_ContactNameAddress(); ! name_address[0].setName( "John Doe" ); ! name_address[0].setOrg( "ACME Solutions" ); epp_ContactAddress address = new epp_ContactAddress(); address.setStreet1( "100 Centre St" ); *************** *** 321,327 **** address.setPostalCode( "Z1Z1Z1" ); address.setCountryCode( "CA" ); ! name_address.setAddress( address ); ! contact_create_request.setAsciiAddress( name_address ); contact_create_request.setVoice( new epp_ContactPhone("1234", "+1.4165559999") ); contact_create_request.setFax( new epp_ContactPhone("9876", "+1.4165558888") ); --- 318,324 ---- address.setPostalCode( "Z1Z1Z1" ); address.setCountryCode( "CA" ); ! name_address[0].setAddress( address ); ! contact_create_request.setAddresses( name_address ); contact_create_request.setVoice( new epp_ContactPhone("1234", "+1.4165559999") ); contact_create_request.setFax( new epp_ContactPhone("9876", "+1.4165558888") ); *************** *** 370,376 **** contact_create_request.setAuthInfo( contact2_auth_info ); ! epp_ContactNameAddress name_address = new epp_ContactNameAddress(); ! name_address.setName( "Jane Doe" ); ! name_address.setOrg( "ACME Technicians" ); epp_ContactAddress address = new epp_ContactAddress(); address.setStreet1( "101 Centre St" ); --- 367,374 ---- contact_create_request.setAuthInfo( contact2_auth_info ); ! epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; ! name_address[0] = new epp_ContactNameAddress(); ! name_address[0].setName( "Jane Doe" ); ! name_address[0].setOrg( "ACME Technicians" ); epp_ContactAddress address = new epp_ContactAddress(); address.setStreet1( "101 Centre St" ); *************** *** 379,385 **** address.setPostalCode( "Z1Z1Z1" ); address.setCountryCode( "CA" ); ! name_address.setAddress( address ); ! contact_create_request.setAsciiAddress( name_address ); contact_create_request.setVoice( new epp_ContactPhone("1234", "+1.4165551111") ); contact_create_request.setFax( new epp_ContactPhone("9876", "+1.4165552222") ); --- 377,383 ---- address.setPostalCode( "Z1Z1Z1" ); address.setCountryCode( "CA" ); ! name_address[0].setAddress( address ); ! contact_create_request.setAddresses( name_address ); contact_create_request.setVoice( new epp_ContactPhone("1234", "+1.4165551111") ); contact_create_request.setFax( new epp_ContactPhone("9876", "+1.4165552222") ); *************** *** 854,860 **** System.out.println("ContactInfo results: clID ["+contact_info_response.getClientId()+"] crID ["+contact_info_response.getCreatedBy()+"]"); System.out.println("ContactInfo results: crDate ["+contact_info_response.getCreatedDate()+"] upDate ["+contact_info_response.getUpdatedDate()+"]"); ! System.out.println("ContactInfo results: address street 1 ["+contact_info_response.getAsciiAddress().getAddress().getStreet1()+"]"); ! System.out.println("ContactInfo results: address street 2 ["+contact_info_response.getAsciiAddress().getAddress().getStreet2()+"]"); ! System.out.println("ContactInfo results: address street 3 ["+contact_info_response.getAsciiAddress().getAddress().getStreet3()+"]"); System.out.println("ContactInfo results: fax ["+contact_info_response.getFax()+"]"); --- 852,858 ---- System.out.println("ContactInfo results: clID ["+contact_info_response.getClientId()+"] crID ["+contact_info_response.getCreatedBy()+"]"); System.out.println("ContactInfo results: crDate ["+contact_info_response.getCreatedDate()+"] upDate ["+contact_info_response.getUpdatedDate()+"]"); ! System.out.println("ContactInfo results: address street 1 ["+contact_info_response.getAddresses()[0].getAddress().getStreet1()+"]"); ! System.out.println("ContactInfo results: address street 2 ["+contact_info_response.getAddresses()[0].getAddress().getStreet2()+"]"); ! System.out.println("ContactInfo results: address street 3 ["+contact_info_response.getAddresses()[0].getAddress().getStreet3()+"]"); System.out.println("ContactInfo results: fax ["+contact_info_response.getFax()+"]"); |
From: Daniel M. <tub...@us...> - 2003-03-19 22:13:06
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv31799/example Modified Files: HostExample.java Log Message: updates for epp 07-05 compliance Index: HostExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/HostExample.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** HostExample.java 17 Mar 2003 21:42:29 -0000 1.11 --- HostExample.java 19 Mar 2003 22:13:01 -0000 1.12 *************** *** 231,248 **** contact_create_request.m_id = epp_client_id + randnum; ! epp_ContactNameAddress name_address = new epp_ContactNameAddress(); ! name_address.m_name = "John Doe"; ! name_address.m_address = new epp_ContactAddress(); ! name_address.m_address.m_street1 = "100 Centre St"; ! name_address.m_address.m_city = "Townsville"; ! name_address.m_address.m_state_province = "County Derry"; ! name_address.m_address.m_postal_code = "Z1Z1Z1"; // The country code must be a valid ISO country code. // Note that UK is not a valid ISO country code, use GB instead. ! name_address.m_address.m_country_code = "CA"; ! contact_create_request.m_ascii_address = name_address; ! contact_create_request.m_email = "jd...@co..."; // Contact Auth Info must be set, just give a fixed value now --- 231,250 ---- contact_create_request.m_id = epp_client_id + randnum; ! epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; ! name_address[0] = new epp_ContactNameAddress(); ! name_address[0].setType(epp_ContactPostalInfoType.INT); ! name_address[0].m_name = "John Doe"; ! name_address[0].setAddress(new epp_ContactAddress()); ! name_address[0].getAddress().setStreet1("100 Centre St"); ! name_address[0].getAddress().setCity("Townsville"); ! name_address[0].getAddress().setStateProvince("County Derry"); ! name_address[0].getAddress().setPostalCode("Z1Z1Z1"); // The country code must be a valid ISO country code. // Note that UK is not a valid ISO country code, use GB instead. ! name_address[0].getAddress().setCountryCode("CA"); ! contact_create_request.setAddresses(name_address); ! contact_create_request.setEmail("jd...@co..."); // Contact Auth Info must be set, just give a fixed value now *************** *** 311,317 **** // Some registries require a minimum number of contacts for a domain Vector contacts = new Vector(); ! contacts.add(new epp_DomainContact(epp_DomainContactType.TECH,"ABC-contact")); ! contacts.add(new epp_DomainContact(epp_DomainContactType.ADMIN,"ABC-contact")); ! contacts.add(new epp_DomainContact(epp_DomainContactType.BILLING,"ABC-contact")); domain_create_request.m_contacts = (epp_DomainContact[])contacts.toArray(new epp_DomainContact[1]); --- 313,319 ---- // Some registries require a minimum number of contacts for a domain Vector contacts = new Vector(); ! contacts.add(new epp_DomainContact(epp_DomainContactType.TECH,contact_create_request.m_id)); ! contacts.add(new epp_DomainContact(epp_DomainContactType.ADMIN,contact_create_request.m_id)); ! contacts.add(new epp_DomainContact(epp_DomainContactType.BILLING,contact_create_request.m_id)); domain_create_request.m_contacts = (epp_DomainContact[])contacts.toArray(new epp_DomainContact[1]); *************** *** 332,336 **** { epp_Result[] results = xcp.m_details; ! if ( results[0].m_code != epp_Session.EPP_OBJECT_EXISTS ) { System.out.println("Domain already exists! Let's continue..."); --- 334,338 ---- { epp_Result[] results = xcp.m_details; ! if ( results[0].m_code == epp_Session.EPP_OBJECT_EXISTS ) { System.out.println("Domain already exists! Let's continue..."); *************** *** 343,346 **** --- 345,349 ---- // the full list of attributes in the class. System.err.println("\tresult: ["+results[0]+"]"); + System.exit(1); } } |
From: Daniel M. <tub...@us...> - 2003-03-19 22:05:19
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv26029/example Modified Files: ContactExample.java Log Message: updates to make it epp 07/05 compliant Index: ContactExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/ContactExample.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ContactExample.java 17 Mar 2003 21:42:28 -0000 1.14 --- ContactExample.java 19 Mar 2003 22:05:14 -0000 1.15 *************** *** 211,247 **** contact_create_request.m_id = default_contact_id; ! epp_ContactNameAddress name_address = new epp_ContactNameAddress(); ! name_address.m_name = "John Doe"; ! name_address.m_org = "ACME Solutions"; ! name_address.m_address = new epp_ContactAddress(); // Up to three street values may be specified. ! name_address.m_address.m_street1 = "100 Centre St"; ! name_address.m_address.m_city = "Townsville"; ! name_address.m_address.m_state_province = "County Derry"; ! name_address.m_address.m_postal_code = "Z1Z1Z1"; // The country code must be a valid ISO country code. ! name_address.m_address.m_country_code = "CA"; ! // Now assign that name/address set to the contact's ! // ASCII address. If you wish to also use UTF-8 ! // characters in the name/address data, set the ! // m_i15d_address data member. ! contact_create_request.m_ascii_address = name_address; // The voice, fax and the email values can only be in ASCII. // The voice value may contain an optional extension. // Ceate a voice value with an extenstion. ! contact_create_request.m_voice = new epp_ContactPhone("1234", "+1.4165559999"); ! contact_create_request.m_fax = new epp_ContactPhone("9876", "+1.4165558888"); ! contact_create_request.m_email = "jd...@co..."; // Contact Auth Info must be set, just give a fixed value now contact_auth_info = new epp_AuthInfo(); ! contact_auth_info.m_value = "test_contact"; // For the current spec of EPP, PW is the only allowed type // of auth info. So, the type can be left null and the RTK will // fill in the value for you. ! contact_auth_info.m_type = epp_AuthInfoType.PW; ! contact_create_request.m_auth_info = contact_auth_info; EPPContactCreate contact_create = new EPPContactCreate(); --- 211,249 ---- contact_create_request.m_id = default_contact_id; ! epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; ! name_address[0] = new epp_ContactNameAddress(); ! // Type of INT is international which means only ! // the 7-bit subset of UTF-8 is permitted in the characters. ! // Type LOC (localized) permits full UTF-8. ! name_address[0].setType(epp_ContactPostalInfoType.INT); ! name_address[0].setName("John Doe"); ! name_address[0].setOrg("ACME Solutions"); ! name_address[0].setAddress(new epp_ContactAddress()); // Up to three street values may be specified. ! name_address[0].getAddress().setStreet1("100 Centre St"); ! name_address[0].getAddress().setCity("Townsville"); ! name_address[0].getAddress().setStateProvince("County Derry"); ! name_address[0].getAddress().setPostalCode("Z1Z1Z1"); // The country code must be a valid ISO country code. ! name_address[0].getAddress().setCountryCode("CA"); ! // Now assign that name/address set to the contact's addresses array. ! contact_create_request.setAddresses(name_address); // The voice, fax and the email values can only be in ASCII. // The voice value may contain an optional extension. // Ceate a voice value with an extenstion. ! contact_create_request.setVoice(new epp_ContactPhone("1234", "+1.4165559999")); ! contact_create_request.setFax(new epp_ContactPhone("9876", "+1.4165558888")); ! contact_create_request.setEmail("jd...@co..."); // Contact Auth Info must be set, just give a fixed value now contact_auth_info = new epp_AuthInfo(); ! contact_auth_info.setValue("test_contact"); // For the current spec of EPP, PW is the only allowed type // of auth info. So, the type can be left null and the RTK will // fill in the value for you. ! contact_auth_info.setType(epp_AuthInfoType.PW); ! contact_create_request.setAuthInfo(contact_auth_info); EPPContactCreate contact_create = new EPPContactCreate(); *************** *** 369,407 **** // You can ADD or REMOVE contact status here, like // epp_ContactUpdateAddRemove add = new epp_ContactUpdateAddRemove(); ! // add.m_status = new epp_ContactStatus[1]; ! // add.m_status[0] = new epp_ContactStatus(); ! // add.m_status[0].m_type = epp_ContactStatusType.CLIENT_DELETE_PROHIBITED; ! // contact_update_request.m_add = add; epp_ContactUpdateChange contact_update_change = new epp_ContactUpdateChange(); ! epp_ContactNameAddress name_address = new epp_ContactNameAddress(); ! // In a contact change request, you only need to explicitly ! // specify the values that are changing, leaving the remain ! // values set to null (although, there is no harm in sending the ! // complete contact information). If an optional value is ! // to be removed, then specify an empty string for the new value. ! name_address.m_name = "Jane Doe"; ! name_address.m_org = "ACME Systems"; ! name_address.m_address = new epp_ContactAddress(); // Up to three street values may be specified. ! name_address.m_address.m_street1 = "999 Front St"; ! name_address.m_address.m_city = "Townsville"; ! name_address.m_address.m_postal_code = "A9A9A9"; ! name_address.m_address.m_country_code = "CA"; // The contact update operation allows changes to both // the ASCII and "i15d" name/address information. ! contact_update_change.m_ascii_address = name_address; // The voice and email values are not changing, but we want // to remove the fax value. Can't just use null here // because then it would not be present in the request XML, // so the server would affect no change to the fax. ! contact_update_change.m_fax = new epp_ContactPhone("", ""); // You can also change the contact auth info here epp_AuthInfo contact_auth_info_new = new epp_AuthInfo(); ! contact_auth_info_new.m_value = "test_contact_new"; ! contact_update_change.m_auth_info = contact_auth_info_new; contact_auth_info = contact_auth_info_new; --- 371,411 ---- // You can ADD or REMOVE contact status here, like // epp_ContactUpdateAddRemove add = new epp_ContactUpdateAddRemove(); ! // add.setStatus(new epp_ContactStatus[1]); ! // add.getStatus()[0] = new epp_ContactStatus(); ! // add.getStatus()[0].setType(epp_ContactStatusType.CLIENT_DELETE_PROHIBITED); ! // contact_update_request.setAdd(add); epp_ContactUpdateChange contact_update_change = new epp_ContactUpdateChange(); ! epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; ! name_address[0] = new epp_ContactNameAddress(); ! // In a contact change request, you can update either or both of ! // the addresses current listed for the domain (localized and ! // internationalized). If an optional value is to be removed, then ! // specify an empty string for the new value. ! // XXX enough info? ! name_address[0].setType(epp_ContactPostalInfoType.INT); ! name_address[0].setName("Jane Doe"); ! name_address[0].setOrg("ACME Systems"); ! name_address[0].setAddress(new epp_ContactAddress()); // Up to three street values may be specified. ! name_address[0].getAddress().setStreet1("999 Front St"); ! name_address[0].getAddress().setCity("Townsville"); ! name_address[0].getAddress().setPostalCode("A9A9A9"); ! name_address[0].getAddress().setCountryCode("CA"); // The contact update operation allows changes to both // the ASCII and "i15d" name/address information. ! contact_update_change.setAddresses(name_address); // The voice and email values are not changing, but we want // to remove the fax value. Can't just use null here // because then it would not be present in the request XML, // so the server would affect no change to the fax. ! contact_update_change.setFax(new epp_ContactPhone("", "")); // You can also change the contact auth info here epp_AuthInfo contact_auth_info_new = new epp_AuthInfo(); ! contact_auth_info_new.setValue("test_contact_new"); ! contact_update_change.setAuthInfo(contact_auth_info_new); contact_auth_info = contact_auth_info_new; |
From: Daniel M. <tub...@us...> - 2003-03-19 21:29:10
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv32573/xml Modified Files: EPPContactCreate.java EPPContactUpdate.java Log Message: fixed backward compatibility with m_ascii and m_i15d addresses in contact update and create Index: EPPContactCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCreate.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** EPPContactCreate.java 19 Mar 2003 18:49:23 -0000 1.13 --- EPPContactCreate.java 19 Mar 2003 21:29:02 -0000 1.14 *************** *** 135,139 **** // XXX the usage of m_ascii_address and m_i15d_address // is deprecated, so this code exists for backward compatibility ! Element ascii_address = addressToXML(doc, "contact:ascii", action_request_.m_ascii_address); if ( ascii_address != null ) { --- 135,140 ---- // XXX the usage of m_ascii_address and m_i15d_address // is deprecated, so this code exists for backward compatibility ! if ( action_request_.m_ascii_address != null ) { action_request_.m_ascii_address.m_type = epp_ContactPostalInfoType.INT; } ! Element ascii_address = addressToXML(doc, "contact:postalInfo", action_request_.m_ascii_address); if ( ascii_address != null ) { *************** *** 141,145 **** } ! Element i15d_address = addressToXML(doc, "contact:i15d", action_request_.m_i15d_address); if ( i15d_address != null ) { --- 142,147 ---- } ! if ( action_request_.m_i15d_address != null ) { action_request_.m_i15d_address.m_type = epp_ContactPostalInfoType.LOC; } ! Element i15d_address = addressToXML(doc, "contact:postalInfo", action_request_.m_i15d_address); if ( i15d_address != 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.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** EPPContactUpdate.java 19 Mar 2003 18:49:24 -0000 1.13 --- EPPContactUpdate.java 19 Mar 2003 21:29:04 -0000 1.14 *************** *** 241,245 **** // XXX the usage of m_ascii_address and m_i15d_address // is deprecated, so this code exists for backward compatibility ! Element ascii_address = addressToXML(doc, "contact:ascii", change.m_ascii_address); if ( ascii_address != null ) { --- 241,246 ---- // XXX the usage of m_ascii_address and m_i15d_address // is deprecated, so this code exists for backward compatibility ! if ( change.m_ascii_address != null ) { change.m_ascii_address.m_type = epp_ContactPostalInfoType.INT; } ! Element ascii_address = addressToXML(doc, "contact:postalInfo", change.m_ascii_address); if ( ascii_address != null ) { *************** *** 247,251 **** } ! Element i15d_address = addressToXML(doc, "contact:i15d", change.m_i15d_address); if ( i15d_address != null ) { --- 248,253 ---- } ! if ( change.m_i15d_address != null ) { change.m_i15d_address.m_type = epp_ContactPostalInfoType.LOC; } ! Element i15d_address = addressToXML(doc, "contact:postalInfo", change.m_i15d_address); if ( i15d_address != null ) { |
From: Daniel M. <tub...@us...> - 2003-03-19 20:55:35
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv9718/example Modified Files: DomainExample.java Log Message: updates to make it work for epp 07/05 Index: DomainExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/DomainExample.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** DomainExample.java 17 Mar 2003 21:42:29 -0000 1.16 --- DomainExample.java 19 Mar 2003 20:55:31 -0000 1.17 *************** *** 116,119 **** --- 116,120 ---- System.out.println("Logging into the EPP Server"); + // XXX change me, update me // If epp_client.setEPPServices() or epp_client.setEPPUnspecServices() // have been called, epp_client.login() uses services values set by user, *************** *** 300,317 **** contact_create_request.m_id = epp_client_id + randnum; ! epp_ContactNameAddress name_address = new epp_ContactNameAddress(); ! name_address.m_name = "John Doe"; ! name_address.m_address = new epp_ContactAddress(); ! name_address.m_address.m_street1 = "100 Centre St"; ! name_address.m_address.m_city = "Townsville"; ! name_address.m_address.m_state_province = "County Derry"; ! name_address.m_address.m_postal_code = "Z1Z1Z1"; // The country code must be a valid ISO country code. // Note that UK is not a valid ISO country code, use GB instead. ! name_address.m_address.m_country_code = "CA"; ! contact_create_request.m_ascii_address = name_address; ! contact_create_request.m_email = "jd...@co..."; // Contact Auth Info must be set, just give a fixed value now --- 301,320 ---- contact_create_request.m_id = epp_client_id + randnum; ! epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; ! name_address[0] = new epp_ContactNameAddress(); ! name_address[0].setType(epp_ContactPostalInfoType.INT); ! name_address[0].m_name = "John Doe"; ! name_address[0].setAddress(new epp_ContactAddress()); ! name_address[0].getAddress().setStreet1("100 Centre St"); ! name_address[0].getAddress().setCity("Townsville"); ! name_address[0].getAddress().setStateProvince("County Derry"); ! name_address[0].getAddress().setPostalCode("Z1Z1Z1"); // The country code must be a valid ISO country code. // Note that UK is not a valid ISO country code, use GB instead. ! name_address[0].getAddress().setCountryCode("CA"); ! contact_create_request.setAddresses(name_address); ! contact_create_request.setEmail("jd...@co..."); // Contact Auth Info must be set, just give a fixed value now *************** *** 409,415 **** // Some registries require a minimum number of contacts for a domain Vector contacts = new Vector(); ! contacts.add(new epp_DomainContact(epp_DomainContactType.TECH,"ABC-contact")); ! contacts.add(new epp_DomainContact(epp_DomainContactType.ADMIN,"ABC-contact")); ! contacts.add(new epp_DomainContact(epp_DomainContactType.BILLING,"ABC-contact")); domain_create_request.m_contacts = (epp_DomainContact[])contacts.toArray(new epp_DomainContact[1]); --- 412,418 ---- // Some registries require a minimum number of contacts for a domain Vector contacts = new Vector(); ! contacts.add(new epp_DomainContact(epp_DomainContactType.TECH,contact_create_request.m_id)); ! contacts.add(new epp_DomainContact(epp_DomainContactType.ADMIN,contact_create_request.m_id)); ! contacts.add(new epp_DomainContact(epp_DomainContactType.BILLING,contact_create_request.m_id)); domain_create_request.m_contacts = (epp_DomainContact[])contacts.toArray(new epp_DomainContact[1]); |
From: Daniel M. <tub...@us...> - 2003-03-19 20:55:15
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv9422/xml Modified Files: EPPContactInfo.java EPPDomainInfo.java Log Message: fixed parsing of auth info in domain and contact info responses Index: EPPContactInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactInfo.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** EPPContactInfo.java 18 Mar 2003 18:55:10 -0000 1.13 --- EPPContactInfo.java 19 Mar 2003 20:55:01 -0000 1.14 *************** *** 288,294 **** { action_response_.m_auth_info = new epp_AuthInfo(); ! action_response_.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); ! action_response_.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); ! action_response_.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); } } --- 288,299 ---- { action_response_.m_auth_info = new epp_AuthInfo(); ! Node auth_info_child = a_node.getFirstChild(); ! if ( auth_info_child == null ) ! { ! throw new epp_XMLException("authInfo element missing sub-element"); ! } ! action_response_.m_auth_info.m_value = auth_info_child.getFirstChild().getNodeValue(); ! action_response_.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)auth_info_child).getLocalName() ); ! action_response_.m_auth_info.m_roid = ((Element)auth_info_child).getAttribute("roid"); } } Index: EPPDomainInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainInfo.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPDomainInfo.java 17 Mar 2003 21:42:31 -0000 1.11 --- EPPDomainInfo.java 19 Mar 2003 20:55:01 -0000 1.12 *************** *** 269,275 **** { action_response_.m_auth_info = new epp_AuthInfo(); ! action_response_.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); ! action_response_.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); ! action_response_.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); } } --- 269,280 ---- { action_response_.m_auth_info = new epp_AuthInfo(); ! Node auth_info_child = a_node.getFirstChild(); ! if ( auth_info_child == null ) ! { ! throw new epp_XMLException("authInfo element missing sub-element"); ! } ! action_response_.m_auth_info.m_value = auth_info_child.getFirstChild().getNodeValue(); ! action_response_.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)auth_info_child).getLocalName() ); ! action_response_.m_auth_info.m_roid = ((Element)auth_info_child).getAttribute("roid"); } } |
From: Daniel M. <tub...@us...> - 2003-03-19 20:33:58
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv29041/xml Modified Files: EPPXMLBase.java Log Message: better error handling in trying to parse XML from <value> in response Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** EPPXMLBase.java 19 Mar 2003 20:28:12 -0000 1.35 --- EPPXMLBase.java 19 Mar 2003 20:33:49 -0000 1.36 *************** *** 168,172 **** debug(DEBUG_LEVEL_TWO,method_name,"the value contents node name ["+value_contents.getNodeName()+"]"); ! String value_xml_string; try --- 168,174 ---- debug(DEBUG_LEVEL_TWO,method_name,"the value contents node name ["+value_contents.getNodeName()+"]"); ! String value_xml_string = ""; ! ! boolean good_xml = true; try *************** *** 178,182 **** catch( IOException ioe ) { ! throw new epp_XMLException( "IOException in building XML [" + ioe.getMessage() + "]" ); } --- 180,185 ---- catch( IOException ioe ) { ! good_xml = false; ! value_xml_string = value_contents.getNodeValue(); } *************** *** 184,189 **** epp_ResultValue value = new epp_ResultValue( value_contents.getNamespaceURI(), value_xml_string, ! value_contents.getNodeName(), ! value_contents.getFirstChild().getNodeValue() ); // XXX have to parse stuff here if we can. values.add(value); --- 187,192 ---- epp_ResultValue value = new epp_ResultValue( value_contents.getNamespaceURI(), value_xml_string, ! ( good_xml ? value_contents.getNodeName() : null ), ! ( good_xml ? value_contents.getFirstChild().getNodeValue() : null ) ); // XXX have to parse stuff here if we can. values.add(value); *************** *** 221,224 **** --- 224,228 ---- String value_xml_string; + boolean good_xml = true; try { *************** *** 229,233 **** catch( IOException ioe ) { ! throw new epp_XMLException( "IOException in building XML [" + ioe.getMessage() + "]" ); } --- 233,238 ---- catch( IOException ioe ) { ! good_xml = false; ! value_xml_string = value_contents.getNodeValue(); } *************** *** 235,240 **** epp_ResultValue value = new epp_ResultValue( value_contents.getNamespaceURI(), value_xml_string, ! value_contents.getNodeName(), ! value_contents.getFirstChild().getNodeValue() ); ext_value.m_value = value; --- 240,245 ---- epp_ResultValue value = new epp_ResultValue( value_contents.getNamespaceURI(), value_xml_string, ! ( good_xml ? value_contents.getNodeName() : null ), ! ( good_xml ? value_contents.getFirstChild().getNodeValue() : null ) ); ext_value.m_value = value; |
From: Daniel M. <tub...@us...> - 2003-03-19 20:28:17
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv25965/xml Modified Files: EPPXMLBase.java Log Message: fixed parsing of <value> and <extValue> in <result> in response Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** EPPXMLBase.java 19 Mar 2003 18:49:24 -0000 1.34 --- EPPXMLBase.java 19 Mar 2003 20:28:12 -0000 1.35 *************** *** 165,172 **** { 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); --- 165,189 ---- { Node value_node = value_nodes.item(count2); ! Node value_contents = value_node.getFirstChild(); ! debug(DEBUG_LEVEL_TWO,method_name,"the value contents node name ["+value_contents.getNodeName()+"]"); ! ! String value_xml_string; ! ! try ! { ! Document udoc = new DocumentImpl(); ! udoc.appendChild( udoc.importNode( value_contents, true ) ); ! value_xml_string = createXMLSnippetFromDoc( udoc ); ! } ! catch( IOException ioe ) ! { ! throw new epp_XMLException( "IOException in building XML [" + ioe.getMessage() + "]" ); ! } ! ! ! epp_ResultValue value = new epp_ResultValue( value_contents.getNamespaceURI(), ! value_xml_string, ! value_contents.getNodeName(), ! value_contents.getFirstChild().getNodeValue() ); // XXX have to parse stuff here if we can. values.add(value); *************** *** 185,200 **** { Node ext_value_node = ext_value_nodes.item(count2); - epp_ResultValue value = new epp_ResultValue( ext_value_node.getNamespaceURI(), - ext_value_node.getFirstChild().getNodeValue(), - ext_value_node.getNodeName(), - ext_value_node.getFirstChild().getNodeValue() ); - epp_ExtResultValue ext_value = new epp_ExtResultValue( value, null ); - NodeList reason_nodes = ((Element)ext_value_node).getElementsByTagName("reason"); - if ( reason_nodes.getLength() > 0 ) { - ext_value.m_reason = reason_nodes.item(0).getNodeValue(); - } // XXX have to parse stuff here if we can. ! ext_values.add(ext_value); } result.m_ext_values = (epp_ExtResultValue[])convertListToArray((new epp_ExtResultValue()).getClass(), ext_values); --- 202,253 ---- { Node ext_value_node = ext_value_nodes.item(count2); + NodeList ext_value_children = ext_value_node.getChildNodes(); + + epp_ExtResultValue ext_value = null; + + for (int count3 = 0; count3 < ext_value_nodes.getLength(); count3++) + { + Node a_node = ext_value_nodes.item(count2); + + ext_value = new epp_ExtResultValue(); + + if ( a_node.getNodeName().equals("value") ) + { + + Node value_contents = a_node.getFirstChild(); + debug(DEBUG_LEVEL_TWO,method_name,"the value contents node name ["+value_contents.getNodeName()+"]"); + + String value_xml_string; + + try + { + Document udoc = new DocumentImpl(); + udoc.appendChild( udoc.importNode( value_contents, true ) ); + value_xml_string = createXMLSnippetFromDoc( udoc ); + } + catch( IOException ioe ) + { + throw new epp_XMLException( "IOException in building XML [" + ioe.getMessage() + "]" ); + } + + + epp_ResultValue value = new epp_ResultValue( value_contents.getNamespaceURI(), + value_xml_string, + value_contents.getNodeName(), + value_contents.getFirstChild().getNodeValue() ); + + ext_value.m_value = value; + } + if ( a_node.getNodeName().equals("reason") ) + { + ext_value.m_reason = a_node.getNodeValue(); + } + } + // XXX have to parse stuff here if we can. ! if ( ext_value != null ) { ! ext_values.add(ext_value); ! } } result.m_ext_values = (epp_ExtResultValue[])convertListToArray((new epp_ExtResultValue()).getClass(), ext_values); *************** *** 248,252 **** udoc.appendChild( udoc.importNode( extension_node, true ) ); ! String extension_string = createXMLFromDoc( udoc ); debug(DEBUG_LEVEL_TWO,method_name,"here's an extension xml string ["+extension_string+"]"); extension_strings.add(extension_string); --- 301,305 ---- udoc.appendChild( udoc.importNode( extension_node, true ) ); ! String extension_string = createXMLSnippetFromDoc( udoc ); debug(DEBUG_LEVEL_TWO,method_name,"here's an extension xml string ["+extension_string+"]"); extension_strings.add(extension_string); *************** *** 435,438 **** --- 488,518 ---- OutputFormat format = new OutputFormat( doc ); + StringWriter stringOut = new StringWriter(); + XMLSerializer serial = new XMLSerializer( stringOut, format ); + + serial.asDOMSerializer(); + serial.serialize( doc.getDocumentElement() ); + + debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); + return stringOut.toString(); + } + + /** + * Given a Document with all of its children elements appended, converts + * this document to an XML Snippet. + * The difference between this and createXMLFromDoc() is that the XML + * headers are not included. + * @param Document the complete XML Document + * @return String the XML String + * @throws java.io.IOException + */ + protected String createXMLSnippetFromDoc(Document doc) throws IOException + { + String method_name = "createXMLSnippetFromDoc()"; + debug(DEBUG_LEVEL_THREE,method_name,"Entered"); + + OutputFormat format = new OutputFormat( doc ); + format.setOmitDocumentType(true); + format.setOmitXMLDeclaration(true); StringWriter stringOut = new StringWriter(); XMLSerializer serial = new XMLSerializer( stringOut, format ); |
From: Daniel M. <tub...@us...> - 2003-03-19 18:57:07
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv11334/xml Modified Files: EPPContactCreate.java EPPContactTransfer.java EPPContactUpdate.java EPPDomainCreate.java EPPDomainTransfer.java EPPDomainUpdate.java EPPXMLBase.java Log Message: fixed xml format for auth info Index: EPPContactCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCreate.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EPPContactCreate.java 17 Mar 2003 21:42:30 -0000 1.12 --- EPPContactCreate.java 19 Mar 2003 18:49:23 -0000 1.13 *************** *** 184,188 **** } ! contact_create.appendChild( prepareAuthInfo( doc, "contact:authInfo", action_request_.m_auth_info ) ); create.appendChild( contact_create ); --- 184,188 ---- } ! contact_create.appendChild( prepareAuthInfo( doc, "contact", action_request_.m_auth_info ) ); create.appendChild( contact_create ); Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** EPPContactTransfer.java 17 Mar 2003 21:42:30 -0000 1.13 --- EPPContactTransfer.java 19 Mar 2003 18:49:24 -0000 1.14 *************** *** 147,151 **** if ( transfer_request_data.m_auth_info != null ) { ! contact_transfer.appendChild( prepareAuthInfo( doc, "contact:authInfo", transfer_request_data.m_auth_info ) ); } else if ( transfer_request_data.m_op == epp_TransferOpType.REQUEST ) --- 147,151 ---- if ( transfer_request_data.m_auth_info != null ) { ! contact_transfer.appendChild( prepareAuthInfo( doc, "contact", transfer_request_data.m_auth_info ) ); } else if ( transfer_request_data.m_op == epp_TransferOpType.REQUEST ) Index: EPPContactUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactUpdate.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EPPContactUpdate.java 17 Mar 2003 21:42:30 -0000 1.12 --- EPPContactUpdate.java 19 Mar 2003 18:49:24 -0000 1.13 *************** *** 287,291 **** if ( change.m_auth_info != null ) { ! change_element.appendChild( prepareAuthInfo( doc, "contact:authInfo", change.m_auth_info ) ); } --- 287,291 ---- if ( change.m_auth_info != null ) { ! change_element.appendChild( prepareAuthInfo( doc, "contact", change.m_auth_info ) ); } Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EPPDomainCreate.java 17 Mar 2003 21:42:31 -0000 1.12 --- EPPDomainCreate.java 19 Mar 2003 18:49:24 -0000 1.13 *************** *** 168,172 **** } ! domain_create.appendChild( prepareAuthInfo( doc, "domain:authInfo", action_request_.m_auth_info ) ); create.appendChild( domain_create ); --- 168,172 ---- } ! domain_create.appendChild( prepareAuthInfo( doc, "domain", action_request_.m_auth_info ) ); create.appendChild( domain_create ); Index: EPPDomainTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainTransfer.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EPPDomainTransfer.java 17 Mar 2003 21:42:32 -0000 1.12 --- EPPDomainTransfer.java 19 Mar 2003 18:49:24 -0000 1.13 *************** *** 153,157 **** if ( transfer_request_data.m_auth_info != null ) { ! domain_transfer.appendChild( prepareAuthInfo( doc, "domain:authInfo", transfer_request_data.m_auth_info ) ); } else if ( transfer_request_data.m_op == epp_TransferOpType.REQUEST) --- 153,157 ---- if ( transfer_request_data.m_auth_info != null ) { ! domain_transfer.appendChild( prepareAuthInfo( doc, "domain", transfer_request_data.m_auth_info ) ); } else if ( transfer_request_data.m_op == epp_TransferOpType.REQUEST) Index: EPPDomainUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainUpdate.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPDomainUpdate.java 17 Mar 2003 21:42:32 -0000 1.10 --- EPPDomainUpdate.java 19 Mar 2003 18:49:24 -0000 1.11 *************** *** 156,160 **** if ( action_request_.m_change.m_auth_info != null ) { ! change_element.appendChild( prepareAuthInfo( doc, "domain:authInfo", action_request_.m_change.m_auth_info ) ); } --- 156,160 ---- if ( action_request_.m_change.m_auth_info != null ) { ! change_element.appendChild( prepareAuthInfo( doc, "domain", action_request_.m_change.m_auth_info ) ); } Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** EPPXMLBase.java 19 Mar 2003 15:51:46 -0000 1.33 --- EPPXMLBase.java 19 Mar 2003 18:49:24 -0000 1.34 *************** *** 545,554 **** */ protected Element prepareAuthInfo(Document doc, ! String tag_name, epp_AuthInfo auth_info) { ! Element auth_info_element = doc.createElement(tag_name); ! ! auth_info_element.appendChild( doc.createTextNode(auth_info.m_value) ); if ( auth_info.m_type == null ) --- 545,552 ---- */ protected Element prepareAuthInfo(Document doc, ! String object_name, epp_AuthInfo auth_info) { ! Element auth_info_element = doc.createElement(object_name+":authInfo"); if ( auth_info.m_type == null ) *************** *** 559,563 **** } ! auth_info_element.setAttribute( "type", auth_info.m_type.toString() ); if ( auth_info.m_roid != null ) --- 557,561 ---- } ! addXMLElement(doc, auth_info_element, object_name+":"+auth_info.m_type, auth_info.m_value); if ( auth_info.m_roid != null ) |
From: Daniel M. <tub...@us...> - 2003-03-19 15:51:53
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv3887/xml Modified Files: EPPXMLBase.java Log Message: fixed the fixme -- now getting multiple extension xml strings in the response Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** EPPXMLBase.java 18 Mar 2003 18:54:37 -0000 1.32 --- EPPXMLBase.java 19 Mar 2003 15:51:46 -0000 1.33 *************** *** 228,256 **** Node extension_node = extension_nodes.item(0); ! Document udoc = new DocumentImpl(); ! String extension_string; ! ! // Have to create a new doc from this extension node to ! // get the raw XML. ! udoc.appendChild( udoc.importNode( extension_node, true ) ); ! ! try ! { ! extension_string = createXMLFromDoc( udoc ); ! // Now have to isolate the extension XML without ! // the <extension> wrapping tags. ! RE regexp = new RE("<extension>(.*)</extension>$"); ! regexp.match(extension_string); ! // XXX fix me!!!! ! //generic_response.m_extension_string = regexp.getParen(1); ! } ! catch( IOException ioe ) { ! throw new epp_XMLException( "IOException in building XML [" + ioe.getMessage() + "]" ); } ! catch (RESyntaxException xcp) { ! throw new epp_XMLException( "Bad regexp when trying to parse Extension [" + xcp.getMessage() + "]" ); } --- 228,265 ---- Node extension_node = extension_nodes.item(0); ! // Have to loop through each child node and save the XML from it. ! NodeList extension_children = extension_node.getChildNodes(); ! debug(DEBUG_LEVEL_TWO,method_name,"response extension node count ["+extension_children.getLength()+"]"); ! ! List extension_strings = (List)new ArrayList(); ! ! for (int count = 0; count < extension_children.getLength(); count++) { ! try ! { ! Node a_node = extension_children.item(count); ! ! Document udoc = new DocumentImpl(); ! ! // Have to create a new doc from this extension node to ! // get the raw XML. ! ! udoc.appendChild( udoc.importNode( extension_node, true ) ); ! ! String extension_string = createXMLFromDoc( udoc ); ! debug(DEBUG_LEVEL_TWO,method_name,"here's an extension xml string ["+extension_string+"]"); ! extension_strings.add(extension_string); ! ! } ! catch( IOException ioe ) ! { ! throw new epp_XMLException( "IOException in building XML [" + ioe.getMessage() + "]" ); ! } } ! ! if ( extension_strings.size() > 0 ) { ! generic_response.m_extension_strings = convertListToStringArray(extension_strings); } |
From: Daniel M. <tub...@us...> - 2003-03-18 19:00:15
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv27978/xml Modified Files: EPPContactBase.java Log Message: the postal info type is mandatory Index: EPPContactBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactBase.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** EPPContactBase.java 18 Mar 2003 18:55:09 -0000 1.13 --- EPPContactBase.java 18 Mar 2003 19:00:06 -0000 1.14 *************** *** 142,145 **** --- 142,150 ---- { name_address_element = doc.createElement(tag_name); + + if ( name_address.m_type == null ) { + throw new epp_XMLException("missing the address type (postal info)"); + } + name_address_element.setAttribute("type", name_address.m_type.toString()); |
From: Daniel M. <tub...@us...> - 2003-03-18 18:55:20
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv25375/xml Modified Files: EPPContactBase.java EPPContactInfo.java Log Message: account for the address type in the contact data Index: EPPContactBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactBase.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EPPContactBase.java 17 Mar 2003 21:42:30 -0000 1.12 --- EPPContactBase.java 18 Mar 2003 18:55:09 -0000 1.13 *************** *** 57,60 **** --- 57,67 ---- /** + * Hashtable to allow for conversion from String contact address type + * (aka postal info type) to epp_ContactPostalInfoType. + * @see The EPP IDL epp_contact.idl for the definition of the epp_ContactPostalInfoType enum + */ + protected static Hashtable contact_address_type_hash_; + + /** * Default Constructor. */ *************** *** 69,72 **** --- 76,80 ---- { initContactStatusHash(); + initContactAddressTypeHash(); } *************** *** 91,94 **** --- 99,112 ---- } + public static void initContactAddressTypeHash() + { + if ( contact_address_type_hash_ == null ) + { + contact_address_type_hash_ = new Hashtable(); + contact_address_type_hash_.put("loc", epp_ContactPostalInfoType.LOC); + contact_address_type_hash_.put("int", epp_ContactPostalInfoType.INT); + } + } + /** * Sets the common XML attributes required for the contact object (eg. xmlns:contact, xsi:schemaLocation) *************** *** 124,127 **** --- 142,146 ---- { name_address_element = doc.createElement(tag_name); + name_address_element.setAttribute("type", name_address.m_type.toString()); if ( name_address.m_name != null ) { addXMLElement(doc, name_address_element, "contact:name", name_address.m_name); } Index: EPPContactInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactInfo.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EPPContactInfo.java 17 Mar 2003 21:42:30 -0000 1.12 --- EPPContactInfo.java 18 Mar 2003 18:55:10 -0000 1.13 *************** *** 318,321 **** --- 318,332 ---- NodeList address_nodes = address_node.getChildNodes(); + if ( ! contact_address_type_hash_.containsKey( ((Element)address_node).getAttribute("type") ) ) + { + // you throw girl! + throw new epp_XMLException("invalid contact postal info type from server: ["+((Element)address_node).getAttribute("type")+"]"); + + } + else + { + name_address.m_type = (epp_ContactPostalInfoType)contact_address_type_hash_.get( ((Element)address_node).getAttribute("type") ); + } + for (int count = 0; count < address_nodes.getLength(); count++) { |
From: Daniel M. <tub...@us...> - 2003-03-18 18:54:43
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv25153/xml Modified Files: EPPXMLBase.java Log Message: parse the <msg> tag in the <msgQ> tag Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** EPPXMLBase.java 18 Mar 2003 16:28:22 -0000 1.31 --- EPPXMLBase.java 18 Mar 2003 18:54:37 -0000 1.32 *************** *** 276,280 **** NodeList queue_date_nodes = msg_queue_element.getElementsByTagName("qDate"); ! if ( queue_date_nodes.getLength()>0 ) { msg_queue.m_queue_date = queue_date_nodes.item(0).getFirstChild().getNodeValue(); } generic_response.m_message_queue = msg_queue; --- 276,289 ---- NodeList queue_date_nodes = msg_queue_element.getElementsByTagName("qDate"); ! if ( queue_date_nodes.getLength() > 0 ) { msg_queue.m_queue_date = queue_date_nodes.item(0).getFirstChild().getNodeValue(); } ! ! NodeList the_msg_nodes = msg_queue_element.getElementsByTagName("msg"); ! if ( the_msg_nodes.getLength() > 0 ) ! { ! Element msg_element = (Element)the_msg_nodes.item(0); ! msg_queue.m_msg = new epp_ExtMessage(); ! msg_queue.m_msg.m_lang = msg_element.getAttribute("lang"); ! msg_queue.m_msg.m_value = msg_element.getFirstChild().getNodeValue(); ! } generic_response.m_message_queue = msg_queue; |
From: Daniel M. <tub...@us...> - 2003-03-18 16:29:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/host In directory sc8-pr-cvs1:/tmp/cvs-serv20246/host Modified Files: epp_HostPanData.java Log Message: better design for the panData to make it more flexible Index: epp_HostPanData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/host/epp_HostPanData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_HostPanData.java 17 Mar 2003 16:38:22 -0000 1.2 --- epp_HostPanData.java 18 Mar 2003 16:28:58 -0000 1.3 *************** *** 30,34 **** * $Date$<br> */ ! public class epp_HostPanData extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.portable.IDLEntity, org.openrtk.idl.epp.epp_PollResData { --- 30,34 ---- * $Date$<br> */ ! public class epp_HostPanData extends org.openrtk.idl.epp.epp_PanData implements org.openrtk.idl.epp.epp_PollResData { *************** *** 51,67 **** */ public String m_name; - /** - * The result flag for this pending action -- true == successful - */ - public boolean m_result; - /** - * The client and server TRID pair from the EPP request/response which trigger this - * pending action. - */ - public org.openrtk.idl.epp.epp_TransID m_trid; - /** - * The date this pending action completed or failed in the server. - */ - public String m_date; /** --- 51,54 ---- *************** *** 81,88 **** public epp_HostPanData (String _m_name, boolean _m_result, org.openrtk.idl.epp.epp_TransID _m_trid, String _m_date) { m_name = _m_name; - m_result = _m_result; - m_trid = _m_trid; - m_date = _m_date; } // ctor --- 68,73 ---- public epp_HostPanData (String _m_name, boolean _m_result, org.openrtk.idl.epp.epp_TransID _m_trid, String _m_date) { + super( _m_result, _m_trid, _m_date ); m_name = _m_name; } // ctor *************** *** 99,150 **** */ public String getName() { return m_name; } - - /** - * Accessor method for the boolean result of the execution of the pending action. - * true == successful execution - * @param value The result flag - * @see #m_result - */ - public void setResult(boolean value) { m_result = value; } - /** - * Accessor method for the boolean result of the execution of the pending action. - * true == successful execution - * @return The result flag - * @see #m_result - */ - public boolean getResult() { return m_result; } - - /** - * Accessor method for the client and server TRID pair associated with the pending action - * @param value The client/server TRID pair - * @see #m_trid - */ - public void setTrid(org.openrtk.idl.epp.epp_TransID value) { m_trid = value; } - /** - * Accessor method for the client and server TRID pair associated with the pending action - * @return The client/server TRID pair - * @see #m_trid - */ - public org.openrtk.idl.epp.epp_TransID getTrid() { return m_trid; } - - /** - * Accessor method for the pending action's completion or failure - * @param value The date of the pending action's completion or failure - * @see #m_date - */ - public void setDate(String value) { m_date = value; } - /** - * Accessor method for the pending action's completion or failure - * @return The date of the pending action's completion or failure - * @see #m_date - */ - public String getDate() { return m_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; } /** --- 84,87 ---- |
From: Daniel M. <tub...@us...> - 2003-03-18 16:29:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain In directory sc8-pr-cvs1:/tmp/cvs-serv20246/domain Modified Files: epp_DomainPanData.java Log Message: better design for the panData to make it more flexible Index: epp_DomainPanData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainPanData.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_DomainPanData.java 17 Mar 2003 16:38:19 -0000 1.3 --- epp_DomainPanData.java 18 Mar 2003 16:28:57 -0000 1.4 *************** *** 30,34 **** * $Date$<br> */ ! public class epp_DomainPanData extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.portable.IDLEntity, org.openrtk.idl.epp.epp_PollResData { --- 30,34 ---- * $Date$<br> */ ! public class epp_DomainPanData extends org.openrtk.idl.epp.epp_PanData implements org.openrtk.idl.epp.epp_PollResData { *************** *** 51,67 **** */ public String m_name; - /** - * The result flag for this pending action -- true == successful - */ - public boolean m_result; - /** - * The client and server TRID pair from the EPP request/response which trigger this - * pending action. - */ - public org.openrtk.idl.epp.epp_TransID m_trid; - /** - * The date this pending action completed or failed in the server. - */ - public String m_date; /** --- 51,54 ---- *************** *** 81,88 **** public epp_DomainPanData (String _m_name, boolean _m_result, org.openrtk.idl.epp.epp_TransID _m_trid, String _m_date) { m_name = _m_name; - m_result = _m_result; - m_trid = _m_trid; - m_date = _m_date; } // ctor --- 68,73 ---- public epp_DomainPanData (String _m_name, boolean _m_result, org.openrtk.idl.epp.epp_TransID _m_trid, String _m_date) { + super( _m_result, _m_trid, _m_date ); m_name = _m_name; } // ctor *************** *** 99,150 **** */ public String getName() { return m_name; } - - /** - * Accessor method for the boolean result of the execution of the pending action. - * true == successful execution - * @param value The result flag - * @see #m_result - */ - public void setResult(boolean value) { m_result = value; } - /** - * Accessor method for the boolean result of the execution of the pending action. - * true == successful execution - * @return The result flag - * @see #m_result - */ - public boolean getResult() { return m_result; } - - /** - * Accessor method for the client and server TRID pair associated with the pending action - * @param value The client/server TRID pair - * @see #m_trid - */ - public void setTrid(org.openrtk.idl.epp.epp_TransID value) { m_trid = value; } - /** - * Accessor method for the client and server TRID pair associated with the pending action - * @return The client/server TRID pair - * @see #m_trid - */ - public org.openrtk.idl.epp.epp_TransID getTrid() { return m_trid; } - - /** - * Accessor method for the pending action's completion or failure - * @param value The date of the pending action's completion or failure - * @see #m_date - */ - public void setDate(String value) { m_date = value; } - /** - * Accessor method for the pending action's completion or failure - * @return The date of the pending action's completion or failure - * @see #m_date - */ - public String getDate() { return m_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; } /** --- 84,87 ---- |
From: Daniel M. <tub...@us...> - 2003-03-18 16:29:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact In directory sc8-pr-cvs1:/tmp/cvs-serv20246/contact Modified Files: epp_ContactPanData.java Log Message: better design for the panData to make it more flexible Index: epp_ContactPanData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactPanData.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_ContactPanData.java 17 Mar 2003 16:38:18 -0000 1.3 --- epp_ContactPanData.java 18 Mar 2003 16:28:56 -0000 1.4 *************** *** 30,34 **** * $Date$<br> */ ! public class epp_ContactPanData extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.portable.IDLEntity, org.openrtk.idl.epp.epp_PollResData { --- 30,34 ---- * $Date$<br> */ ! public class epp_ContactPanData extends org.openrtk.idl.epp.epp_PanData implements org.openrtk.idl.epp.epp_PollResData { *************** *** 51,67 **** */ public String m_id; - /** - * The result flag for this pending action -- true == successful - */ - public boolean m_result; - /** - * The client and server TRID pair from the EPP request/response which trigger this - * pending action. - */ - public org.openrtk.idl.epp.epp_TransID m_trid; - /** - * The date this pending action completed or failed in the server. - */ - public String m_date; /** --- 51,54 ---- *************** *** 81,88 **** public epp_ContactPanData (String _m_id, boolean _m_result, org.openrtk.idl.epp.epp_TransID _m_trid, String _m_date) { m_id = _m_id; - m_result = _m_result; - m_trid = _m_trid; - m_date = _m_date; } // ctor --- 68,73 ---- public epp_ContactPanData (String _m_id, boolean _m_result, org.openrtk.idl.epp.epp_TransID _m_trid, String _m_date) { + super( _m_result, _m_trid, _m_date ); m_id = _m_id; } // ctor *************** *** 99,150 **** */ public String getId() { return m_id; } - - /** - * Accessor method for the boolean result of the execution of the pending action. - * true == successful execution - * @param value The result flag - * @see #m_result - */ - public void setResult(boolean value) { m_result = value; } - /** - * Accessor method for the boolean result of the execution of the pending action. - * true == successful execution - * @return The result flag - * @see #m_result - */ - public boolean getResult() { return m_result; } - - /** - * Accessor method for the client and server TRID pair associated with the pending action - * @param value The client/server TRID pair - * @see #m_trid - */ - public void setTrid(org.openrtk.idl.epp.epp_TransID value) { m_trid = value; } - /** - * Accessor method for the client and server TRID pair associated with the pending action - * @return The client/server TRID pair - * @see #m_trid - */ - public org.openrtk.idl.epp.epp_TransID getTrid() { return m_trid; } - - /** - * Accessor method for the pending action's completion or failure - * @param value The date of the pending action's completion or failure - * @see #m_date - */ - public void setDate(String value) { m_date = value; } - /** - * Accessor method for the pending action's completion or failure - * @return The date of the pending action's completion or failure - * @see #m_date - */ - public String getDate() { return m_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; } /** --- 84,87 ---- |
From: Daniel M. <tub...@us...> - 2003-03-18 16:28:59
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory sc8-pr-cvs1:/tmp/cvs-serv20246 Added Files: epp_PanData.java Log Message: better design for the panData to make it more flexible --- NEW FILE: epp_PanData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2003, Liberty RMS ** ** ** 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; /** * This class is use exclusively to hold data associate with a Poll response for a pending action notification.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_PanData.java,v 1.1 2003/03/18 16:28:47 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/18 16:28:47 $<br> */ public abstract class epp_PanData extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.portable.IDLEntity { /** * The result flag for this pending action -- true == successful */ public boolean m_result; /** * The client and server TRID pair from the EPP request/response which trigger this * pending action. */ public org.openrtk.idl.epp.epp_TransID m_trid; /** * The date this pending action completed or failed in the server. */ public String m_date; /** * Empty constructor */ public epp_PanData () { } // ctor /** * The constructor with initializing variables. * @param _m_result The boolean result flag for the action: true == successful execution * @param _m_trid The server and client trid pair associated with this pending action * @param _m_date The date the pending action completed (or failed) */ public epp_PanData (boolean _m_result, org.openrtk.idl.epp.epp_TransID _m_trid, String _m_date) { m_result = _m_result; m_trid = _m_trid; m_date = _m_date; } // ctor /** * Accessor method for the boolean result of the execution of the pending action. * true == successful execution * @param value The result flag * @see #m_result */ public void setResult(boolean value) { m_result = value; } /** * Accessor method for the boolean result of the execution of the pending action. * true == successful execution * @return The result flag * @see #m_result */ public boolean getResult() { return m_result; } /** * Accessor method for the client and server TRID pair associated with the pending action * @param value The client/server TRID pair * @see #m_trid */ public void setTrid(org.openrtk.idl.epp.epp_TransID value) { m_trid = value; } /** * Accessor method for the client and server TRID pair associated with the pending action * @return The client/server TRID pair * @see #m_trid */ public org.openrtk.idl.epp.epp_TransID getTrid() { return m_trid; } /** * Accessor method for the pending action's completion or failure * @param value The date of the pending action's completion or failure * @see #m_date */ public void setDate(String value) { m_date = value; } /** * Accessor method for the pending action's completion or failure * @return The date of the pending action's completion or failure * @see #m_date */ public String getDate() { return m_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; } } // interface epp_ContactPanData |
From: Daniel M. <tub...@us...> - 2003-03-18 16:28:58
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv20094/xml Modified Files: EPPXMLBase.java Log Message: parsing code for pending action notification xml (panData) Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** EPPXMLBase.java 18 Mar 2003 00:10:24 -0000 1.30 --- EPPXMLBase.java 18 Mar 2003 16:28:22 -0000 1.31 *************** *** 257,282 **** } - epp_TransID trans_id = new epp_TransID(); - NodeList trans_id_nodes = ((Element)response_node).getElementsByTagName("trID"); - if ( trans_id_nodes.getLength() == 0 ) { throw new epp_XMLException("missing result trans id"); } - Node trans_id_node = trans_id_nodes.item(0); ! ! NodeList inner_nodes = trans_id_node.getChildNodes(); ! ! for (int count = 0; count < inner_nodes.getLength(); count++) ! { ! Node a_node = inner_nodes.item(count); ! ! if ( a_node.getNodeName().equals("clTRID") ) { trans_id.m_client_trid = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("svTRID") ) { trans_id.m_server_trid = a_node.getFirstChild().getNodeValue(); } ! } ! ! generic_response.m_trans_id = trans_id; NodeList msg_queue_nodes = ((Element)response_node).getElementsByTagName("msgQ"); --- 257,267 ---- } NodeList trans_id_nodes = ((Element)response_node).getElementsByTagName("trID"); if ( trans_id_nodes.getLength() == 0 ) { throw new epp_XMLException("missing result trans id"); } Node trans_id_node = trans_id_nodes.item(0); ! generic_response.m_trans_id = getTransID(trans_id_node); NodeList msg_queue_nodes = ((Element)response_node).getElementsByTagName("msgQ"); *************** *** 783,785 **** --- 768,814 ---- } + public static String getPanData(NodeList pan_data_list, String namespace_uri, epp_PanData pan_data) + throws epp_XMLException + { + String the_key = ""; + + for (int count = 0; count < pan_data_list.getLength(); count++) + { + Node a_node = pan_data_list.item(count); + + if ( a_node.getLocalName().equals("id") || + a_node.getLocalName().equals("name") ) + { + String paResult = ((Element)a_node).getAttribute("paResult"); + pan_data.setResult( ( paResult.equals("1") || paResult.equals("true") ? true : false ) ); + the_key = a_node.getFirstChild().getNodeValue(); + } + if ( a_node.getLocalName().equals("paDate") ) { pan_data.setDate(a_node.getFirstChild().getNodeValue()); } + if ( a_node.getLocalName().equals("paTRID") ) + { + NodeList inner_nodes = a_node.getChildNodes(); + pan_data.setTrid(getTransID(a_node)); + } + + } + + return the_key; + } + + public static epp_TransID getTransID(Node trans_id_node) + { + epp_TransID trans_id = new epp_TransID(); + + NodeList inner_nodes = trans_id_node.getChildNodes(); + + for (int count = 0; count < inner_nodes.getLength(); count++) + { + Node a_node = inner_nodes.item(count); + + if ( a_node.getLocalName().equals("clTRID") ) { trans_id.m_client_trid = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getLocalName().equals("svTRID") ) { trans_id.m_server_trid = a_node.getFirstChild().getNodeValue(); } + } + + return trans_id; + } } |
From: Daniel M. <tub...@us...> - 2003-03-18 16:28:31
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll In directory sc8-pr-cvs1:/tmp/cvs-serv20094/xml/poll Modified Files: domaintrnData.java Added Files: contactpanData.java domainpanData.java hostpanData.java Log Message: parsing code for pending action notification xml (panData) --- NEW FILE: contactpanData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2003, Liberty RMS ** ** ** 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 org.openrtk.idl.epp.*; import org.openrtk.idl.epp.contact.epp_ContactPanData; import org.w3c.dom.*; /** * An implementation of PollResData for contact transfer poll * response data. * Populates the epp_PollResData with the epp_PollResDataUnion * and m_contact_transfer member set.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/contactpanData.java,v 1.1 2003/03/18 16:28:24 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/18 16:28:24 $<br> */ public class contactpanData extends EPPXMLBase implements PollResData { private epp_ContactPanData poll_res_data_; /** * Populates the poll res data with pending action notification data. */ public void fromXML(Node res_data_node) throws epp_XMLException { String method_name = "fromXML(Node)"; NodeList contact_pan_data_list = res_data_node.getChildNodes(); poll_res_data_ = new epp_ContactPanData(); debug(DEBUG_LEVEL_TWO,method_name,"contact:panData's node count ["+contact_pan_data_list.getLength()+"]"); if ( contact_pan_data_list.getLength() == 0 ) { throw new epp_XMLException("missing contact pan data"); } String contact_id = EPPXMLBase.getPanData( contact_pan_data_list, res_data_node.getNamespaceURI(), (epp_PanData)poll_res_data_ ); poll_res_data_.setId(contact_id); } /** * Returns the epp_PollResData private member. * Should only be called after a successful fromXML() * otherwise, the poll res data will be null. */ public epp_PollResData getPollResData() { return poll_res_data_; } } --- NEW FILE: domainpanData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2003, Liberty RMS ** ** ** 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_DomainPanData; import org.w3c.dom.*; /** * An implementation of PollResData for contact transfer poll * response data. * Populates the epp_PollResData with the epp_PollResDataUnion * and m_domain_transfer member set.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/domainpanData.java,v 1.1 2003/03/18 16:28:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/18 16:28:25 $<br> */ public class domainpanData extends EPPXMLBase implements PollResData { private epp_DomainPanData poll_res_data_; /** * Populates the poll res data with epp_PollDomainTransfer * data. */ public void fromXML(Node res_data_node) throws epp_XMLException { String method_name = "fromXML(Node)"; NodeList domain_pan_data_list = res_data_node.getChildNodes(); poll_res_data_ = new epp_DomainPanData(); debug(DEBUG_LEVEL_TWO,method_name,"domain:panData's node count ["+domain_pan_data_list.getLength()+"]"); if ( domain_pan_data_list.getLength() == 0 ) { throw new epp_XMLException("missing domain pan data"); } String domain_name = EPPXMLBase.getPanData( domain_pan_data_list, res_data_node.getNamespaceURI(), (epp_PanData)poll_res_data_ ); poll_res_data_.setName(domain_name); } /** * Returns the epp_PollResData private member. * Should only be called after a successful fromXML() * otherwise, the poll res data will be null. */ public epp_PollResData getPollResData() { return poll_res_data_; } } --- NEW FILE: hostpanData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2003, Liberty RMS ** ** ** 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.EPPHostBase; import org.openrtk.idl.epp.*; import org.openrtk.idl.epp.host.epp_HostPanData; import org.w3c.dom.*; /** * An implementation of PollResData for contact transfer poll * response data. * Populates the epp_PollResData with the epp_PollResDataUnion * and m_host_transfer member set.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/hostpanData.java,v 1.1 2003/03/18 16:28:26 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/18 16:28:26 $<br> */ public class hostpanData extends EPPXMLBase implements PollResData { private epp_HostPanData poll_res_data_; /** * Populates the poll res data with pending action notification data. */ public void fromXML(Node res_data_node) throws epp_XMLException { String method_name = "fromXML(Node)"; NodeList host_pan_data_list = res_data_node.getChildNodes(); poll_res_data_ = new epp_HostPanData(); debug(DEBUG_LEVEL_TWO,method_name,"host:panData's node count ["+host_pan_data_list.getLength()+"]"); if ( host_pan_data_list.getLength() == 0 ) { throw new epp_XMLException("missing host pan data"); } String host_name = EPPXMLBase.getPanData( host_pan_data_list, res_data_node.getNamespaceURI(), (epp_PanData)poll_res_data_ ); poll_res_data_.setName(host_name); } /** * Returns the epp_PollResData private member. * Should only be called after a successful fromXML() * otherwise, the poll res data will be null. */ public epp_PollResData getPollResData() { return poll_res_data_; } } 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.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** domaintrnData.java 17 Mar 2003 21:42:35 -0000 1.4 --- domaintrnData.java 18 Mar 2003 16:28:25 -0000 1.5 *************** *** 3,7 **** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ! ** Copyright (C) 2003, Tucows, Inc. ** ** --- 3,7 ---- ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** |
From: Daniel M. <tub...@us...> - 2003-03-18 00:10:27
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv27699/xml Modified Files: EPPXMLBase.java Log Message: code to try to parse the <extValue> nodes in the generic results Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** EPPXMLBase.java 17 Mar 2003 21:42:34 -0000 1.29 --- EPPXMLBase.java 18 Mar 2003 00:10:24 -0000 1.30 *************** *** 176,179 **** --- 176,206 ---- } + NodeList ext_value_nodes = an_element.getElementsByTagName("extValue"); + + List ext_values = (List)new ArrayList(); + + if ( ext_value_nodes.getLength() > 0 ) + { + for (int count2 = 0; count2 < ext_value_nodes.getLength(); count2++) + { + Node ext_value_node = ext_value_nodes.item(count2); + epp_ResultValue value = new epp_ResultValue( ext_value_node.getNamespaceURI(), + ext_value_node.getFirstChild().getNodeValue(), + ext_value_node.getNodeName(), + ext_value_node.getFirstChild().getNodeValue() ); + epp_ExtResultValue ext_value = new epp_ExtResultValue( value, null ); + NodeList reason_nodes = ((Element)ext_value_node).getElementsByTagName("reason"); + if ( reason_nodes.getLength() > 0 ) { + ext_value.m_reason = reason_nodes.item(0).getNodeValue(); + } + + // XXX have to parse stuff here if we can. + ext_values.add(ext_value); + } + result.m_ext_values = (epp_ExtResultValue[])convertListToArray((new epp_ExtResultValue()).getClass(), ext_values); + + } + + results.add(result); |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv21055/src/com/tucows/oxrs/epp/rtk/xml Modified Files: EPPContactBase.java EPPContactCheck.java EPPContactCreate.java EPPContactDelete.java EPPContactInfo.java EPPContactTransfer.java EPPContactUpdate.java EPPDomainBase.java EPPDomainCheck.java EPPDomainCreate.java EPPDomainDelete.java EPPDomainInfo.java EPPDomainRenew.java EPPDomainTransfer.java EPPDomainUpdate.java EPPGreeting.java EPPHostBase.java EPPHostCheck.java EPPHostCreate.java EPPHostDelete.java EPPHostInfo.java EPPHostUpdate.java EPPLogin.java EPPLogout.java EPPPoll.java EPPXMLBase.java EPPXMLErrors.java Removed Files: EPPStatus.java Log Message: minimal updates to classes for successful compile updates to copywrite dates upped version to 1.0.1 Index: EPPContactBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactBase.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPContactBase.java 15 Mar 2002 15:31:48 -0000 1.11 --- EPPContactBase.java 17 Mar 2003 21:42:30 -0000 1.12 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 83,88 **** --- 84,91 ---- contact_status_hash_.put("linked", epp_ContactStatusType.LINKED); contact_status_hash_.put("ok", epp_ContactStatusType.OK); + contact_status_hash_.put("pendingCreate", epp_ContactStatusType.PENDING_CREATE); contact_status_hash_.put("pendingDelete", epp_ContactStatusType.PENDING_DELETE); contact_status_hash_.put("pendingTransfer", epp_ContactStatusType.PENDING_TRANSFER); + contact_status_hash_.put("pendingUpdate", epp_ContactStatusType.PENDING_UPDATE); } } Index: EPPContactCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCheck.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPContactCheck.java 14 Aug 2002 20:03:49 -0000 1.7 --- EPPContactCheck.java 17 Mar 2003 21:42:30 -0000 1.8 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element contact_check = doc.createElement("contact:check"); setCommonAttributes(contact_check); --- 123,126 ---- Index: EPPContactCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCreate.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPContactCreate.java 25 Aug 2002 22:59:25 -0000 1.11 --- EPPContactCreate.java 17 Mar 2003 21:42:30 -0000 1.12 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 121,129 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element contact_create = doc.createElement("contact:create"); setCommonAttributes(contact_create); --- 122,125 ---- Index: EPPContactDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactDelete.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPContactDelete.java 14 Aug 2002 20:03:50 -0000 1.6 --- EPPContactDelete.java 17 Mar 2003 21:42:30 -0000 1.7 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 124,132 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element contact_delete = doc.createElement("contact:delete"); setCommonAttributes(contact_delete); --- 125,128 ---- Index: EPPContactInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactInfo.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPContactInfo.java 25 Aug 2002 22:59:25 -0000 1.11 --- EPPContactInfo.java 17 Mar 2003 21:42:30 -0000 1.12 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element contact_info = doc.createElement("contact:info"); setCommonAttributes(contact_info); --- 123,126 ---- Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EPPContactTransfer.java 14 Aug 2002 20:03:50 -0000 1.12 --- EPPContactTransfer.java 17 Mar 2003 21:42:30 -0000 1.13 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 132,140 **** Element command = doc.createElement("command"); - - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } Element transfer = doc.createElement("transfer"); --- 133,136 ---- Index: EPPContactUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactUpdate.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPContactUpdate.java 25 Aug 2002 22:59:25 -0000 1.11 --- EPPContactUpdate.java 17 Mar 2003 21:42:30 -0000 1.12 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 123,131 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element contact_update = doc.createElement("contact:update"); setCommonAttributes(contact_update); --- 124,127 ---- Index: EPPDomainBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainBase.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPDomainBase.java 15 Mar 2002 15:31:48 -0000 1.10 --- EPPDomainBase.java 17 Mar 2003 21:42:30 -0000 1.11 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 90,96 **** domain_status_hash_.put("inactive", epp_DomainStatusType.INACTIVE); domain_status_hash_.put("ok", epp_DomainStatusType.OK); domain_status_hash_.put("pendingDelete", epp_DomainStatusType.PENDING_DELETE); domain_status_hash_.put("pendingTransfer", epp_DomainStatusType.PENDING_TRANSFER); ! domain_status_hash_.put("pendingVerification", epp_DomainStatusType.PENDING_VERIFICATION); domain_status_hash_.put("serverDeleteProhibited", epp_DomainStatusType.SERVER_DELETE_PROHIBITED); domain_status_hash_.put("serverHold", epp_DomainStatusType.SERVER_HOLD); --- 91,99 ---- domain_status_hash_.put("inactive", epp_DomainStatusType.INACTIVE); domain_status_hash_.put("ok", epp_DomainStatusType.OK); + domain_status_hash_.put("pendingCreate", epp_DomainStatusType.PENDING_CREATE); domain_status_hash_.put("pendingDelete", epp_DomainStatusType.PENDING_DELETE); domain_status_hash_.put("pendingTransfer", epp_DomainStatusType.PENDING_TRANSFER); ! domain_status_hash_.put("pendingRenew", epp_DomainStatusType.PENDING_RENEW); ! domain_status_hash_.put("pendingUpdate", epp_DomainStatusType.PENDING_UPDATE); domain_status_hash_.put("serverDeleteProhibited", epp_DomainStatusType.SERVER_DELETE_PROHIBITED); domain_status_hash_.put("serverHold", epp_DomainStatusType.SERVER_HOLD); Index: EPPDomainCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCheck.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPDomainCheck.java 14 Aug 2002 20:03:50 -0000 1.7 --- EPPDomainCheck.java 17 Mar 2003 21:42:30 -0000 1.8 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element domain_check = doc.createElement("domain:check"); setCommonAttributes(domain_check); --- 123,126 ---- Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPDomainCreate.java 14 Aug 2002 20:03:50 -0000 1.11 --- EPPDomainCreate.java 17 Mar 2003 21:42:31 -0000 1.12 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element domain_create = doc.createElement("domain:create"); setCommonAttributes(domain_create); --- 123,126 ---- Index: EPPDomainDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainDelete.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPDomainDelete.java 14 Aug 2002 20:03:50 -0000 1.6 --- EPPDomainDelete.java 17 Mar 2003 21:42:31 -0000 1.7 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 124,132 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element domain_delete = doc.createElement("domain:delete"); setCommonAttributes(domain_delete); --- 125,128 ---- Index: EPPDomainInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainInfo.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPDomainInfo.java 14 Aug 2002 20:03:50 -0000 1.10 --- EPPDomainInfo.java 17 Mar 2003 21:42:31 -0000 1.11 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 128,136 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element domain_info = doc.createElement("domain:info"); setCommonAttributes(domain_info); --- 129,132 ---- Index: EPPDomainRenew.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainRenew.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPDomainRenew.java 14 Aug 2002 20:03:50 -0000 1.10 --- EPPDomainRenew.java 17 Mar 2003 21:42:31 -0000 1.11 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element domain_renew = doc.createElement("domain:renew"); setCommonAttributes(domain_renew); --- 123,126 ---- Index: EPPDomainTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainTransfer.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EPPDomainTransfer.java 14 Aug 2002 20:03:50 -0000 1.11 --- EPPDomainTransfer.java 17 Mar 2003 21:42:32 -0000 1.12 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 132,140 **** Element command = doc.createElement("command"); - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element transfer = doc.createElement("transfer"); transfer.setAttribute("op", transfer_request_data.m_op.toString()); --- 133,136 ---- Index: EPPDomainUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainUpdate.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPDomainUpdate.java 14 Aug 2002 20:03:50 -0000 1.9 --- EPPDomainUpdate.java 17 Mar 2003 21:42:32 -0000 1.10 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 123,131 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element domain_update = doc.createElement("domain:update"); setCommonAttributes(domain_update); --- 124,127 ---- Index: EPPGreeting.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPGreeting.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPGreeting.java 14 Aug 2002 20:03:50 -0000 1.8 --- EPPGreeting.java 17 Mar 2003 21:42:32 -0000 1.9 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** Index: EPPHostBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostBase.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPHostBase.java 15 Mar 2002 15:31:48 -0000 1.9 --- EPPHostBase.java 17 Mar 2003 21:42:32 -0000 1.10 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 95,100 **** --- 96,103 ---- host_status_hash_.put("linked", epp_HostStatusType.LINKED); host_status_hash_.put("ok", epp_HostStatusType.OK); + host_status_hash_.put("pendingCreate", epp_HostStatusType.PENDING_CREATE); host_status_hash_.put("pendingDelete", epp_HostStatusType.PENDING_DELETE); host_status_hash_.put("pendingTransfer", epp_HostStatusType.PENDING_TRANSFER); + host_status_hash_.put("pendingUpdate", epp_HostStatusType.PENDING_UPDATE); host_status_hash_.put("serverDeleteProhibited", epp_HostStatusType.SERVER_DELETE_PROHIBITED); host_status_hash_.put("serverUpdateProhibited", epp_HostStatusType.SERVER_UPDATE_PROHIBITED); Index: EPPHostCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCheck.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPHostCheck.java 14 Aug 2002 20:03:51 -0000 1.7 --- EPPHostCheck.java 17 Mar 2003 21:42:32 -0000 1.8 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element host_check = doc.createElement("host:check"); setCommonAttributes(host_check); --- 123,126 ---- Index: EPPHostCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCreate.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPHostCreate.java 14 Aug 2002 20:03:51 -0000 1.10 --- EPPHostCreate.java 17 Mar 2003 21:42:33 -0000 1.11 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element host_create = doc.createElement("host:create"); setCommonAttributes(host_create); --- 123,126 ---- Index: EPPHostDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostDelete.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPHostDelete.java 14 Aug 2002 20:03:51 -0000 1.6 --- EPPHostDelete.java 17 Mar 2003 21:42:33 -0000 1.7 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 124,132 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element host_delete = doc.createElement("host:delete"); setCommonAttributes(host_delete); --- 125,128 ---- Index: EPPHostInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostInfo.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPHostInfo.java 14 Aug 2002 20:03:51 -0000 1.9 --- EPPHostInfo.java 17 Mar 2003 21:42:33 -0000 1.10 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 122,130 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element host_info = doc.createElement("host:info"); setCommonAttributes(host_info); --- 123,126 ---- Index: EPPHostUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostUpdate.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPHostUpdate.java 14 Aug 2002 20:03:51 -0000 1.9 --- EPPHostUpdate.java 17 Mar 2003 21:42:33 -0000 1.10 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 123,131 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - Element host_update = doc.createElement("host:update"); setCommonAttributes(host_update); --- 124,127 ---- Index: EPPLogin.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogin.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPLogin.java 14 Aug 2002 20:03:51 -0000 1.9 --- EPPLogin.java 17 Mar 2003 21:42:33 -0000 1.10 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 99,104 **** if ( action_request_ == null || ! action_request_.m_cmd == null || ! action_request_.m_cmd.m_creds == null ) { throw new epp_XMLException("missing login request or creds data"); --- 100,104 ---- if ( action_request_ == null || ! action_request_.m_cmd == null ) { throw new epp_XMLException("missing login request or creds data"); *************** *** 118,125 **** epp_Command command_data = action_request_.m_cmd; ! Element creds = prepareCreds( doc, command_data.m_creds ); - command.appendChild( creds ); - // Now for services Element services_element = doc.createElement("svcs"); --- 118,142 ---- epp_Command command_data = action_request_.m_cmd; ! addXMLElement(doc, login, "clID", action_request_.m_client_id); ! addXMLElement(doc, login, "pw", action_request_.m_password); ! if ( action_request_.m_new_password != null ) ! { ! addXMLElement(doc, login, "newPW", action_request_.m_new_password); ! } ! ! if ( action_request_.m_options != null ) ! { ! Element options_element = doc.createElement("options"); ! if ( action_request_.m_options.m_version != null ) ! { ! addXMLElement(doc, options_element, "version", action_request_.m_options.m_version); ! } ! if ( action_request_.m_options.m_lang != null ) ! { ! addXMLElement(doc, options_element, "lang", action_request_.m_options.m_lang); ! } ! login.appendChild( options_element ); ! } // Now for services Element services_element = doc.createElement("svcs"); Index: EPPLogout.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogout.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** EPPLogout.java 14 Aug 2002 20:03:51 -0000 1.10 --- EPPLogout.java 17 Mar 2003 21:42:33 -0000 1.11 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** Index: EPPPoll.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPPoll.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPPoll.java 14 Aug 2002 20:03:51 -0000 1.8 --- EPPPoll.java 17 Mar 2003 21:42:34 -0000 1.9 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows Inc. ** ** This program is free software; you can redistribute it and/or modify --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** This program is free software; you can redistribute it and/or modify *************** *** 105,113 **** epp_Command command_data = action_request_.m_cmd; - if ( command_data.m_creds != null ) - { - command.appendChild( prepareCreds( doc, command_data.m_creds ) ); - } - if ( action_request_.m_op == null ) { --- 106,109 ---- Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** EPPXMLBase.java 14 Aug 2002 20:03:51 -0000 1.28 --- EPPXMLBase.java 17 Mar 2003 21:42:34 -0000 1.29 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** *************** *** 55,72 **** /** - * Array to allow for conversion from epp_TransferStatusType to - * a String representation of the transfer status. - * The epp_TransferStatusType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp.idl for the definition of the epp_TransferStatusType enum - */ - protected static String[] transfer_op_to_string_array_ = { - "approve", - "cancel", - "query", - "reject", - "request" - }; - /** * Hashtable to allow for conversion from String transfer status to * epp_TransferStatusType. --- 56,59 ---- *************** *** 76,89 **** /** - * Array to allow for conversion from epp_AuthInfoType to - * a String representation of the auth id type. - * The epp_AuthInfoType static classes have a value() member - * function which returns their integer position in the enum. - * @see The EPP IDL epp.idl for the definition of the epp_AuthInfoType enum - */ - public static String[] auth_type_to_string_array_ = { - "pw" - }; - /** * Hashtable to allow for conversion from String auth id type to * epp_AuthInfoType. --- 63,66 ---- *************** *** 143,146 **** --- 120,124 ---- auth_type_string_to_type_hash_ = new Hashtable(); auth_type_string_to_type_hash_.put("pw", epp_AuthInfoType.PW); + auth_type_string_to_type_hash_.put("ext", epp_AuthInfoType.EXT); } } *************** *** 198,219 **** } - NodeList data_nodes = an_element.getElementsByTagName("data"); - if ( data_nodes != null && data_nodes.getLength() != 0 ) - { - // This just looks sooo ugly... is there a better way? - // FIXME - Node data_node = data_nodes.item(0); - Node status_node = ((Element)data_node).getElementsByTagName("status").item(0); - Node cltrid_node = ((Element)status_node).getElementsByTagName("clTRID").item(0); - result.m_data = new epp_ResultData(new epp_StatusResultData()); - String ack_value = ((Element)cltrid_node).getAttribute("ack"); - result.m_data.m_status.m_ack = ack_value.equals("1") ? true : false; - result.m_data.m_status.m_cltrid = cltrid_node.getFirstChild().getNodeValue(); - } - else - { - result.m_data = null; - } - results.add(result); --- 176,179 ---- *************** *** 548,588 **** /** - * Creates an EPP <creds> Element using the given epp_Credentials. - * The epp_Credentials cannot be null. If the new password in the creds - * is null, it is not added to the resulting Element. - * @param Document the Document instance that is creating the Elements - * @param epp_Credentials the non-null credentials - * @return Element the resulting EPP <creds> Element - */ - protected Element prepareCreds(Document doc, - epp_Credentials creds) - { - Element creds_element = doc.createElement("creds"); - - addXMLElement(doc, creds_element, "clID", creds.m_client_id); - addXMLElement(doc, creds_element, "pw", creds.m_password); - if ( creds.m_new_password != null ) - { - addXMLElement(doc, creds_element, "newPW", creds.m_new_password); - } - - if ( creds.m_options != null ) - { - Element options_element = doc.createElement("options"); - if ( creds.m_options.m_version != null ) - { - addXMLElement(doc, options_element, "version", creds.m_options.m_version); - } - if ( creds.m_options.m_lang != null ) - { - addXMLElement(doc, options_element, "lang", creds.m_options.m_lang); - } - creds_element.appendChild( options_element ); - } - - return creds_element; - } - - /** * Creates an EPP <Object:authInfo> Element. * @param Document the Document instance that is creating the Elements --- 508,511 ---- *************** *** 601,610 **** if ( auth_info.m_type == null ) { ! // At the time of writing this, the only value possible ! // was PW. So let's default it if it's not set. auth_info.m_type = epp_AuthInfoType.PW; } ! auth_info_element.setAttribute( "type", auth_type_to_string_array_[auth_info.m_type.value()] ); if ( auth_info.m_roid != null ) --- 524,533 ---- if ( auth_info.m_type == null ) { ! // At the time of writing this, the two values possible ! // were PW or EXT. PW is the most common, so let's default it. auth_info.m_type = epp_AuthInfoType.PW; } ! auth_info_element.setAttribute( "type", auth_info.m_type.toString() ); if ( auth_info.m_roid != null ) Index: EPPXMLErrors.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLErrors.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPXMLErrors.java 28 Sep 2001 16:23:38 -0000 1.4 --- EPPXMLErrors.java 17 Mar 2003 21:42:35 -0000 1.5 *************** *** 2,6 **** ** ** EPP RTK Java ! ** Copyright (C) 2001, Tucows, Inc. ** ** --- 2,7 ---- ** ** EPP RTK Java ! ** Copyright (C) 2001-2002, Tucows, Inc. ! ** Copyright (C) 2003, Liberty RMS ** ** --- EPPStatus.java DELETED --- |