You can subscribe to this list here.
2002 |
Jan
|
Feb
(1) |
Mar
(74) |
Apr
(4) |
May
(14) |
Jun
|
Jul
(4) |
Aug
(9) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(186) |
Apr
(26) |
May
(4) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(64) |
Oct
|
Nov
|
Dec
(11) |
2004 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(25) |
2005 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(6) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel M. <tub...@us...> - 2002-03-15 02:33:04
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv31354/xml Modified Files: EPPContactCreate.java EPPDomainCreate.java Log Message: throw an epp_Exception is the <resData> tag is not present Index: EPPContactCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCreate.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPContactCreate.java 14 Mar 2002 22:59:36 -0000 1.8 --- EPPContactCreate.java 15 Mar 2002 02:33:01 -0000 1.9 *************** *** 237,240 **** --- 237,244 ---- Element response_data_element = getElement(response_node.getChildNodes(), "resData"); + if ( response_data_element == null ) + { + throw new epp_XMLException("response is missing the resData element"); + } NodeList contact_create_data_list = response_data_element.getElementsByTagName("contact:creData").item(0).getChildNodes(); Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPDomainCreate.java 14 Mar 2002 22:57:04 -0000 1.8 --- EPPDomainCreate.java 15 Mar 2002 02:33:01 -0000 1.9 *************** *** 239,242 **** --- 239,246 ---- Element response_data_element = getElement(response_node.getChildNodes(), "resData"); + if ( response_data_element == null ) + { + throw new epp_XMLException("response is missing the resData element"); + } NodeList domain_create_data_list = response_data_element.getElementsByTagName("domain:creData").item(0).getChildNodes(); |
From: Daniel M. <tub...@us...> - 2002-03-15 02:31:56
|
Update of /cvsroot/epp-rtk/epp-rtk/java/etc In directory usw-pr-cvs1:/tmp/cvs-serv30666/etc Modified Files: rtk.properties Log Message: added a property to allow the user to set whether the EPPClient will send the RTK's version number to the server in the Login command Index: rtk.properties =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/etc/rtk.properties,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rtk.properties 13 Mar 2002 02:31:37 -0000 1.4 --- rtk.properties 15 Mar 2002 02:31:53 -0000 1.5 *************** *** 26,27 **** --- 26,33 ---- # Default value is 1. rtk.debuglevel=1 + + # Using EPPClient's login method has the possibility of + # sending the RTK's version number from RTKBase.VERSION. + # Setting this value to true or false indicates whether + # you wish to send the RTK's version to the server. + rtk.login.sendversion=false |
From: Daniel M. <tub...@us...> - 2002-03-15 00:00:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/transport In directory usw-pr-cvs1:/tmp/cvs-serv13920 Modified Files: EPPTransportTCP.java Log Message: ouch! added in hack from GNR... Index: EPPTransportTCP.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/transport/EPPTransportTCP.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPTransportTCP.java 14 Mar 2002 17:35:14 -0000 1.4 --- EPPTransportTCP.java 14 Mar 2002 23:59:58 -0000 1.5 *************** *** 263,268 **** if (line.startsWith("#") || line.length() == 0) continue; if (!line.startsWith("<")) buf.append(' '); ! buf.append(line); ! if (line.endsWith("?>")) buf.append(CRLF); if (line.trim().endsWith("</epp>")) break; } --- 263,268 ---- if (line.startsWith("#") || line.length() == 0) continue; if (!line.startsWith("<")) buf.append(' '); ! // FIXME: Hack to prevent <?xml .. ?> to be sent multiple times ! if (!line.endsWith("?>")) buf.append(line); if (line.trim().endsWith("</epp>")) break; } |
From: Larry Y. <ly...@us...> - 2002-03-14 23:43:51
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv8805 Modified Files: EPPXMLBase.java Log Message: small improvement Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** EPPXMLBase.java 14 Mar 2002 23:31:31 -0000 1.24 --- EPPXMLBase.java 14 Mar 2002 23:43:46 -0000 1.25 *************** *** 716,725 **** { Node the_node = one_check_list.item(i); ! if (the_node.getNodeName().endsWith(":name")) ! { ! chk_result.m_value = the_node.getFirstChild().getNodeValue(); ! chk_result.m_avail = ((Element)the_node).getAttribute("avail").equals("1") ? true : false; ! } ! if (the_node.getNodeName().endsWith(":id")) { chk_result.m_value = the_node.getFirstChild().getNodeValue(); --- 716,721 ---- { Node the_node = one_check_list.item(i); ! if (the_node.getNodeName().endsWith(":name") || ! the_node.getNodeName().endsWith(":id")) { chk_result.m_value = the_node.getFirstChild().getNodeValue(); |
From: Larry Y. <ly...@us...> - 2002-03-14 23:31:34
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv4214 Modified Files: EPPXMLBase.java Log Message: modified parseGenericCheckResult method to recognize <object:id> 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.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** EPPXMLBase.java 14 Mar 2002 23:23:14 -0000 1.23 --- EPPXMLBase.java 14 Mar 2002 23:31:31 -0000 1.24 *************** *** 721,724 **** --- 721,729 ---- chk_result.m_avail = ((Element)the_node).getAttribute("avail").equals("1") ? true : false; } + if (the_node.getNodeName().endsWith(":id")) + { + chk_result.m_value = the_node.getFirstChild().getNodeValue(); + chk_result.m_avail = ((Element)the_node).getAttribute("avail").equals("1") ? true : false; + } if (the_node.getNodeName().endsWith(":reason")) { |
From: Daniel M. <tub...@us...> - 2002-03-14 23:23:18
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv1134 Modified Files: EPPLogin.java EPPLogout.java EPPPoll.java EPPStatus.java EPPXMLBase.java Log Message: converted prepareExtensionElement() to accept the command element and to only add the extension to the command if it is not null converted login, logout, poll and status to use this new method signature Index: EPPLogin.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogin.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPLogin.java 13 Mar 2002 02:03:25 -0000 1.7 --- EPPLogin.java 14 Mar 2002 23:23:14 -0000 1.8 *************** *** 148,152 **** command.appendChild( login ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 148,152 ---- command.appendChild( login ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPLogout.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogout.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPLogout.java 13 Mar 2002 02:03:25 -0000 1.8 --- EPPLogout.java 14 Mar 2002 23:23:14 -0000 1.9 *************** *** 108,120 **** if ( action_request_ != null ) { ! // in this situation, unspec may be null ! command.appendChild( prepareExtensionElement( doc, action_request_.m_extension ) ); ! } ! else ! { ! // in this situation, we're putting an empty ! // unspec in the command. ! Element extension = doc.createElement("extension"); ! command.appendChild( extension ); } --- 108,112 ---- if ( action_request_ != null ) { ! prepareExtensionElement( doc, command, action_request_.m_extension ); } Index: EPPPoll.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPPoll.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPPoll.java 13 Mar 2002 02:03:25 -0000 1.6 --- EPPPoll.java 14 Mar 2002 23:23:14 -0000 1.7 *************** *** 126,130 **** command.appendChild( poll ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 126,130 ---- command.appendChild( poll ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPStatus.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPStatus.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EPPStatus.java 13 Mar 2002 19:47:47 -0000 1.1 --- EPPStatus.java 14 Mar 2002 23:23:14 -0000 1.2 *************** *** 122,126 **** command.appendChild( status ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 122,126 ---- command.appendChild( status ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** EPPXMLBase.java 13 Mar 2002 22:33:49 -0000 1.22 --- EPPXMLBase.java 14 Mar 2002 23:23:14 -0000 1.23 *************** *** 834,844 **** * Method to change an epp_Extension instance to XML elements. */ ! protected Element prepareExtensionElement( Document doc, ! epp_Extension extension ) throws epp_XMLException { String method_name = "prepareExtensionElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); - Element extension_element = doc.createElement("extension"); if ( extension != null ) { --- 834,844 ---- * Method to change an epp_Extension instance to XML elements. */ ! protected void prepareExtensionElement( Document doc, ! Element command, ! epp_Extension extension ) throws epp_XMLException { String method_name = "prepareExtensionElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if ( extension != null ) { *************** *** 849,852 **** --- 849,853 ---- try { + Element extension_element = doc.createElement("extension"); Node extension_node = getExtensionNode(extension_string); if ( extension_node != null ) *************** *** 860,865 **** // it is just a string (eg "hellothere") and this // can be included as a raw string in the extension tag. ! extension_element.appendChild( doc.createTextNode(extension_string) ); } } catch ( Exception xcp ) --- 861,868 ---- // it is just a string (eg "hellothere") and this // can be included as a raw string in the extension tag. ! extension_element.appendChild( doc.createTextNode(extension_string) ); } + + command.appendChild( extension_element ); } catch ( Exception xcp ) *************** *** 871,875 **** } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); - return extension_element; } --- 874,877 ---- |
From: Daniel M. <tub...@us...> - 2002-03-14 22:59:39
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv24467 Modified Files: EPPContactCheck.java EPPContactCreate.java EPPContactDelete.java EPPContactInfo.java EPPContactTransfer.java EPPContactUpdate.java EPPHostCheck.java EPPHostCreate.java EPPHostDelete.java EPPHostInfo.java EPPHostUpdate.java Log Message: changed how extensions are added to XML -- EPPXMLBase's method is now in full control of the addition of extension element Index: EPPContactCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCheck.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPContactCheck.java 13 Mar 2002 19:19:16 -0000 1.5 --- EPPContactCheck.java 14 Mar 2002 22:59:36 -0000 1.6 *************** *** 142,146 **** command.appendChild( check ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPContactCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCreate.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPContactCreate.java 13 Mar 2002 02:03:25 -0000 1.7 --- EPPContactCreate.java 14 Mar 2002 22:59:36 -0000 1.8 *************** *** 176,180 **** command.appendChild( create ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 176,180 ---- command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPContactDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactDelete.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPContactDelete.java 13 Mar 2002 02:03:25 -0000 1.4 --- EPPContactDelete.java 14 Mar 2002 22:59:36 -0000 1.5 *************** *** 138,142 **** command.appendChild( delete ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPContactInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactInfo.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPContactInfo.java 13 Mar 2002 02:03:25 -0000 1.8 --- EPPContactInfo.java 14 Mar 2002 22:59:36 -0000 1.9 *************** *** 136,140 **** command.appendChild( info ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 136,140 ---- command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPContactTransfer.java 13 Mar 2002 02:03:25 -0000 1.9 --- EPPContactTransfer.java 14 Mar 2002 22:59:36 -0000 1.10 *************** *** 164,168 **** command.appendChild( transfer ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 164,168 ---- command.appendChild( transfer ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPContactUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactUpdate.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPContactUpdate.java 13 Mar 2002 02:03:25 -0000 1.7 --- EPPContactUpdate.java 14 Mar 2002 22:59:36 -0000 1.8 *************** *** 161,165 **** command.appendChild( update ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 161,165 ---- command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPHostCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCheck.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPHostCheck.java 13 Mar 2002 19:19:18 -0000 1.5 --- EPPHostCheck.java 14 Mar 2002 22:59:36 -0000 1.6 *************** *** 142,146 **** command.appendChild( check ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPHostCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCreate.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPHostCreate.java 13 Mar 2002 02:03:25 -0000 1.7 --- EPPHostCreate.java 14 Mar 2002 22:59:36 -0000 1.8 *************** *** 152,156 **** command.appendChild( create ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 152,156 ---- command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPHostDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostDelete.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPHostDelete.java 13 Mar 2002 02:03:25 -0000 1.4 --- EPPHostDelete.java 14 Mar 2002 22:59:36 -0000 1.5 *************** *** 138,142 **** command.appendChild( delete ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPHostInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostInfo.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPHostInfo.java 13 Mar 2002 02:03:25 -0000 1.7 --- EPPHostInfo.java 14 Mar 2002 22:59:36 -0000 1.8 *************** *** 136,140 **** command.appendChild( info ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 136,140 ---- command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPHostUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostUpdate.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPHostUpdate.java 13 Mar 2002 02:03:25 -0000 1.6 --- EPPHostUpdate.java 14 Mar 2002 22:59:36 -0000 1.7 *************** *** 161,165 **** command.appendChild( update ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 161,165 ---- command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) |
From: Daniel M. <tub...@us...> - 2002-03-14 22:57:09
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv23484 Modified Files: EPPDomainCheck.java EPPDomainCreate.java EPPDomainDelete.java EPPDomainInfo.java EPPDomainRenew.java EPPDomainTransfer.java EPPDomainUpdate.java Log Message: change how extensions are added to the XML so that EPPXMLBase is in full control of the addition of the extension Index: EPPDomainCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCheck.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPDomainCheck.java 13 Mar 2002 19:19:17 -0000 1.5 --- EPPDomainCheck.java 14 Mar 2002 22:57:04 -0000 1.6 *************** *** 142,146 **** command.appendChild( check ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPDomainCreate.java 13 Mar 2002 02:03:25 -0000 1.7 --- EPPDomainCreate.java 14 Mar 2002 22:57:04 -0000 1.8 *************** *** 178,182 **** command.appendChild( create ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 178,182 ---- command.appendChild( create ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPDomainDelete.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainDelete.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPDomainDelete.java 13 Mar 2002 02:03:25 -0000 1.4 --- EPPDomainDelete.java 14 Mar 2002 22:57:04 -0000 1.5 *************** *** 138,142 **** command.appendChild( delete ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPDomainInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainInfo.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPDomainInfo.java 13 Mar 2002 02:03:25 -0000 1.6 --- EPPDomainInfo.java 14 Mar 2002 22:57:04 -0000 1.7 *************** *** 148,152 **** command.appendChild( info ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 148,152 ---- command.appendChild( info ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPDomainRenew.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainRenew.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPDomainRenew.java 13 Mar 2002 02:03:25 -0000 1.6 --- EPPDomainRenew.java 14 Mar 2002 22:57:04 -0000 1.7 *************** *** 144,148 **** command.appendChild( renew ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 144,148 ---- command.appendChild( renew ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPDomainTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainTransfer.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPDomainTransfer.java 13 Mar 2002 02:03:25 -0000 1.8 --- EPPDomainTransfer.java 14 Mar 2002 22:57:04 -0000 1.9 *************** *** 170,174 **** command.appendChild( transfer ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 170,174 ---- command.appendChild( transfer ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) Index: EPPDomainUpdate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainUpdate.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPDomainUpdate.java 13 Mar 2002 02:03:25 -0000 1.6 --- EPPDomainUpdate.java 14 Mar 2002 22:57:04 -0000 1.7 *************** *** 170,174 **** command.appendChild( update ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) --- 170,174 ---- command.appendChild( update ); ! prepareExtensionElement( doc, command, command_data.m_extension ); if ( command_data.m_client_trid != null ) |
From: Daniel M. <tub...@us...> - 2002-03-14 17:55:09
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/transport In directory usw-pr-cvs1:/tmp/cvs-serv25180 Modified Files: EPPTransportTCP.java Log Message: committing fixes provided by GNR to properly read the end of an EPP message Index: EPPTransportTCP.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/transport/EPPTransportTCP.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPTransportTCP.java 4 Oct 2001 06:52:51 -0000 1.3 --- EPPTransportTCP.java 14 Mar 2002 17:35:14 -0000 1.4 *************** *** 130,133 **** --- 130,157 ---- } + /* + * Reads a single character from a server via a BufferedReader. Since SocketExceptions + * still get thrown east and west when the server disconnects even before you reach the + * end of the buffer, we ignore the exception so that the caller of read() will be + * able to read until the last character, and will be informed of the disconnect by + * reading the -1 (EOF) marker instead of an exception while there is still data to + * be read + */ + private int read() + { + String method_name = "read()"; + int ch = -1; + boolean ok = false; + while (!ok) { + try { + ch = reader_from_server_.read(); + ok = true; + } catch (IOException xcp) { + debug(DEBUG_LEVEL_ONE,method_name,xcp); + } + } + return ch; + } + /** * Reads a complete XML message from the Server. *************** *** 144,162 **** debug(DEBUG_LEVEL_THREE,method_name,"Entered"); ! String line; ! StringBuffer buf; try { ! buf = new StringBuffer(); ! ! while((line = reader_from_server_.readLine()) != null) { ! buf.append(line); ! if (line.trim().endsWith("</epp>")) break; } ! if (line == null) { debug(DEBUG_LEVEL_TWO,method_name,"Connection closed by server."); --- 168,210 ---- debug(DEBUG_LEVEL_THREE,method_name,"Entered"); ! StringBuffer buf = new StringBuffer(); try { ! int ch; ! ! while((ch = read()) != -1) { ! buf.append((char)ch); ! if (ch == '<') { ! ch = read(); ! if (ch == -1) break; ! buf.append((char)ch); ! if (ch == '/') { ! ch = read(); ! if (ch == -1) break; ! buf.append((char)ch); ! if (ch == 'e') { ! ch = read(); ! if (ch == -1) break; ! buf.append((char)ch); ! if (ch == 'p') { ! ch = read(); ! if (ch == -1) break; ! buf.append((char)ch); ! if (ch == 'p') { ! ch = read(); ! if (ch == -1) break; ! buf.append((char)ch); ! if (ch == '>') break; ! } ! } ! } ! } ! } } ! if (ch == -1) { debug(DEBUG_LEVEL_TWO,method_name,"Connection closed by server."); *************** *** 175,178 **** --- 223,227 ---- { debug(DEBUG_LEVEL_ONE,method_name,xcp); + debug(DEBUG_LEVEL_THREE,method_name, "Read: ["+buf.toString()+"] so far"); epp_Result[] result = new epp_Result[1]; result[0] = new epp_Result(); |
From: Larry Y. <ly...@us...> - 2002-03-13 22:33:53
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv9454 Modified Files: EPPGreeting.java EPPXMLBase.java Log Message: moved dcp hash stuff from EPPXMLBase.java into EPPGreeting.java Index: EPPGreeting.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPGreeting.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPGreeting.java 12 Mar 2002 22:19:15 -0000 1.5 --- EPPGreeting.java 13 Mar 2002 22:33:49 -0000 1.6 *************** *** 54,57 **** --- 54,92 ---- private epp_Greeting greeting_; + private static Hashtable dcp_access_string_to_type_hash_ = null; + private static Hashtable dcp_purpose_string_to_type_hash_ = null; + private static Hashtable dcp_recipient_string_to_type_hash_ = null; + private static Hashtable dcp_retention_string_to_type_hash_ = null; + + static + { + dcp_access_string_to_type_hash_ = new Hashtable(); + dcp_access_string_to_type_hash_.put("all", epp_dcpAccessType.ALL); + dcp_access_string_to_type_hash_.put("noaccess", epp_dcpAccessType.NO_ACCESS); + dcp_access_string_to_type_hash_.put("null", epp_dcpAccessType.NULL_ACCESS); + dcp_access_string_to_type_hash_.put("social", epp_dcpAccessType.SOCIAL); + dcp_access_string_to_type_hash_.put("technical", epp_dcpAccessType.TECHNICAL); + + dcp_purpose_string_to_type_hash_ = new Hashtable(); + dcp_purpose_string_to_type_hash_.put("contact", epp_dcpPurposeType.CONTACT); + dcp_purpose_string_to_type_hash_.put("dnreg", epp_dcpPurposeType.DN_REG); + dcp_purpose_string_to_type_hash_.put("ipreg", epp_dcpPurposeType.IP_REG); + dcp_purpose_string_to_type_hash_.put("other", epp_dcpPurposeType.OTHER_PURPOSE); + dcp_purpose_string_to_type_hash_.put("tmreg", epp_dcpPurposeType.TM_REG); + + dcp_recipient_string_to_type_hash_ = new Hashtable(); + dcp_recipient_string_to_type_hash_.put("other", epp_dcpRecipientType.OTHER_RECIPIENT); + dcp_recipient_string_to_type_hash_.put("ours", epp_dcpRecipientType.OURS); + dcp_recipient_string_to_type_hash_.put("public", epp_dcpRecipientType.PUBLIK); + dcp_recipient_string_to_type_hash_.put("same", epp_dcpRecipientType.SAME); + dcp_recipient_string_to_type_hash_.put("unrelated", epp_dcpRecipientType.UNRELATED); + + dcp_retention_string_to_type_hash_ = new Hashtable(); + dcp_retention_string_to_type_hash_.put("business", epp_dcpRetentionType.BUSINESS); + dcp_retention_string_to_type_hash_.put("functional", epp_dcpRetentionType.FUNCTIONAL); + dcp_retention_string_to_type_hash_.put("indefinite", epp_dcpRetentionType.INDEFINITE); + dcp_retention_string_to_type_hash_.put("legal", epp_dcpRetentionType.LEGAL); + dcp_retention_string_to_type_hash_.put("none", epp_dcpRetentionType.NONE); + } /** *************** *** 212,216 **** if ( a_node.getNodeName().equals("access") ) { ! dc_policy.m_access = dcpAccessTypeFromString(a_node.getFirstChild().getNodeName()); } if ( a_node.getNodeName().equals("statement") ) --- 247,252 ---- if ( a_node.getNodeName().equals("access") ) { ! String type = a_node.getFirstChild().getNodeName().toLowerCase(); ! dc_policy.m_access = (epp_dcpAccessType)dcp_access_string_to_type_hash_.get(type); } if ( a_node.getNodeName().equals("statement") ) *************** *** 235,239 **** for (int i = 0; i < purpose_nodes.getLength(); i++) { ! purpose_list.add(dcpPurposeTypeFromString(purpose_nodes.item(i).getNodeName())); } dcp_statement.m_purposes = (epp_dcpPurposeType[])convertListToArray(epp_dcpPurposeType.class, purpose_list); --- 271,276 ---- for (int i = 0; i < purpose_nodes.getLength(); i++) { ! String type = purpose_nodes.item(i).getNodeName().toLowerCase(); ! purpose_list.add(dcp_purpose_string_to_type_hash_.get(type)); } dcp_statement.m_purposes = (epp_dcpPurposeType[])convertListToArray(epp_dcpPurposeType.class, purpose_list); *************** *** 243,247 **** for (int i = 0; i < recipients_nodes.getLength(); i++) { ! recipients_list.add(dcpRecipientTypeFromString(recipients_nodes.item(i).getNodeName())); } dcp_statement.m_recipients = (epp_dcpRecipientType[])convertListToArray(epp_dcpRecipientType.class, recipients_list); --- 280,285 ---- for (int i = 0; i < recipients_nodes.getLength(); i++) { ! String type = recipients_nodes.item(i).getNodeName().toLowerCase(); ! recipients_list.add(dcp_recipient_string_to_type_hash_.get(type)); } dcp_statement.m_recipients = (epp_dcpRecipientType[])convertListToArray(epp_dcpRecipientType.class, recipients_list); *************** *** 251,255 **** for (int i = 0; i < retentions_nodes.getLength(); i++) { ! retentions_list.add(dcpRetentionTypeFromString(retentions_nodes.item(i).getNodeName())); } dcp_statement.m_retentions = (epp_dcpRetentionType[])convertListToArray(epp_dcpRetentionType.class, retentions_list); --- 289,294 ---- for (int i = 0; i < retentions_nodes.getLength(); i++) { ! String type = retentions_nodes.item(i).getNodeName().toLowerCase(); ! retentions_list.add(dcp_retention_string_to_type_hash_.get(type)); } dcp_statement.m_retentions = (epp_dcpRetentionType[])convertListToArray(epp_dcpRetentionType.class, retentions_list); *************** *** 259,263 **** } } ! dc_policy.m_statements = (epp_dcpStatement[])convertListToArray((new epp_dcpStatement()).getClass(), statement_list); greeting_.m_dcp = dc_policy; } --- 298,302 ---- } } ! dc_policy.m_statements = (epp_dcpStatement[])convertListToArray(epp_dcpStatement.class, statement_list); greeting_.m_dcp = dc_policy; } Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** EPPXMLBase.java 13 Mar 2002 19:47:47 -0000 1.21 --- EPPXMLBase.java 13 Mar 2002 22:33:49 -0000 1.22 *************** *** 115,124 **** "technical", }; - /** - * Hashtable to allow for conversion from String representation to - * epp_dcpAccessType. - * @see The EPP IDL epp.idl for the definition of the epp_dcpAccessType enum - */ - protected static Hashtable dcp_access_string_to_type_hash_; /** --- 115,118 ---- *************** *** 136,145 **** "tmReg" }; - /** - * Hashtable to allow for conversion from String representation to - * epp_dcpPurposeType. - * @see The EPP IDL epp.idl for the definition of the epp_dcpPurposeType enum - */ - protected static Hashtable dcp_purpose_string_to_type_hash_; /** --- 130,133 ---- *************** *** 157,166 **** "unrelated" }; - /** - * Hashtable to allow for conversion from String representation to - * epp_dcpRecipientType. - * @see The EPP IDL epp.idl for the definition of the epp_dcpRecipientType enum - */ - protected static Hashtable dcp_recipient_string_to_type_hash_; /** --- 145,148 ---- *************** *** 178,187 **** "none" }; - /** - * Hashtable to allow for conversion from String representation to - * epp_dcpRetentionType. - * @see The EPP IDL epp.idl for the definition of the epp_dcpRetentionType enum - */ - protected static Hashtable dcp_retention_string_to_type_hash_; /** --- 160,163 ---- *************** *** 214,221 **** initTransferStatusToTypeHash(); initAuthInfoStringToTypeHash(); - initDcpAccessStringToTypeHash(); - initDcpPurposeStringToTypeHash(); - initDcpRecipientStringToTypeHash(); - initDcpRetentionStringToTypeHash(); } --- 190,193 ---- *************** *** 243,302 **** } - public static void initDcpAccessStringToTypeHash() - { - if ( dcp_access_string_to_type_hash_ == null ) - { - dcp_access_string_to_type_hash_ = new Hashtable(); - dcp_access_string_to_type_hash_.put("all", epp_dcpAccessType.ALL); - dcp_access_string_to_type_hash_.put("noaccess", epp_dcpAccessType.NO_ACCESS); - dcp_access_string_to_type_hash_.put("null", epp_dcpAccessType.NULL_ACCESS); - dcp_access_string_to_type_hash_.put("nullaccess", epp_dcpAccessType.NULL_ACCESS); - dcp_access_string_to_type_hash_.put("social", epp_dcpAccessType.SOCIAL); - dcp_access_string_to_type_hash_.put("technical", epp_dcpAccessType.TECHNICAL); - } - } - - public static void initDcpPurposeStringToTypeHash() - { - if ( dcp_purpose_string_to_type_hash_ == null ) - { - dcp_purpose_string_to_type_hash_ = new Hashtable(); - dcp_purpose_string_to_type_hash_.put("contact", epp_dcpPurposeType.CONTACT); - dcp_purpose_string_to_type_hash_.put("dnreg", epp_dcpPurposeType.DN_REG); - dcp_purpose_string_to_type_hash_.put("ipreg", epp_dcpPurposeType.IP_REG); - dcp_purpose_string_to_type_hash_.put("other", epp_dcpPurposeType.OTHER_PURPOSE); - dcp_purpose_string_to_type_hash_.put("otherpurpose", epp_dcpPurposeType.OTHER_PURPOSE); - dcp_purpose_string_to_type_hash_.put("tmreg", epp_dcpPurposeType.TM_REG); - } - } - - public static void initDcpRecipientStringToTypeHash() - { - if ( dcp_recipient_string_to_type_hash_ == null ) - { - dcp_recipient_string_to_type_hash_ = new Hashtable(); - dcp_recipient_string_to_type_hash_.put("other", epp_dcpRecipientType.OTHER_RECIPIENT); - dcp_recipient_string_to_type_hash_.put("otherrecipient", epp_dcpRecipientType.OTHER_RECIPIENT); - dcp_recipient_string_to_type_hash_.put("ours", epp_dcpRecipientType.OURS); - dcp_recipient_string_to_type_hash_.put("public", epp_dcpRecipientType.PUBLIK); - dcp_recipient_string_to_type_hash_.put("publik", epp_dcpRecipientType.PUBLIK); - dcp_recipient_string_to_type_hash_.put("same", epp_dcpRecipientType.SAME); - dcp_recipient_string_to_type_hash_.put("unrelated", epp_dcpRecipientType.UNRELATED); - } - } - - public static void initDcpRetentionStringToTypeHash() - { - if ( dcp_retention_string_to_type_hash_ == null ) - { - dcp_retention_string_to_type_hash_ = new Hashtable(); - dcp_retention_string_to_type_hash_.put("business", epp_dcpRetentionType.BUSINESS); - dcp_retention_string_to_type_hash_.put("functional", epp_dcpRetentionType.FUNCTIONAL); - dcp_retention_string_to_type_hash_.put("indefinite", epp_dcpRetentionType.INDEFINITE); - dcp_retention_string_to_type_hash_.put("legal", epp_dcpRetentionType.LEGAL); - dcp_retention_string_to_type_hash_.put("none", epp_dcpRetentionType.NONE); - } - } - /** * Given the response XML node, it extracts the result code and result text. --- 215,218 ---- *************** *** 977,985 **** } - public static epp_dcpAccessType dcpAccessTypeFromString(String s) - { - return (epp_dcpAccessType) dcp_access_string_to_type_hash_.get(s.toLowerCase()); - } - public static String dcpPurposeTypeToString(epp_dcpPurposeType purpose_type) { --- 893,896 ---- *************** *** 987,995 **** } - public static epp_dcpPurposeType dcpPurposeTypeFromString(String s) - { - return (epp_dcpPurposeType) dcp_purpose_string_to_type_hash_.get(s.toLowerCase()); - } - public static String dcpRecipientTypeToString(epp_dcpRecipientType recipient_type) { --- 898,901 ---- *************** *** 997,1013 **** } - public static epp_dcpRecipientType dcpRecipientTypeFromString(String s) - { - return (epp_dcpRecipientType) dcp_recipient_string_to_type_hash_.get(s.toLowerCase()); - } - public static String dcpRetentionTypeToString(epp_dcpRetentionType retention_type) { return dcp_retention_type_to_string_array_[retention_type.value()]; - } - - public static epp_dcpRetentionType dcpRetentionTypeFromString(String s) - { - return (epp_dcpRetentionType) dcp_retention_string_to_type_hash_.get(s.toLowerCase()); } --- 903,909 ---- |
From: Daniel M. <tub...@us...> - 2002-03-13 21:49:46
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain In directory usw-pr-cvs1:/tmp/cvs-serv29216/domain Modified Files: epp_DomainTransferRsp.java Log Message: fixing javadoc method and members references Index: epp_DomainTransferRsp.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainTransferRsp.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_DomainTransferRsp.java 11 Mar 2002 22:44:45 -0000 1.9 --- epp_DomainTransferRsp.java 13 Mar 2002 21:49:42 -0000 1.10 *************** *** 121,125 **** * Accessor method for the name of the domain object in the registry * @param value The domain name ! * @see #m_name * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ --- 121,125 ---- * Accessor method for the name of the domain object in the registry * @param value The domain name ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ *************** *** 128,132 **** * Accessor method for the name of the domain object in the registry * @return The domain name ! * @see #m_name * @deprecated Please use getTrnData() instead */ --- 128,132 ---- * Accessor method for the name of the domain object in the registry * @return The domain name ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 136,140 **** * Accessor method for the transfer status associated with the domain object * @param value The domain transfer status ! * @see #m_transfer_status * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ --- 136,140 ---- * Accessor method for the transfer status associated with the domain object * @param value The domain transfer status ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ *************** *** 143,147 **** * Accessor method for the transfer status associated with the domain object * @return The domain transfer status ! * @see #m_transfer_status * @deprecated Please use getTrnData() instead */ --- 143,147 ---- * Accessor method for the transfer status associated with the domain object * @return The domain transfer status ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 151,155 **** * Accessor method for the identifier of the client that requested the domain object transfer * @param value The domain request client id ! * @see #m_request_client_id * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ --- 151,155 ---- * Accessor method for the identifier of the client that requested the domain object transfer * @param value The domain request client id ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ *************** *** 158,162 **** * Accessor method for the identifier of the client that requested the domain object transfer * @return The domain request client id ! * @see #m_request_client_id * @deprecated Please use getTrnData() instead */ --- 158,162 ---- * Accessor method for the identifier of the client that requested the domain object transfer * @return The domain request client id ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 166,170 **** * Accessor method for the identifier of the client that should act upon the domain transfer request * @param value The domain action client id ! * @see #m_action_client_id * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ --- 166,170 ---- * Accessor method for the identifier of the client that should act upon the domain transfer request * @param value The domain action client id ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ *************** *** 173,177 **** * Accessor method for the identifier of the client that should act upon the domain transfer request * @return The domain action client id ! * @see #m_action_client_id * @deprecated Please use getTrnData() instead */ --- 173,177 ---- * Accessor method for the identifier of the client that should act upon the domain transfer request * @return The domain action client id ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 181,185 **** * Accessor method for the date that the domain transfer was requested * @param value The domain transfer request date ! * @see #m_request_date * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ --- 181,185 ---- * Accessor method for the date that the domain transfer was requested * @param value The domain transfer request date ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ *************** *** 188,192 **** * Accessor method for the date that the domain transfer was requested * @return The domain transfer request date ! * @see #m_request_date * @deprecated Please use getTrnData() instead */ --- 188,192 ---- * Accessor method for the date that the domain transfer was requested * @return The domain transfer request date ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 196,200 **** * Accessor method for the required or completed action date to the domain transfer request * @param value The action date to the domain transfer request ! * @see #m_action_date * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ --- 196,200 ---- * Accessor method for the required or completed action date to the domain transfer request * @param value The action date to the domain transfer request ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ *************** *** 203,207 **** * Accessor method for the required or completed action date to the domain transfer request * @return The action date to the domain transfer request ! * @see #m_action_date * @deprecated Please use getTrnData() instead */ --- 203,207 ---- * Accessor method for the required or completed action date to the domain transfer request * @return The action date to the domain transfer request ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 211,215 **** * Accessor method for the expiration date of the domain object * @param value The domain expiration date ! * @see #m_expiration_date * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ --- 211,215 ---- * Accessor method for the expiration date of the domain object * @param value The domain expiration date ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.domain.epp_DomainTrnData) instead */ *************** *** 218,222 **** * Accessor method for the expiration date of the domain object * @return The domain expiration date ! * @see #m_expiration_date * @deprecated Please use getTrnData() instead */ --- 218,222 ---- * Accessor method for the expiration date of the domain object * @return The domain expiration date ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ |
From: Daniel M. <tub...@us...> - 2002-03-13 21:49:46
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact In directory usw-pr-cvs1:/tmp/cvs-serv29216/contact Modified Files: epp_ContactTransferRsp.java Log Message: fixing javadoc method and members references Index: epp_ContactTransferRsp.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactTransferRsp.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** epp_ContactTransferRsp.java 11 Mar 2002 22:38:46 -0000 1.10 --- epp_ContactTransferRsp.java 13 Mar 2002 21:49:42 -0000 1.11 *************** *** 130,134 **** * Accessor method for the identifier for the contact object in the registry * @param value The contact id ! * @see #m_id * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ --- 130,134 ---- * Accessor method for the identifier for the contact object in the registry * @param value The contact id ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ *************** *** 137,141 **** * Accessor method for the identifier for the contact object in the registry * @return The contact id ! * @see #m_id * @deprecated Please use getTrnData() instead */ --- 137,141 ---- * Accessor method for the identifier for the contact object in the registry * @return The contact id ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 145,149 **** * Accessor method for the transfer status associated with the contact object * @param value The contact transfer status ! * @see #m_transfer_status * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ --- 145,149 ---- * Accessor method for the transfer status associated with the contact object * @param value The contact transfer status ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ *************** *** 152,156 **** * Accessor method for the transfer status associated with the contact object * @return The contact transfer status ! * @see #m_transfer_status * @deprecated Please use getTrnData() instead */ --- 152,156 ---- * Accessor method for the transfer status associated with the contact object * @return The contact transfer status ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 160,164 **** * Accessor method for the client that requested the contact object transfer * @param value The client that requested the contact object transfer ! * @see #m_request_client_id * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ --- 160,164 ---- * Accessor method for the client that requested the contact object transfer * @param value The client that requested the contact object transfer ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ *************** *** 167,171 **** * Accessor method for the client that requested the contact object transfer * @return The client that requested the contact object transfer ! * @see #m_request_client_id * @deprecated Please use getTrnData() instead */ --- 167,171 ---- * Accessor method for the client that requested the contact object transfer * @return The client that requested the contact object transfer ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 175,179 **** * Accessor method for the date that the contact transfer was requested * @param value The date that the contact transfer was requested ! * @see #m_request_date * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ --- 175,179 ---- * Accessor method for the date that the contact transfer was requested * @param value The date that the contact transfer was requested ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ *************** *** 182,186 **** * Accessor method for the date that the contact transfer was requested * @return The date that the contact transfer was requested ! * @see #m_request_date * @deprecated Please use getTrnData() instead */ --- 182,186 ---- * Accessor method for the date that the contact transfer was requested * @return The date that the contact transfer was requested ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 190,194 **** * Accessor method for the identifier of the client that should act upon the contact transfer request * @param value The identifier of the client that should act upon the contact transfer request ! * @see #m_action_client_id * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ --- 190,194 ---- * Accessor method for the identifier of the client that should act upon the contact transfer request * @param value The identifier of the client that should act upon the contact transfer request ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ *************** *** 197,201 **** * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The identifier of the client that should act upon the contact transfer request ! * @see #m_action_client_id * @deprecated Please use getTrnData() instead */ --- 197,201 ---- * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The identifier of the client that should act upon the contact transfer request ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ *************** *** 205,209 **** * Accessor method for the required or completed action date to the contact transfer request * @param value The contact transfer action date ! * @see #m_action_date * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ --- 205,209 ---- * Accessor method for the required or completed action date to the contact transfer request * @param value The contact transfer action date ! * @see #m_trn_data * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ *************** *** 212,216 **** * Accessor method for the required or completed action date to the contact transfer request * @return The contact transfer action date ! * @see #m_action_date * @deprecated Please use getTrnData() instead */ --- 212,216 ---- * Accessor method for the required or completed action date to the contact transfer request * @return The contact transfer action date ! * @see #m_trn_data * @deprecated Please use getTrnData() instead */ |
From: Daniel M. <tub...@us...> - 2002-03-13 21:49:46
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv29216 Modified Files: epp_StatusReq.java Log Message: fixing javadoc method and members references Index: epp_StatusReq.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusReq.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_StatusReq.java 13 Mar 2002 20:17:08 -0000 1.2 --- epp_StatusReq.java 13 Mar 2002 21:49:42 -0000 1.3 *************** *** 51,55 **** /** * The type of command upon the status command will be applied ! * @see #setCommnad(org.openrtk.idl.epp.epp_StatusCommandType) * @see #getCommand() */ --- 51,55 ---- /** * The type of command upon the status command will be applied ! * @see #setCommand(org.openrtk.idl.epp.epp_StatusCommandType) * @see #getCommand() */ |
From: Daniel M. <tub...@us...> - 2002-03-13 20:17:15
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv2736 Modified Files: epp_StatusReq.java epp_StatusRsp.java Log Message: added javadocs for status req and rsp Index: epp_StatusReq.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusReq.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_StatusReq.java 13 Mar 2002 18:33:23 -0000 1.1 --- epp_StatusReq.java 13 Mar 2002 20:17:08 -0000 1.2 *************** *** 35,46 **** --- 35,72 ---- public class epp_StatusReq implements org.omg.CORBA.portable.IDLEntity { + /** + * The common and generic command element. + * @see #setCmd(org.openrtk.idl.epp.epp_Command) + * @see #getCmd() + */ public org.openrtk.idl.epp.epp_Command m_cmd = null; + /** + * The client transaction id upon the status command will be applied + * This is not the same as the client trid use in the generic command + * arguments. + * @see #setClientTrid(String) + * @see #getClientTrid() + */ public String m_client_trid = null; + /** + * The type of command upon the status command will be applied + * @see #setCommnad(org.openrtk.idl.epp.epp_StatusCommandType) + * @see #getCommand() + */ public org.openrtk.idl.epp.epp_StatusCommandType m_command = null; + /** + * Empty constructor + */ public epp_StatusReq () { } // ctor + /** + * The constructor with initializing variables. + * @param _m_cmd The common and generic command element + * @param _m_client_trid The client transaction id for the status command + * @param _m_command The status command type + */ public epp_StatusReq (org.openrtk.idl.epp.epp_Command _m_cmd, String _m_client_trid, org.openrtk.idl.epp.epp_StatusCommandType _m_command) { *************** *** 50,62 **** --- 76,123 ---- } // ctor + /** + * Accessor method for the common and generic command element + * @param value The command element + * @see #m_cmd + */ public void setCmd(org.openrtk.idl.epp.epp_Command value) { m_cmd = value; } + /** + * Accessor method for the common and generic command element + * @return The command element + * @see #m_cmd + */ public org.openrtk.idl.epp.epp_Command getCmd() { return m_cmd; } + /** + * Accessor method for the client transaction id + * @param value The client trid + * @see #m_client_trid + */ public void setClientTrid(String value) { m_client_trid = value; } + /** + * Accessor method for the client transaction id + * @return The client trid + * @see #m_client_trid + */ public String getClientTrid() { return m_client_trid; } + /** + * Accessor method for the command type + * @param value The command type + * @see #m_command + */ public void setCommand(org.openrtk.idl.epp.epp_StatusCommandType value) { m_command = value; } + /** + * Accessor method for the command type + * @return The command type + * @see #m_command + */ public org.openrtk.idl.epp.epp_StatusCommandType getCommand() { return m_command; } + /** + * Converts this class into a string. + * Typically used to view the object in debug output. + * @return The string representation of this object instance + */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_client_trid ["+m_client_trid+"] m_command ["+m_command+"] }"; } Index: epp_StatusRsp.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusRsp.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_StatusRsp.java 13 Mar 2002 18:33:23 -0000 1.1 --- epp_StatusRsp.java 13 Mar 2002 20:17:08 -0000 1.2 *************** *** 36,45 **** --- 36,56 ---- public class epp_StatusRsp implements org.omg.CORBA.portable.IDLEntity { + /** + * The common and generic response element. + * @see #getRsp() + */ public org.openrtk.idl.epp.epp_Response m_rsp = null; + /** + * Empty constructor + */ public epp_StatusRsp () { } // ctor + /** + * The constructor with initializing variables. + * @param _m_rsp The common and generic response element + */ public epp_StatusRsp (org.openrtk.idl.epp.epp_Response _m_rsp) { *************** *** 47,53 **** --- 58,79 ---- } // ctor + /** + * Accessor method for the common and generic response element. + * @param value The new value for the response element + * @see #m_rsp + */ public void setRsp(org.openrtk.idl.epp.epp_Response value) { m_rsp = value; } + /** + * Accessor method for the common and generic response element. + * @return The value for the response element + * @see #m_rsp + */ public org.openrtk.idl.epp.epp_Response getRsp() { return m_rsp; } + /** + * Converts this class into a string. + * Typically used to view the object in debug output. + * @return The string representation of this object instance + */ public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } |
From: Daniel M. <tub...@us...> - 2002-03-13 19:47:51
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv26889 Modified Files: EPPXMLBase.java Added Files: EPPStatus.java Log Message: Committing first draft at status command. will definitely have to change though because the IDL definitions for status are incorrect -- but it compiles and I'm happy for now. --- NEW FILE: EPPStatus.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows Inc. ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program 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 General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; 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; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp.rtk.*; import org.openrtk.idl.epp.*; import org.w3c.dom.*; import org.w3c.dom.traversal.*; import org.apache.xerces.parsers.*; import org.xml.sax.*; import org.apache.xerces.dom.*; import org.apache.xml.serialize.*; import org.apache.regexp.*; /** * </p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPStatus.java,v 1.1 2002/03/13 19:47:47 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 19:47:47 $<br> */ public class EPPStatus extends EPPXMLBase implements epp_Status { private epp_StatusReq action_request_; private epp_StatusRsp action_response_; private static Hashtable status_command_to_string_hash_; public EPPStatus () { initHash(); } public EPPStatus (String xml) throws epp_XMLException, epp_Exception { super(xml); String method_name = "EPPStatus(String)"; debug(DEBUG_LEVEL_TWO,method_name,"xml is ["+xml+"]"); initHash(); fromXML(xml); } private void initHash() { if ( status_command_to_string_hash_ == null ) { status_command_to_string_hash_ = new Hashtable(); status_command_to_string_hash_.put(epp_StatusCommandType.CREATE, "create"); status_command_to_string_hash_.put(epp_StatusCommandType.DELETE, "delete"); status_command_to_string_hash_.put(epp_StatusCommandType.RENEW, "renew"); status_command_to_string_hash_.put(epp_StatusCommandType.TRANSFER, "transfer"); status_command_to_string_hash_.put(epp_StatusCommandType.UPDATE, "update"); } } /** * Accessor method for the domain info request data. Must be set to for this command. * @param value epp_LoginReq */ public void setRequestData(epp_StatusReq value) { action_request_ = value; } /** * Accessor method for the domain info request data. Must be set to for this command. * @return epp_LoginRsp */ public epp_StatusRsp getResponseData() { return action_response_; } public String toXML() throws epp_XMLException { String method_name = "buildRequestXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if ( action_request_ == null ) { throw new epp_XMLException("missing request data"); } Document doc = new DocumentImpl(); Element root = createDocRoot(doc); Element command = doc.createElement("command"); Element status = doc.createElement("status"); 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_command == null ) { throw new epp_XMLException("missing status command type (no default allowed)"); } Element cltrid = addXMLElement(doc, status, "clTRID", action_request_.m_client_trid);; cltrid.setAttribute("command", (String)status_command_to_string_hash_.get(action_request_.m_command)); command.appendChild( status ); command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) { addXMLElement(doc, command, "clTRID", command_data.m_client_trid); } root.appendChild( command ); doc.appendChild( root ); String request_xml; try { request_xml = createXMLFromDoc(doc); } catch (IOException xcp) { throw new epp_XMLException("IOException in building XML ["+xcp.getMessage()+"]"); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return request_xml; } /** * Parses the status response XML. */ public void fromXML(String xml) throws epp_XMLException, epp_Exception { String method_name = "fromXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); xml_ = xml; try { Element epp_node = getDocumentElement(); Node response_node = epp_node.getElementsByTagName("response").item(0); if ( response_node == null ) { throw new epp_XMLException("unparsable or missing response"); } action_response_ = new epp_StatusRsp(); action_response_.m_rsp = parseGenericResult(response_node); if ( action_response_.m_rsp.m_results[0].m_code >= epp_Session.EPP_UNKNOWN_COMMAND ) { throw new epp_Exception(action_response_.m_rsp.m_results); } // nothing more to parse... that's it. } catch (SAXException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } } } Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** EPPXMLBase.java 13 Mar 2002 19:19:18 -0000 1.20 --- EPPXMLBase.java 13 Mar 2002 19:47:47 -0000 1.21 *************** *** 347,350 **** --- 347,368 ---- } + 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); |
From: Larry Y. <ly...@us...> - 2002-03-13 19:19:24
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv19247 Modified Files: EPPContactCheck.java EPPDomainCheck.java EPPHostCheck.java EPPXMLBase.java Log Message: Modified check results related codes to reflect new EPP change on object check results Index: EPPContactCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCheck.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPContactCheck.java 13 Mar 2002 02:03:25 -0000 1.4 --- EPPContactCheck.java 13 Mar 2002 19:19:16 -0000 1.5 *************** *** 204,229 **** Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! NodeList contact_check_result_list = response_data_element.getElementsByTagName("contact:chkData").item(0).getChildNodes(); ! ! debug(DEBUG_LEVEL_TWO,method_name,"contact:chkData's node count ["+contact_check_result_list.getLength()+"]"); ! ! if ( contact_check_result_list.getLength() == 0 ) ! { ! throw new epp_XMLException("missing check results"); ! } ! List check_list = (List) new ArrayList(); ! ! for (int count = 0; count < contact_check_result_list.getLength(); count++) ! { ! Node a_node = contact_check_result_list.item(count); ! ! epp_CheckResult check_result = new epp_CheckResult(); ! check_result.m_value = a_node.getFirstChild().getNodeValue(); ! check_result.m_exists = ( ((Element)a_node).getAttribute("x").equals("+") ? true : false ); ! check_list.add(check_result); ! } ! ! action_response_.m_results = (epp_CheckResult[]) convertListToArray((new epp_CheckResult()).getClass(), check_list); } --- 204,210 ---- Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! Node contact_check_data_node = response_data_element.getElementsByTagName("contact:chkData").item(0); ! action_response_.m_results = parseGenericCheckResults(contact_check_data_node); } Index: EPPDomainCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCheck.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPDomainCheck.java 13 Mar 2002 02:03:25 -0000 1.4 --- EPPDomainCheck.java 13 Mar 2002 19:19:17 -0000 1.5 *************** *** 204,229 **** Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! NodeList domain_check_result_list = response_data_element.getElementsByTagName("domain:chkData").item(0).getChildNodes(); ! ! debug(DEBUG_LEVEL_TWO,method_name,"domain:chkData's node count ["+domain_check_result_list.getLength()+"]"); ! ! if ( domain_check_result_list.getLength() == 0 ) ! { ! throw new epp_XMLException("missing check results"); ! } ! List check_list = (List) new ArrayList(); ! ! for (int count = 0; count < domain_check_result_list.getLength(); count++) ! { ! Node a_node = domain_check_result_list.item(count); ! ! epp_CheckResult check_result = new epp_CheckResult(); ! check_result.m_value = a_node.getFirstChild().getNodeValue(); ! check_result.m_exists = ( ((Element)a_node).getAttribute("x").equals("+") ? true : false ); ! check_list.add(check_result); ! } ! ! action_response_.m_results = (epp_CheckResult[]) convertListToArray((new epp_CheckResult()).getClass(), check_list); } --- 204,210 ---- Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! Node domain_check_data_node = response_data_element.getElementsByTagName("domain:chkData").item(0); ! action_response_.m_results = parseGenericCheckResults(domain_check_data_node); } Index: EPPHostCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCheck.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPHostCheck.java 13 Mar 2002 02:03:25 -0000 1.4 --- EPPHostCheck.java 13 Mar 2002 19:19:18 -0000 1.5 *************** *** 204,229 **** Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! NodeList host_check_result_list = response_data_element.getElementsByTagName("host:chkData").item(0).getChildNodes(); ! ! debug(DEBUG_LEVEL_TWO,method_name,"host:chkData's node count ["+host_check_result_list.getLength()+"]"); ! ! if ( host_check_result_list.getLength() == 0 ) ! { ! throw new epp_XMLException("missing check results"); ! } ! List check_list = (List) new ArrayList(); ! ! for (int count = 0; count < host_check_result_list.getLength(); count++) ! { ! Node a_node = host_check_result_list.item(count); ! ! epp_CheckResult check_result = new epp_CheckResult(); ! check_result.m_value = a_node.getFirstChild().getNodeValue(); ! check_result.m_exists = ( ((Element)a_node).getAttribute("x").equals("+") ? true : false ); ! check_list.add(check_result); ! } ! ! action_response_.m_results = (epp_CheckResult[]) convertListToArray((new epp_CheckResult()).getClass(), check_list); } --- 204,210 ---- Element response_data_element = getElement(response_node.getChildNodes(), "resData"); ! Node host_check_data_node = response_data_element.getElementsByTagName("host:chkData").item(0); ! action_response_.m_results = parseGenericCheckResults(host_check_data_node); } Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** EPPXMLBase.java 13 Mar 2002 02:03:25 -0000 1.19 --- EPPXMLBase.java 13 Mar 2002 19:19:18 -0000 1.20 *************** *** 746,749 **** --- 746,804 ---- /** + * Given the chkData XML node, it extracts the check value, object availability and reason text. + * Please see the Xerces documentation for more information regarding Nodes. + * @param Node EPP chkData node + * @return epp_CheckResult[] the generic check results array + * @throws org.openrtk.idl.epp.epp_XMLException if the node list does not contain the data + */ + protected epp_CheckResult[] parseGenericCheckResults(Node chkdata_node) throws epp_XMLException + { + String method_name = "parseGenericCheckResults(Node)"; + debug(DEBUG_LEVEL_THREE,method_name,"Entered"); + + if (chkdata_node == null || chkdata_node.getChildNodes().getLength() == 0) + { + throw new epp_XMLException("missing check results"); + } + + NodeList check_result_list = chkdata_node.getChildNodes(); + debug(DEBUG_LEVEL_TWO,method_name,"chkData's node count ["+check_result_list.getLength()+"]"); + + List check_list = (List) new ArrayList(); + + for (int count = 0; count < check_result_list.getLength(); count++) + { + Node a_node = check_result_list.item(count); + if (! a_node.getNodeName().endsWith(":cd")) continue; + + NodeList one_check_list = a_node.getChildNodes(); + if (one_check_list.getLength() == 0) + { + throw new epp_XMLException("missing check result"); + } + + epp_CheckResult chk_result = new epp_CheckResult(); + for (int i = 0; i < one_check_list.getLength(); i++) + { + Node the_node = one_check_list.item(i); + if (the_node.getNodeName().endsWith(":name")) + { + chk_result.m_value = the_node.getFirstChild().getNodeValue(); + chk_result.m_avail = ((Element)the_node).getAttribute("avail").equals("1") ? true : false; + } + if (the_node.getNodeName().endsWith(":reason")) + { + chk_result.m_reason = the_node.getFirstChild().getNodeValue(); + chk_result.m_lang = ((Element)the_node).getAttribute("lang"); + } + } + check_list.add(chk_result); + } + + debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); + return (epp_CheckResult[])convertListToArray(epp_CheckResult.class, check_list); + } + + /** * Given an array of epp_CheckResult's, finds the matching value * and returns it's exists value in a Boolean object. *************** *** 753,760 **** --- 808,835 ---- * @return Boolean the exists boolean in a Boolean object. Will return * null if the array is null or if the value was not found. + * @deprecated Please use getAvailResultFor(epp_CheckResult[] check_results,String check_value) */ public static Boolean getCheckResultFor(epp_CheckResult[] check_results, String check_value) { + Boolean wanted_result = getAvailResultFor(check_results, check_value); + + if ( wanted_result != null ) wanted_result = new Boolean(! wanted_result.booleanValue()); + + return wanted_result; + } + + /** + * Given an array of epp_CheckResult's, finds the matching value + * and returns it's avail value in a Boolean object. + * This method works for Check Results on any object. + * @param epp_CheckResult[] array of check results. + * @param String the value for which to search + * @return Boolean the available boolean in a Boolean object. Will return + * null if the array is null or if the value was not found. + */ + public static Boolean getAvailResultFor(epp_CheckResult[] check_results, + String check_value) + { Boolean wanted_result = null; *************** *** 765,769 **** if ( check_results[index].m_value.equalsIgnoreCase(check_value) ) { ! wanted_result = new Boolean( check_results[index].m_exists ); break; } --- 840,844 ---- if ( check_results[index].m_value.equalsIgnoreCase(check_value) ) { ! wanted_result = new Boolean( check_results[index].getAvail() ); break; } |
From: Daniel M. <tub...@us...> - 2002-03-13 18:57:51
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv13257 Modified Files: epp_StatusResultData.java Log Message: added and fixed javadocs for this class Index: epp_StatusResultData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusResultData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_StatusResultData.java 13 Mar 2002 18:33:23 -0000 1.1 --- epp_StatusResultData.java 13 Mar 2002 18:57:47 -0000 1.2 *************** *** 25,34 **** /** ! * Master external interface for the implementor of the EPP Extension element.</p> ! * The Unspc(unspecified) element may be used for server-defined command extensions.</p> ! * The interface brings together epp_ExtensionOperations and standard IDL classes. * $Header$<br> * $Revision$<br> * $Date$<br> */ public class epp_StatusResultData implements org.omg.CORBA.portable.IDLEntity --- 25,33 ---- /** ! * Class that contains the status command result data.</p> * $Header$<br> * $Revision$<br> * $Date$<br> + * @see org.openrtk.idl.epp.epp_ResultData */ public class epp_StatusResultData implements org.omg.CORBA.portable.IDLEntity *************** *** 37,44 **** --- 36,51 ---- public String m_cltrid = null; + /** + * Empty constructor. + */ public epp_StatusResultData () { } // ctor + /** + * Constructor with initializers + * @param _m_ack The acknowledge flag + * @param _m_cltrid The client TRID + */ public epp_StatusResultData (boolean _m_ack, String _m_cltrid) { *************** *** 47,56 **** --- 54,88 ---- } // ctor + /** + * Accessor method for the transaction's acknowledge flag + * @param value The Ack flag + * @see #m_ack + */ public void setAck(boolean value) { m_ack = value; } + /** + * Accessor method for the transaction's acknowledge flag + * @return The Ack flag + * @see #m_ack + */ public boolean getAck() { return m_ack; } + /** + * Accessor method for the client transaction id + * @param value The client TRID + * @see #m_cltrid + */ public void setCltrid(String value) { m_cltrid = value; } + /** + * Accessor method for the client transaction id + * @return The client TRID + * @see #m_cltrid + */ public String getCltrid() { return m_cltrid; } + /** + * Converts this class into a string. + * Typically used to view the object in debug output. + * @return The string representation of this object instance + */ public String toString() { return this.getClass().getName() + ": { m_ack ["+m_ack+"] m_cltrid ["+m_cltrid+"] }"; } |
From: Daniel M. <tub...@us...> - 2002-03-13 18:33:28
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv5682 Modified Files: epp_Result.java Added Files: epp_ResultData.java epp_Status.java epp_StatusCommandType.java epp_StatusOperations.java epp_StatusReq.java epp_StatusResultData.java epp_StatusRsp.java Log Message: first cut of creating IDL classes for the EPP Status command --- NEW FILE: epp_ResultData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class that contains the generic, non-object specific EPP result data.</p> * Used in epp_Result. Contains data for the results to the Status command.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_ResultData.java,v 1.1 2002/03/13 18:33:22 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 18:33:22 $<br> * @see org.openrtk.idl.epp.epp_Result * @see org.openrtk.idl.epp.epp_Status */ public class epp_ResultData implements org.omg.CORBA.portable.IDLEntity { /** * Placeholder for the result data to the EPP Status command * @see #setStatus(org.openrtk.idl.epp.epp_StatusResultData) * @see #getStatus() */ public org.openrtk.idl.epp.epp_StatusResultData m_status = null; /** * Empty constructor */ public epp_ResultData () { } // ctor /** * The constructor with initializing variables. * @param _m_status The result data for the status command */ public epp_ResultData (org.openrtk.idl.epp.epp_StatusResultData _m_status) { m_status = _m_status; } // ctor /** * Accessor method for the status result data * @param value The status result data * @see #m_status */ public void setStatus(org.openrtk.idl.epp.epp_StatusResultData value) { m_status = value; } /** * Accessor method for the status result data * @return The status result data * @see #m_status */ public org.openrtk.idl.epp.epp_StatusResultData getStatus() { return m_status; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_status ["+m_status+"] }"; } } // class epp_ResultData --- NEW FILE: epp_Status.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Master external interface for the implementor of the EPP Status command.</p> * The interface brings together epp_StatusOperations, epp_Action and standard * IDL classes.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Status.java,v 1.1 2002/03/13 18:33:22 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 18:33:22 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPStatus */ public interface epp_Status extends epp_StatusOperations, org.openrtk.idl.epp.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Status --- NEW FILE: epp_StatusCommandType.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class defining constant instances of status command types.</p> * The status command types permitted are: CREATE, DELETE, RENEW, TRANSFER and UPDATE.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusCommandType.java,v 1.1 2002/03/13 18:33:22 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 18:33:22 $<br> * see org.openrtk.idl.epp.epp_StatusReq */ public class epp_StatusCommandType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 5; private static org.openrtk.idl.epp.epp_StatusCommandType[] __array = new org.openrtk.idl.epp.epp_StatusCommandType [__size]; public static final int _CREATE = 0; public static final org.openrtk.idl.epp.epp_StatusCommandType CREATE = new org.openrtk.idl.epp.epp_StatusCommandType(_CREATE); public static final int _DELETE = 1; public static final org.openrtk.idl.epp.epp_StatusCommandType DELETE = new org.openrtk.idl.epp.epp_StatusCommandType(_DELETE); public static final int _RENEW = 2; public static final org.openrtk.idl.epp.epp_StatusCommandType RENEW = new org.openrtk.idl.epp.epp_StatusCommandType(_RENEW); public static final int _TRANSFER = 3; public static final org.openrtk.idl.epp.epp_StatusCommandType TRANSFER = new org.openrtk.idl.epp.epp_StatusCommandType(_TRANSFER); public static final int _UPDATE = 4; public static final org.openrtk.idl.epp.epp_StatusCommandType UPDATE = new org.openrtk.idl.epp.epp_StatusCommandType(_UPDATE); public int value () { return __value; } public static org.openrtk.idl.epp.epp_StatusCommandType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_StatusCommandType (int value) { __value = value; __array[__value] = this; } } // class epp_StatusCommandType --- NEW FILE: epp_StatusOperations.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_Status is implemented by EPPStatus.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusOperations.java,v 1.1 2002/03/13 18:33:23 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 18:33:23 $<br> * @see org.openrtk.idl.epp.epp_Status * @see com.tucows.oxrs.epp.rtk.xml.EPPStatus */ public interface epp_StatusOperations extends org.openrtk.idl.epp.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp.epp_StatusReq data); org.openrtk.idl.epp.epp_StatusRsp getResponseData (); } // interface epp_StatusOperations --- NEW FILE: epp_StatusReq.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class that contains the elements necessary to send the status command * to an EPP server.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusReq.java,v 1.1 2002/03/13 18:33:23 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 18:33:23 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPStatus * @see org.openrtk.idl.epp.epp_StatusRsp */ public class epp_StatusReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp.epp_Command m_cmd = null; public String m_client_trid = null; public org.openrtk.idl.epp.epp_StatusCommandType m_command = null; public epp_StatusReq () { } // ctor public epp_StatusReq (org.openrtk.idl.epp.epp_Command _m_cmd, String _m_client_trid, org.openrtk.idl.epp.epp_StatusCommandType _m_command) { m_cmd = _m_cmd; m_client_trid = _m_client_trid; m_command = _m_command; } // ctor public void setCmd(org.openrtk.idl.epp.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp.epp_Command getCmd() { return m_cmd; } public void setClientTrid(String value) { m_client_trid = value; } public String getClientTrid() { return m_client_trid; } public void setCommand(org.openrtk.idl.epp.epp_StatusCommandType value) { m_command = value; } public org.openrtk.idl.epp.epp_StatusCommandType getCommand() { return m_command; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_client_trid ["+m_client_trid+"] m_command ["+m_command+"] }"; } } // class epp_StatusReq --- NEW FILE: epp_StatusResultData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Master external interface for the implementor of the EPP Extension element.</p> * The Unspc(unspecified) element may be used for server-defined command extensions.</p> * The interface brings together epp_ExtensionOperations and standard IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusResultData.java,v 1.1 2002/03/13 18:33:23 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 18:33:23 $<br> */ public class epp_StatusResultData implements org.omg.CORBA.portable.IDLEntity { public boolean m_ack = false; public String m_cltrid = null; public epp_StatusResultData () { } // ctor public epp_StatusResultData (boolean _m_ack, String _m_cltrid) { m_ack = _m_ack; m_cltrid = _m_cltrid; } // ctor public void setAck(boolean value) { m_ack = value; } public boolean getAck() { return m_ack; } public void setCltrid(String value) { m_cltrid = value; } public String getCltrid() { return m_cltrid; } public String toString() { return this.getClass().getName() + ": { m_ack ["+m_ack+"] m_cltrid ["+m_cltrid+"] }"; } } // class epp_StatusResultData --- NEW FILE: epp_StatusRsp.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class that contains the elements used to represent the status * response from the EPP server.</p> * Not usually instantiated by the RTK user, but rather by EPPStatus * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_StatusRsp.java,v 1.1 2002/03/13 18:33:23 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/13 18:33:23 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPStatus */ public class epp_StatusRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp.epp_Response m_rsp = null; public epp_StatusRsp () { } // ctor public epp_StatusRsp (org.openrtk.idl.epp.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_StatusRsp Index: epp_Result.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Result.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Result.java 4 Dec 2001 22:32:50 -0000 1.7 --- epp_Result.java 13 Mar 2002 18:33:22 -0000 1.8 *************** *** 66,69 **** --- 66,75 ---- */ public String m_values[] = null; + /** + * The generic Result data. + * @see #setData(org.openrtk.idl.epp.epp_ResultData) + * @see #getData() + */ + public org.openrtk.idl.epp.epp_ResultData m_data = null; /** *************** *** 84,87 **** --- 90,113 ---- public epp_Result (short _m_code, String _m_msg, String _m_lang, String _m_id, String[] _m_values) { + // Can we call another constructor in here??? + // Don't really want to repeat this code. + m_code = _m_code; + m_msg = _m_msg; + m_lang = _m_lang; + m_id = _m_id; + m_values = _m_values; + } // ctor + + /** + * The constructor with initializing variables. + * @param _m_code The decimal number that describes the success or failure of an EPP command + * @param _m_msg The human-readable description of the response code + * @param _m_lang The language used to express the response message + * @param _m_id The identifier of the service message dequeued from the server by the client + * @param _m_values The array of messages that provide server error details + * @param _m_data The generic result data. + */ + public epp_Result (short _m_code, String _m_msg, String _m_lang, String _m_id, String[] _m_values, org.openrtk.idl.epp.epp_ResultData _m_data) + { m_code = _m_code; m_msg = _m_msg; *************** *** 89,92 **** --- 115,119 ---- m_id = _m_id; m_values = _m_values; + m_data = _m_data; } // ctor *************** *** 157,165 **** /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_code ["+m_code+"] m_msg ["+m_msg+"] m_lang ["+m_lang+"] m_id ["+m_id+"] m_values ["+(m_values != null ? java.util.Arrays.asList(m_values) : null)+"] }"; } } // class epp_Result --- 184,205 ---- /** + * Accessor method for the result data + * @param value The generic result data + * @see #m_data + */ + public void setData(org.openrtk.idl.epp.epp_ResultData value) { m_data = value; } + /** + * Accessor method for the result data + * @return The generic result data + * @see #m_data + */ + public org.openrtk.idl.epp.epp_ResultData getData() { return m_data; } + + /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_code ["+m_code+"] m_values ["+(m_values != null ? java.util.Arrays.asList(m_values) : null)+"] m_msg ["+m_msg+"] m_lang ["+m_lang+"] m_id ["+m_id+"] m_data ["+m_data+"] }"; } } // class epp_Result |
From: Larry Y. <ly...@us...> - 2002-03-13 16:38:24
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv24304 Modified Files: EPPClient.java Log Message: Replaced Unspec with Extensions, changed the type to String[] for services and extensions, and modified some methods to reflect this change. Index: EPPClient.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/EPPClient.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** EPPClient.java 9 Oct 2001 16:52:31 -0000 1.15 --- EPPClient.java 13 Mar 2002 16:08:48 -0000 1.16 *************** *** 73,78 **** private String epp_password_; ! private epp_Service[] epp_services_; ! private epp_Service[] epp_unspec_services_; private String version_; --- 73,78 ---- private String epp_password_; ! private String[] epp_services_; ! private String[] epp_service_extensions_; private String version_; *************** *** 89,93 **** private boolean isValid = false; ! // Is RTK version number included as unspec in login private boolean sendver_ = true; --- 89,93 ---- private boolean isValid = false; ! // Is RTK version number included as extension in login private boolean sendver_ = true; *************** *** 221,227 **** * Accessor method for the epp services. * This value is used in the EPP Login command. ! * @param services The epp_Service class array */ ! public void setEPPServices(epp_Service[] services) { epp_services_ = services; } /** --- 221,227 ---- * Accessor method for the epp services. * This value is used in the EPP Login command. ! * @param services The service URI array */ ! public void setEPPServices(String[] services) { epp_services_ = services; } /** *************** *** 229,245 **** * @return The current services in an array. */ ! public epp_Service[] getEPPServices() { return epp_services_; } /** ! * Accessor method for the epp unspecified services ! * @param unspec_services The epp_Service class array */ ! public void setEPPUnspecServices(epp_Service[] unspec_services) { epp_unspec_services_ = unspec_services; } /** ! * Accessor method for the epp unspecified services. ! * @return The current unspec services in an array. */ ! public epp_Service[] getEPPUnspecServices() { return epp_unspec_services_; } /** --- 229,245 ---- * @return The current services in an array. */ ! public String[] getEPPServices() { return epp_services_; } /** ! * Accessor method for the epp service extensions ! * @param service_extensions The service extension array */ ! public void setEPPServiceExtensions(String[] service_extensions) { epp_service_extensions_ = service_extensions; } /** ! * Accessor method for the epp service extensions. ! * @return The current service extensions in an array. */ ! public String[] getEPPServiceExtensions() { return epp_service_extensions_; } /** *************** *** 761,766 **** /** * Logs into the EPP Server using previously set client id and password. ! * Call setEPPServices() or setEPPUnspecServices() before this method if you want to add epp services ! * or epp unspecified services. * @param client_tr_id The client TRID String * @throws org.openrtk.idl.epp.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. --- 761,766 ---- /** * Logs into the EPP Server using previously set client id and password. ! * Call setEPPServices() or setEPPServiceExtensions() before this method if you want to add epp services ! * or epp service extensions. * @param client_tr_id The client TRID String * @throws org.openrtk.idl.epp.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. *************** *** 774,779 **** /** * Logs into the EPP Server using the given client id, password. ! * Call setEPPServices() or setEPPUnspecServices() before this method if you want to add epp services ! * or epp unspecified services. * @param String the client TRID * @param client_id The EPP client id --- 774,779 ---- /** * Logs into the EPP Server using the given client id, password. ! * Call setEPPServices() or setEPPServiceExtensions() before this method if you want to add epp services ! * or epp service extensions. * @param String the client TRID * @param client_id The EPP client id *************** *** 792,797 **** * Logs into the EPP Server using the given client id, password and new password. * Use this method if you want to change your EPP client password in the server.<BR> ! * Call setEPPServices() or setEPPUnspecServices() before this method if you want to add epp services ! * or epp unspecified services. * @param client_tr_id The client TRID String * @param client_id The EPP client id --- 792,797 ---- * Logs into the EPP Server using the given client id, password and new password. * Use this method if you want to change your EPP client password in the server.<BR> ! * Call setEPPServices() or setEPPServiceExtensions() before this method if you want to add epp services ! * or epp service extensions. * @param client_tr_id The client TRID String * @param client_id The EPP client id *************** *** 813,818 **** * change your EPP client password.<BR> * This method also includes default domain, host and contact object/XML information ! * in the services section. If you wish to set your own services and unspecified services, ! * call setEPPServices() and setEPPUnspecServices() before this method, * or you'll have to populate the EPPLogin command manually and call * processAction() yourself.<br> --- 813,818 ---- * change your EPP client password.<BR> * This method also includes default domain, host and contact object/XML information ! * in the services section. If you wish to set your own services and service extensions, ! * call setEPPServices() and setEPPServiceExtensions() before this method, * or you'll have to populate the EPPLogin command manually and call * processAction() yourself.<br> *************** *** 833,837 **** creds.setOptions( new epp_Options(version_, lang_) ); epp_Command command_data = new epp_Command(creds, null, client_tr_id); ! if( sendver_ ) command_data.setUnspec( new com.tucows.oxrs.epp.rtk.xml.unspec.RTKVersion() ); if ( epp_services_ != null ) --- 833,837 ---- creds.setOptions( new epp_Options(version_, lang_) ); epp_Command command_data = new epp_Command(creds, null, client_tr_id); ! if( sendver_ ) command_data.setExtension( new com.tucows.oxrs.epp.rtk.xml.extension.RTKVersion() ); if ( epp_services_ != null ) *************** *** 839,850 **** else { ! epp_Service[] services = new epp_Service[3]; ! services[0] = new epp_Service("domain", "urn:iana:xml:ns:domain-1.0", "urn:iana:xml:ns:domain-1.0 domain-1.0.xsd"); ! services[1] = new epp_Service("host", "urn:iana:xml:ns:host-1.0", "urn:iana:xml:ns:host-1.0 host-1.0.xsd"); ! services[2] = new epp_Service("contact", "urn:iana:xml:ns:contact-1.0", "urn:iana:xml:ns:contact-1.0 contact-1.0.xsd"); login_req.setServices( services ); } ! if ( epp_unspec_services_ != null ) login_req.setUnspecServices( epp_unspec_services_ ); login_req.setCmd( command_data ); --- 839,850 ---- else { ! String[] services = new String[3]; ! services[0] = "urn:ietf:params:xml:ns:contact-1.0"; ! services[1] = "urn:ietf:params:xml:ns:domain-1.0"; ! services[2] = "urn:ietf:params:xml:ns:host-1.0"; login_req.setServices( services ); } ! if ( epp_service_extensions_ != null ) login_req.setExtensions( epp_service_extensions_ ); login_req.setCmd( command_data ); *************** *** 902,906 **** * Set whether to send RTK version number on Login. * ! * @param send If true, RTK version number will be send in unspec section on * Login */ --- 902,906 ---- * Set whether to send RTK version number on Login. * ! * @param send If true, RTK version number will be send in svcExtension section on * Login */ |
From: Larry Y. <ly...@us...> - 2002-03-13 16:38:05
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv29060 Modified Files: epp_CheckResult.java Log Message: Added the reason, lang memeber variables to reflect the new EPP change Index: epp_CheckResult.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_CheckResult.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_CheckResult.java 4 Dec 2001 22:32:49 -0000 1.7 --- epp_CheckResult.java 13 Mar 2002 16:24:13 -0000 1.8 *************** *** 36,44 **** { /** ! * The boolean value indicating whether an object exists in the registry or not. ! * @see #setExists(boolean) ! * @see #getExists() */ ! public boolean m_exists = false; /** * The identifier or name of the object checked in the registry. --- 36,44 ---- { /** ! * The boolean value indicating whether an object is available in the registry or not. ! * @see #setAvail(boolean) ! * @see #getAvail() */ ! public boolean m_avail = false; /** * The identifier or name of the object checked in the registry. *************** *** 47,50 **** --- 47,63 ---- */ public String m_value = null; + /** + * Server-specific text to explain why the object is unavailable + * Max length 32 by the XSD specifications + * @see #setReason(String) + * @see #getReason() + */ + public String m_reason = null; + /** + * The language for the reason text, default "en" + * @see #setLang(String) + * @see #getLang() + */ + public String m_lang = null; /** *************** *** 59,67 **** * @param _m_exists The boolean value indicating whether an object exists in the registry or not * @param _m_value The identifier or name of the object checked in the registry */ public epp_CheckResult (boolean _m_exists, String _m_value) { ! m_exists = _m_exists; m_value = _m_value; } // ctor --- 72,96 ---- * @param _m_exists The boolean value indicating whether an object exists in the registry or not * @param _m_value The identifier or name of the object checked in the registry + * @deprecated Please use epp_CheckResult(String _m_value, boolean _m_exists, String _m_reason, String _m_lang) instead */ public epp_CheckResult (boolean _m_exists, String _m_value) { ! m_avail = ! _m_exists; ! m_value = _m_value; ! } // ctor ! ! /** ! * The constructor with initializing variables. ! * @param _m_value The identifier or name of the object checked in the registry ! * @param _m_avail The boolean value indicating whether an object is available or not ! * @param _m_reason The Server-specific text to explain why the object is unavailable ! * @param _m_lang The language of the reason text ! */ ! public epp_CheckResult (String _m_value, boolean _m_avail, String _m_reason, String _m_lang) ! { m_value = _m_value; + m_avail = _m_avail; + m_reason = _m_reason; + m_lang = _m_lang; } // ctor *************** *** 69,81 **** * Accessor method for the boolean value indicating whether an object exists in the registry or not * @param value The boolean value indicating whether an object exists in the registry or not ! * @see #m_exists */ ! public void setExists(boolean value) { m_exists = value; } /** * Accessor method for the boolean value indicating whether an object exists in the registry or not * @return The boolean value indicating whether an object exists in the registry or not ! * @see #m_exists */ ! public boolean getExists() { return m_exists; } /** --- 98,123 ---- * Accessor method for the boolean value indicating whether an object exists in the registry or not * @param value The boolean value indicating whether an object exists in the registry or not ! * @deprecated Please use setAvail() instead */ ! public void setExists(boolean value) { m_avail = ! value; } /** * Accessor method for the boolean value indicating whether an object exists in the registry or not * @return The boolean value indicating whether an object exists in the registry or not ! * @deprecated Please use getAvail() instead */ ! public boolean getExists() { return ! m_avail; } ! ! /** ! * Accessor method for the boolean value indicating whether an object is available or not ! * @param value The boolean value indicating whether an object is available or not ! * @see #m_avail ! */ ! public void setAvail(boolean value) { m_avail = value; } ! /** ! * Accessor method for the boolean value indicating whether an object is available or not ! * @return The boolean value indicating whether an object is available or not ! * @see #m_avail ! */ ! public boolean getAvail() { return m_avail; } /** *************** *** 93,101 **** /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_exists ["+m_exists+"] m_value ["+m_value+"] }"; } ! } // class epp_CheckResult --- 135,168 ---- /** + * Accessor method for the reason text + * @param value The reason text + * @see #m_reason + */ + public void setReason(String value) { m_reason = value; } + /** + * Accessor method for the reason text + * @return The reason text + * @see #m_reason + */ + public String getReason() { return m_reason; } + + /** + * Accessor method for the language of the reason text + * @param value The language of the reason text + * @see #m_lang + */ + public void setLang(String value) { m_lang = value; } + /** + * Accessor method for the language of the reason text + * @return The language of the reason text + * @see #m_lang + */ + public String getLang() { return m_lang; } + + /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_value ["+m_value+"] m_avail ["+m_avail+"] m_reason ["+m_reason+"] m_lang ["+m_lang+"] }"; } } // class epp_CheckResult |
From: Daniel M. <tub...@us...> - 2002-03-13 16:36:32
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv387 Modified Files: epp_Login.java epp_PollOpType.java Log Message: small fixes to javadocs Index: epp_Login.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Login.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Login.java 4 Dec 2001 22:32:49 -0000 1.6 --- epp_Login.java 13 Mar 2002 16:36:28 -0000 1.7 *************** *** 27,31 **** * Master external interface for the implementor of the EPP Login command.</p> * The interface brings together epp_LoginOperations, epp_Action and standard ! * IDL classes. * $Header$<br> * $Revision$<br> --- 27,31 ---- * Master external interface for the implementor of the EPP Login command.</p> * The interface brings together epp_LoginOperations, epp_Action and standard ! * IDL classes.</p> * $Header$<br> * $Revision$<br> Index: epp_PollOpType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_PollOpType.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_PollOpType.java 18 Dec 2001 15:59:37 -0000 1.7 --- epp_PollOpType.java 13 Mar 2002 16:36:28 -0000 1.8 *************** *** 26,30 **** /** * Class defining constant instances of poll operation types.</p> ! * Two poll operation types are permitted: REQ (request) and ACK (acknowledge).</p> * $Header$<br> * $Revision$<br> --- 26,30 ---- /** * Class defining constant instances of poll operation types.</p> ! * Two poll operation types permitted are: REQ (request) and ACK (acknowledge).</p> * $Header$<br> * $Revision$<br> |
From: Daniel M. <tub...@us...> - 2002-03-13 02:40:51
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv2149 Modified Files: epp_Command.java epp_LogoutReq.java epp_Response.java Log Message: final touches for conversion of unspec to extension (in wording and in class usage) Index: epp_Command.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Command.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Command.java 4 Dec 2001 22:32:49 -0000 1.7 --- epp_Command.java 13 Mar 2002 02:40:48 -0000 1.8 *************** *** 43,50 **** /** * The optional command extensions. ! * @see #setUnspec(org.openrtk.idl.epp.epp_Unspec) ! * @see #getUnspec() */ ! public org.openrtk.idl.epp.epp_Unspec m_unspec = null; /** * The client transaction identifier assigned by the client to the command. --- 43,50 ---- /** * The optional command extensions. ! * @see #setExtension(org.openrtk.idl.epp.epp_Extension) ! * @see #getExtension() */ ! public org.openrtk.idl.epp.epp_Extension m_extension = null; /** * The client transaction identifier assigned by the client to the command. *************** *** 64,74 **** * The constructor with initializing variables. * @param _m_creds The element that provides client identity information ! * @param _m_unspec The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ ! public epp_Command (org.openrtk.idl.epp.epp_Credentials _m_creds, org.openrtk.idl.epp.epp_Unspec _m_unspec, String _m_client_trid) { m_creds = _m_creds; ! m_unspec = _m_unspec; m_client_trid = _m_client_trid; } // ctor --- 64,74 ---- * The constructor with initializing variables. * @param _m_creds The element that provides client identity information ! * @param _m_extension The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ ! public epp_Command (org.openrtk.idl.epp.epp_Credentials _m_creds, org.openrtk.idl.epp.epp_Extension _m_extension, String _m_client_trid) { m_creds = _m_creds; ! m_extension = _m_extension; m_client_trid = _m_client_trid; } // ctor *************** *** 90,102 **** * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_unspec */ ! public void setUnspec(org.openrtk.idl.epp.epp_Unspec value) { m_unspec = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_unspec */ ! public org.openrtk.idl.epp.epp_Unspec getUnspec() { return m_unspec; } /** --- 90,117 ---- * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_extension */ ! public void setExtension(org.openrtk.idl.epp.epp_Extension value) { m_extension = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_extension */ ! public org.openrtk.idl.epp.epp_Extension getExtension() { return m_extension; } ! ! /** ! * Accessor method for the optional command extensions ! * @param value The optional command extensions ! * @see #m_extension ! * @deprecated Please use setExtension() ! */ ! public void setUnspec(org.openrtk.idl.epp.epp_Unspec value) { setExtension(value); } ! /** ! * Accessor method for the optional command extensions ! * @return The optional command extensions ! * @see #m_extension ! * @deprecated Please use getExtension() ! */ ! public org.openrtk.idl.epp.epp_Unspec getUnspec() { return (epp_Unspec)getExtension(); } /** *************** *** 118,122 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_creds ["+m_creds+"] m_unspec ["+m_unspec+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_Command --- 133,137 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_creds ["+m_creds+"] m_extension ["+m_extension+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_Command Index: epp_LogoutReq.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_LogoutReq.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_LogoutReq.java 4 Dec 2001 22:32:50 -0000 1.7 --- epp_LogoutReq.java 13 Mar 2002 02:40:48 -0000 1.8 *************** *** 36,43 **** /** * The optional command extensions. ! * @see #setUnspec(org.openrtk.idl.epp.epp_Unspec) ! * @see #getUnspec() */ ! public org.openrtk.idl.epp.epp_Unspec m_unspec = null; /** * The client transaction identifier assigned by the client to the command. --- 36,43 ---- /** * The optional command extensions. ! * @see #setExtension(org.openrtk.idl.epp.epp_Extension) ! * @see #getExtension() */ ! public org.openrtk.idl.epp.epp_Extension m_extension = null; /** * The client transaction identifier assigned by the client to the command. *************** *** 56,65 **** /** * The constructor with initializing variables. ! * @param _m_unspec The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ ! public epp_LogoutReq (org.openrtk.idl.epp.epp_Unspec _m_unspec, String _m_client_trid) { ! m_unspec = _m_unspec; m_client_trid = _m_client_trid; } // ctor --- 56,65 ---- /** * The constructor with initializing variables. ! * @param _m_extension The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ ! public epp_LogoutReq (org.openrtk.idl.epp.epp_Extension _m_extension, String _m_client_trid) { ! m_extension = _m_extension; m_client_trid = _m_client_trid; } // ctor *************** *** 68,80 **** * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_unspec */ ! public void setUnspec(org.openrtk.idl.epp.epp_Unspec value) { m_unspec = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_unspec */ ! public org.openrtk.idl.epp.epp_Unspec getUnspec() { return m_unspec; } /** --- 68,95 ---- * Accessor method for the optional command extensions * @param value The optional command extensions ! * @see #m_extension */ ! public void setExtension(org.openrtk.idl.epp.epp_Extension value) { m_extension = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions ! * @see #m_extension */ ! public org.openrtk.idl.epp.epp_Extension getExtension() { return m_extension; } ! ! /** ! * Accessor method for the optional command extensions ! * @param value The optional command extensions ! * @see #m_extension ! * @deprecated Please use setExtension() instead. ! */ ! public void setUnspec(org.openrtk.idl.epp.epp_Unspec value) { setExtension(value); } ! /** ! * Accessor method for the optional command extensions ! * @return The optional command extensions ! * @see #m_extension ! * @deprecated Please use getExtension() intead. ! */ ! public org.openrtk.idl.epp.epp_Unspec getUnspec() { return (epp_Unspec)getExtension(); } /** *************** *** 96,100 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_unspec ["+m_unspec+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_LogoutReq --- 111,115 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_extension ["+m_extension+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_LogoutReq Index: epp_Response.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Response.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Response.java 4 Dec 2001 22:32:50 -0000 1.7 --- epp_Response.java 13 Mar 2002 02:40:48 -0000 1.8 *************** *** 50,57 **** /** * The optional response extensions from the registry. ! * @see #setUnspecString(String) ! * @see #getUnspecString() */ ! public String m_unspec_string = null; /** * The transaction identifiers assigned by the client and the server. --- 50,57 ---- /** * The optional response extensions from the registry. ! * @see #setExtensionString(String) ! * @see #getExtensionString() */ ! public String m_extension_string = null; /** * The transaction identifiers assigned by the client and the server. *************** *** 72,83 **** * @param _m_results The array of the results that document the success or failure of an EPP command execution * @param _m_message_queue The element that indicates the status of the messages queued in the EPP server ! * @param _m_unspec_string The response extensions from the registry * @param _m_trans_id The transaction identifiers assigned by the client and the server */ ! public epp_Response (org.openrtk.idl.epp.epp_Result[] _m_results, org.openrtk.idl.epp.epp_MessageQueue _m_message_queue, String _m_unspec_string, org.openrtk.idl.epp.epp_TransID _m_trans_id) { m_results = _m_results; m_message_queue = _m_message_queue; ! m_unspec_string = _m_unspec_string; m_trans_id = _m_trans_id; } // ctor --- 72,83 ---- * @param _m_results The array of the results that document the success or failure of an EPP command execution * @param _m_message_queue The element that indicates the status of the messages queued in the EPP server ! * @param _m_extension_string The response extensions from the registry * @param _m_trans_id The transaction identifiers assigned by the client and the server */ ! public epp_Response (org.openrtk.idl.epp.epp_Result[] _m_results, org.openrtk.idl.epp.epp_MessageQueue _m_message_queue, String _m_extension_string, org.openrtk.idl.epp.epp_TransID _m_trans_id) { m_results = _m_results; m_message_queue = _m_message_queue; ! m_extension_string = _m_extension_string; m_trans_id = _m_trans_id; } // ctor *************** *** 112,124 **** * Accessor method for the response extensions from the registry * @param value The response extensions ! * @see #m_unspec_string */ ! public void setUnspecString(String value) { m_unspec_string = value; } /** * Accessor method for the response extensions from the registry * @return The response extensions ! * @see #m_unspec_string */ ! public String getUnspecString() { return m_unspec_string; } /** --- 112,139 ---- * Accessor method for the response extensions from the registry * @param value The response extensions ! * @see #m_extension_string */ ! public void setExtensionString(String value) { m_extension_string = value; } /** * Accessor method for the response extensions from the registry * @return The response extensions ! * @see #m_extension_string */ ! public String getExtensionString() { return m_extension_string; } ! ! /** ! * Accessor method for the response extensions from the registry ! * @param value The response extensions ! * @see #m_extension_string ! * @deprecated Please use getExtensionString() instead. ! */ ! public void setUnspecString(String value) { setExtensionString(value); } ! /** ! * Accessor method for the response extensions from the registry ! * @return The response extensions ! * @see #m_extension_string ! * @deprecated Please use getExtensionString() instead. ! */ ! public String getUnspecString() { return getExtensionString(); } /** *************** *** 140,144 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] m_message_queue ["+m_message_queue+"] m_unspec_string ["+m_unspec_string+"] m_trans_id ["+m_trans_id+"] }"; } } // class epp_Response --- 155,159 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] m_message_queue ["+m_message_queue+"] m_extension_string ["+m_extension_string+"] m_trans_id ["+m_trans_id+"] }"; } } // class epp_Response |
From: Daniel M. <tub...@us...> - 2002-03-13 02:31:40
|
Update of /cvsroot/epp-rtk/epp-rtk/java/etc In directory usw-pr-cvs1:/tmp/cvs-serv31891/etc Modified Files: rtk.properties Log Message: added rtk.debuglevel and description of its meaning Index: rtk.properties =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/etc/rtk.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rtk.properties 28 Sep 2001 17:58:42 -0000 1.3 --- rtk.properties 13 Mar 2002 02:31:37 -0000 1.4 *************** *** 16,17 **** --- 16,27 ---- # string, then "com.tucows.oxrs.epp.rtk.transport" is assumed. rtk.transport=EPPTransportTCPTLS + + # RTK's debug level. Acceptable values are from 0 to 3. + # 0 = No debug messages, including exceptions + # 1 = Only show exception messages + # 2 = Debugs various points of interest in the code. Outputs + # XML to and from the server + # 3 = Shows all debug info, including entry and exits from + # most method calls. + # Default value is 1. + rtk.debuglevel=1 |
From: Daniel M. <tub...@us...> - 2002-03-13 02:22:16
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory usw-pr-cvs1:/tmp/cvs-serv29368 Modified Files: VERSION.TXT build.xml Log Message: updates to version number and added bare minimum note to VERSION file Index: VERSION.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/VERSION.TXT,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** VERSION.TXT 18 Dec 2001 16:33:52 -0000 1.17 --- VERSION.TXT 13 Mar 2002 02:22:13 -0000 1.18 *************** *** 7,10 **** --- 7,14 ---- ====================== + epp-rtk-java-0.5.0 - ??? ??, 2002 + + + Initial Java RTK release for EPP 05/03 + epp-rtk-java-0.4.1 - Dec 18, 2001 Index: build.xml =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/build.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** build.xml 7 Nov 2001 21:01:32 -0000 1.16 --- build.xml 13 Mar 2002 02:22:13 -0000 1.17 *************** *** 9,13 **** <property name="optimize" value="true"/> <property name="project.name" value="epp-rtk-java"/> ! <property name="project.version" value="0.4.1"/> <!-- property name="build.compiler" value="jikes"/ --> <!-- property name="build.compiler" value="classic"/ --> --- 9,13 ---- <property name="optimize" value="true"/> <property name="project.name" value="epp-rtk-java"/> ! <property name="project.version" value="0.5.0"/> <!-- property name="build.compiler" value="jikes"/ --> <!-- property name="build.compiler" value="classic"/ --> |
From: Daniel M. <tub...@us...> - 2002-03-13 02:14:08
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/unspec In directory usw-pr-cvs1:/tmp/cvs-serv27296/unspec Modified Files: RTKVersion.java Log Message: created extension/RTKVersion extension class to replase the one in unspec. made the one in unspec deprecated Index: RTKVersion.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/unspec/RTKVersion.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RTKVersion.java 24 Jul 2001 17:54:23 -0000 1.2 --- RTKVersion.java 13 Mar 2002 02:14:05 -0000 1.3 *************** *** 29,47 **** package com.tucows.oxrs.epp.rtk.xml.unspec; - import java.io.*; - import java.util.*; - import java.text.*; - - import com.tucows.oxrs.epp.rtk.*; - import com.tucows.oxrs.epp.rtk.xml.*; - import org.openrtk.idl.epp.*; - - import org.w3c.dom.*; - import org.w3c.dom.traversal.*; - import org.apache.xerces.parsers.*; - import org.xml.sax.*; - import org.apache.xerces.dom.*; - import org.apache.xml.serialize.*; - /** * This class is used to exchange RTK version number with the Registry. --- 29,32 ---- *************** *** 49,126 **** * @author Oleg Snegirev * @version $Revision$ $Date$ */ ! public class RTKVersion extends EPPXMLBase implements epp_Unspec { - /** - * Default constructor - */ - public RTKVersion() - { - } - - /** - * Returns RTK version number. - * - * @return String - */ - public static String getVersion() - { - return RTKBase.RTK_VERSION; - } - - /** - * Converts the RTK version number into XML to be put into the unspec - * section of the request. - * Implemented method from org.openrrc.rtk.epp.epp_Unspec interface. - * - * @throws org.openrtk.idl.epp.epp_XMLException if required data is missing - * @see org.openrtk.idl.epp.epp_Unspec - */ - public String toXML() throws epp_XMLException - { - String method_name = "toXML()"; - debug(DEBUG_LEVEL_THREE,method_name,"Entered"); - - Document doc = new DocumentImpl(); - - Element rtktag = doc.createElement( "rtk" ); - Element vernum = doc.createElement( "version" ); - - vernum.appendChild( doc.createTextNode( RTK_VERSION ) ); - rtktag.appendChild( vernum ); - - doc.appendChild( rtktag ); - - String ver_xml; - - try - { - ver_xml = createXMLFromDoc( doc ); - } - catch( IOException xcp ) - { - throw new epp_XMLException( "IOException in building XML [" + xcp.getMessage() + "]" ); - } - - debug( DEBUG_LEVEL_THREE, method_name, "Returning:\"" + ver_xml + "\"" ); - debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); - - return ver_xml; - } - - /** - * Parses an XML String of test number data from the unspec section of - * a response from the Registry. - * Implemented method from org.openrrc.rtk.epp.epp_Unspec interface. - * <br><b>NOTE:</b> this method is empty because RTK version number will - * never be send from server side to the client. - * - * @param A new test number Unspec XML String to parse - * @throws org.openrtk.idl.epp.epp_XMLException if the response XML is not parsable or does not contain the expected data - * @see org.openrtk.idl.epp.epp_Action - */ - public void fromXML( String xml ) throws epp_XMLException - { - } - } // end of class com.tucows.oxrs.epp.rtk.xml.unspec.RTKVersion --- 34,41 ---- * @author Oleg Snegirev * @version $Revision$ $Date$ + * @deprecated Please use com.tucows.oxrs.epp.rtk.xml.extension.RTKVersion instead + * @see com.tucows.oxrs.epp.rtk.xml.extension.RTKVersion */ ! public class RTKVersion extends com.tucows.oxrs.epp.rtk.xml.extension.RTKVersion { } // end of class com.tucows.oxrs.epp.rtk.xml.unspec.RTKVersion |