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-13 02:14:07
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/extension In directory usw-pr-cvs1:/tmp/cvs-serv27296/extension Added Files: RTKVersion.java Log Message: created extension/RTKVersion extension class to replase the one in unspec. made the one in unspec deprecated --- NEW FILE: RTKVersion.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Liberty Registry Management Services, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/extension/RTKVersion.java,v 1.1 2002/03/13 02:14:05 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2002/03/13 02:14:05 $ */ package com.tucows.oxrs.epp.rtk.xml.extension; 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. * * @author Oleg Snegirev * @version $Revision: 1.1 $ $Date: 2002/03/13 02:14:05 $ */ public class RTKVersion extends EPPXMLBase implements epp_Extension { /** * 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 extension * section of the request. * Implemented method from org.openrrc.rtk.epp.epp_Extension interface. * * @throws org.openrtk.idl.epp.epp_XMLException if required data is missing * @see org.openrtk.idl.epp.epp_Extension */ 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 Extension section of * a response from the Registry. * Implemented method from org.openrrc.rtk.epp.epp_Extension 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 Extension 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.extension.RTKVersion |
From: Daniel M. <tub...@us...> - 2002-03-13 02:11:25
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk In directory usw-pr-cvs1:/tmp/cvs-serv26554 Modified Files: RTKBase.java Log Message: Changed the version number to 0.5.0 Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/RTKBase.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** RTKBase.java 5 Feb 2002 17:10:55 -0000 1.12 --- RTKBase.java 13 Mar 2002 02:11:23 -0000 1.13 *************** *** 50,54 **** * RTK Version number. */ ! public static final String RTK_VERSION = "0.4.1"; /** --- 50,54 ---- * RTK Version number. */ ! public static final String RTK_VERSION = "0.5.0"; /** |
From: Daniel M. <tub...@us...> - 2002-03-13 02:05:56
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/extension In directory usw-pr-cvs1:/tmp/cvs-serv24842/extension Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/extension added to the repository |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv23880 Modified Files: EPPContactCheck.java EPPContactCreate.java EPPContactDelete.java EPPContactInfo.java EPPContactTransfer.java EPPContactUpdate.java EPPDomainCheck.java EPPDomainCreate.java EPPDomainDelete.java EPPDomainInfo.java EPPDomainRenew.java EPPDomainTransfer.java EPPDomainUpdate.java EPPHostCheck.java EPPHostCreate.java EPPHostDelete.java EPPHostInfo.java EPPHostUpdate.java EPPLogin.java EPPLogout.java EPPPoll.java EPPXMLBase.java Log Message: upgrades to object classes to use new epp_Extension instead of epp_Unspec Index: EPPContactCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCheck.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPContactCheck.java 24 Jul 2001 17:54:23 -0000 1.3 --- EPPContactCheck.java 13 Mar 2002 02:03:25 -0000 1.4 *************** *** 142,147 **** command.appendChild( check ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! command.appendChild( prepareExtensionElement( doc, 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.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPContactCreate.java 12 Mar 2002 18:56:19 -0000 1.6 --- EPPContactCreate.java 13 Mar 2002 02:03:25 -0000 1.7 *************** *** 176,180 **** command.appendChild( create ); ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 176,180 ---- command.appendChild( create ); ! command.appendChild( prepareExtensionElement( doc, 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.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPContactDelete.java 24 Jul 2001 17:54:23 -0000 1.3 --- EPPContactDelete.java 13 Mar 2002 02:03:25 -0000 1.4 *************** *** 138,143 **** command.appendChild( delete ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! command.appendChild( prepareExtensionElement( doc, 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.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPContactInfo.java 6 Dec 2001 14:39:07 -0000 1.7 --- EPPContactInfo.java 13 Mar 2002 02:03:25 -0000 1.8 *************** *** 136,141 **** command.appendChild( info ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 136,140 ---- command.appendChild( info ); ! command.appendChild( prepareExtensionElement( doc, 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.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPContactTransfer.java 12 Mar 2002 18:57:58 -0000 1.8 --- EPPContactTransfer.java 13 Mar 2002 02:03:25 -0000 1.9 *************** *** 164,169 **** command.appendChild( transfer ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 164,168 ---- command.appendChild( transfer ); ! command.appendChild( prepareExtensionElement( doc, 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.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPContactUpdate.java 28 Sep 2001 16:23:38 -0000 1.6 --- EPPContactUpdate.java 13 Mar 2002 02:03:25 -0000 1.7 *************** *** 161,166 **** command.appendChild( update ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 161,165 ---- command.appendChild( update ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) Index: EPPDomainCheck.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCheck.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPDomainCheck.java 24 Jul 2001 17:54:23 -0000 1.3 --- EPPDomainCheck.java 13 Mar 2002 02:03:25 -0000 1.4 *************** *** 142,147 **** command.appendChild( check ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! command.appendChild( prepareExtensionElement( doc, 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.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPDomainCreate.java 12 Mar 2002 18:56:19 -0000 1.6 --- EPPDomainCreate.java 13 Mar 2002 02:03:25 -0000 1.7 *************** *** 152,156 **** if ( action_request_.m_registrant != null ) { ! addXMLElement(doc, domain_create, "domain:registrant", action_request_.m_registrant); } --- 152,156 ---- if ( action_request_.m_registrant != null ) { ! addXMLElement(doc, domain_create, "domain:registrant", action_request_.m_registrant); } *************** *** 178,182 **** command.appendChild( create ); ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 178,182 ---- command.appendChild( create ); ! command.appendChild( prepareExtensionElement( doc, 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.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPDomainDelete.java 24 Jul 2001 17:54:23 -0000 1.3 --- EPPDomainDelete.java 13 Mar 2002 02:03:25 -0000 1.4 *************** *** 138,143 **** command.appendChild( delete ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! command.appendChild( prepareExtensionElement( doc, 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.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPDomainInfo.java 12 Mar 2002 18:56:53 -0000 1.5 --- EPPDomainInfo.java 13 Mar 2002 02:03:25 -0000 1.6 *************** *** 148,153 **** command.appendChild( info ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 148,152 ---- command.appendChild( info ); ! command.appendChild( prepareExtensionElement( doc, 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.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPDomainRenew.java 24 Jul 2001 17:54:23 -0000 1.5 --- EPPDomainRenew.java 13 Mar 2002 02:03:25 -0000 1.6 *************** *** 144,149 **** command.appendChild( renew ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 144,148 ---- command.appendChild( renew ); ! command.appendChild( prepareExtensionElement( doc, 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.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPDomainTransfer.java 12 Mar 2002 18:57:58 -0000 1.7 --- EPPDomainTransfer.java 13 Mar 2002 02:03:25 -0000 1.8 *************** *** 170,175 **** command.appendChild( transfer ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 170,174 ---- command.appendChild( transfer ); ! command.appendChild( prepareExtensionElement( doc, 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.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPDomainUpdate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPDomainUpdate.java 13 Mar 2002 02:03:25 -0000 1.6 *************** *** 170,175 **** command.appendChild( update ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 170,174 ---- command.appendChild( update ); ! command.appendChild( prepareExtensionElement( doc, 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.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPHostCheck.java 24 Jul 2001 17:54:23 -0000 1.3 --- EPPHostCheck.java 13 Mar 2002 02:03:25 -0000 1.4 *************** *** 142,147 **** command.appendChild( check ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 142,146 ---- command.appendChild( check ); ! command.appendChild( prepareExtensionElement( doc, 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.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPHostCreate.java 12 Mar 2002 18:56:19 -0000 1.6 --- EPPHostCreate.java 13 Mar 2002 02:03:25 -0000 1.7 *************** *** 152,157 **** command.appendChild( create ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 152,156 ---- command.appendChild( create ); ! command.appendChild( prepareExtensionElement( doc, 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.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EPPHostDelete.java 24 Jul 2001 17:54:23 -0000 1.3 --- EPPHostDelete.java 13 Mar 2002 02:03:25 -0000 1.4 *************** *** 138,143 **** command.appendChild( delete ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 138,142 ---- command.appendChild( delete ); ! command.appendChild( prepareExtensionElement( doc, 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.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPHostInfo.java 6 Dec 2001 16:26:28 -0000 1.6 --- EPPHostInfo.java 13 Mar 2002 02:03:25 -0000 1.7 *************** *** 136,141 **** command.appendChild( info ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 136,140 ---- command.appendChild( info ); ! command.appendChild( prepareExtensionElement( doc, 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.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPHostUpdate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPHostUpdate.java 13 Mar 2002 02:03:25 -0000 1.6 *************** *** 161,166 **** command.appendChild( update ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 161,165 ---- command.appendChild( update ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) Index: EPPLogin.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogin.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPLogin.java 12 Mar 2002 23:40:19 -0000 1.6 --- EPPLogin.java 13 Mar 2002 02:03:25 -0000 1.7 *************** *** 148,153 **** command.appendChild( login ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 148,152 ---- command.appendChild( login ); ! command.appendChild( prepareExtensionElement( doc, 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.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPLogout.java 28 Sep 2001 16:23:38 -0000 1.7 --- EPPLogout.java 13 Mar 2002 02:03:25 -0000 1.8 *************** *** 109,113 **** { // in this situation, unspec may be null ! command.appendChild( prepareUnspecElement( doc, action_request_.m_unspec ) ); } else --- 109,113 ---- { // in this situation, unspec may be null ! command.appendChild( prepareExtensionElement( doc, action_request_.m_extension ) ); } else *************** *** 115,120 **** // in this situation, we're putting an empty // unspec in the command. ! Element unspec = doc.createElement("unspec"); ! command.appendChild( unspec ); } --- 115,120 ---- // in this situation, we're putting an empty // unspec in the command. ! Element extension = doc.createElement("extension"); ! command.appendChild( 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.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPPoll.java 24 Jul 2001 17:54:23 -0000 1.5 --- EPPPoll.java 13 Mar 2002 02:03:25 -0000 1.6 *************** *** 126,131 **** command.appendChild( poll ); ! // unspec is a raw string for now. ! command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) --- 126,130 ---- command.appendChild( poll ); ! command.appendChild( prepareExtensionElement( doc, command_data.m_extension ) ); if ( command_data.m_client_trid != null ) *************** *** 163,169 **** * then the RTK property "poll.parser.extension.packages" will be used * to supply other package names for searching.</p> ! * So, let's say the first child of resData is "domain:transfer". * Non-alphanumeric characters are stripped out of the tag name and ! * the parser class "domaintransfer" is searched for first in * "com.tucows.oxrs.epp.rtk.xml.poll". It turns out that this class * is found in this location, so searching stops there. EPPPoll --- 162,168 ---- * then the RTK property "poll.parser.extension.packages" will be used * to supply other package names for searching.</p> ! * So, let's say the first child of resData is "domain:trnData". * Non-alphanumeric characters are stripped out of the tag name and ! * the parser class "domaintrnData" is searched for first in * "com.tucows.oxrs.epp.rtk.xml.poll". It turns out that this class * is found in this location, so searching stops there. EPPPoll *************** *** 172,176 **** * epp_PollResData (including the union inside there). This * data is then retrieved and put into m_res_data of epp_PollRsp.</P> ! * If "domaintransfer" was not found in the default package, then * the RTK property "poll.parser.extension.packages" is loaded. This * must be a comma separated list of packages names in which the class --- 171,175 ---- * epp_PollResData (including the union inside there). This * data is then retrieved and put into m_res_data of epp_PollRsp.</P> ! * If "domaintrnData" was not found in the default package, then * the RTK property "poll.parser.extension.packages" is loaded. This * must be a comma separated list of packages names in which the class Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** EPPXMLBase.java 12 Mar 2002 22:19:15 -0000 1.18 --- EPPXMLBase.java 13 Mar 2002 02:03:25 -0000 1.19 *************** *** 358,391 **** generic_response.m_results = (epp_Result []) convertListToArray((new epp_Result()).getClass(), results); ! // Unspec is a raw string (which could include XML) which // we give directly back to the user for external parsing // (which might be provided by RTK classes if the extension // is common ! NodeList unspec_nodes = ((Element)response_node).getElementsByTagName("unspec"); ! if ( unspec_nodes.getLength() == 0 ) { ! generic_response.m_unspec_string = null; } else { ! Node unspec_node = unspec_nodes.item(0); Document udoc = new DocumentImpl(); ! String unspec_string; ! // Have to create a new doc from this unspec node to // get the raw XML. ! udoc.appendChild( udoc.importNode( unspec_node, true ) ); try { ! unspec_string = createXMLFromDoc( udoc ); ! // Now have to isolate the unspec XML without ! // the <unspec> wrapping tags. ! RE regexp = new RE("<unspec>(.*)</unspec>$"); ! regexp.match(unspec_string); ! generic_response.m_unspec_string = regexp.getParen(1); } catch( IOException ioe ) --- 358,391 ---- generic_response.m_results = (epp_Result []) convertListToArray((new epp_Result()).getClass(), results); ! // Extension is a raw string (which could include XML) which // we give directly back to the user for external parsing // (which might be provided by RTK classes if the extension // is common ! NodeList extension_nodes = ((Element)response_node).getElementsByTagName("extension"); ! if ( extension_nodes.getLength() == 0 ) { ! generic_response.m_extension_string = null; } else { ! Node extension_node = extension_nodes.item(0); Document udoc = new DocumentImpl(); ! String extension_string; ! // Have to create a new doc from this extension node to // get the raw XML. ! udoc.appendChild( udoc.importNode( extension_node, true ) ); try { ! extension_string = createXMLFromDoc( udoc ); ! // Now have to isolate the extension XML without ! // the <extension> wrapping tags. ! RE regexp = new RE("<extension>(.*)</extension>$"); ! regexp.match(extension_string); ! generic_response.m_extension_string = regexp.getParen(1); } catch( IOException ioe ) *************** *** 395,399 **** catch (RESyntaxException xcp) { ! throw new epp_XMLException( "Bad regexp when trying to parse Unspec [" + xcp.getMessage() + "]" ); } --- 395,399 ---- catch (RESyntaxException xcp) { ! throw new epp_XMLException( "Bad regexp when trying to parse Extension [" + xcp.getMessage() + "]" ); } *************** *** 775,787 **** /** ! * Gets the Node representing the unspec xml tag. ! * @return Element for the unspec XML * @throws IOException if there is an error getting the bytes from the XML * @throws SAXException if there are XML errors * @throws RuntimeException if the XML document does not support Traversal v2.0 */ ! protected Node getUnspecNode(String unspec_string) throws IOException, SAXException { ! String method_name = "getUnspecElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); DOMParser parser = new DOMParser(); --- 775,787 ---- /** ! * Gets the Node representing the extension xml tag. ! * @return Element for the extension XML * @throws IOException if there is an error getting the bytes from the XML * @throws SAXException if there are XML errors * @throws RuntimeException if the XML document does not support Traversal v2.0 */ ! protected Node getExtensionNode(String extension_string) throws IOException, SAXException { ! String method_name = "getExtensionElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); DOMParser parser = new DOMParser(); *************** *** 812,855 **** } } ! parser.parse(new InputSource(new ByteArrayInputStream(unspec_string.getBytes()))); Document document = parser.getDocument(); if (!document.isSupported("Traversal", "2.0")) throw new RuntimeException("This DOM Document does not support Traversal"); ! Node unspec_node = (Node) document.getDocumentElement(); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); ! return unspec_node; } /** ! * Method to change an epp_Unspec instance to XML elements. */ ! protected Element prepareUnspecElement( Document doc, ! epp_Unspec unspec ) throws epp_XMLException { ! String method_name = "prepareUnspecElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); ! Element unspec_element = doc.createElement("unspec"); ! if ( unspec != null ) { ! String unspec_string = unspec.toXML(); ! if ( unspec_string != null && ! unspec_string.length() != 0 ) { try { ! Node unspec_node = getUnspecNode(unspec_string); ! if ( unspec_node != null ) { ! unspec_node = doc.importNode( getUnspecNode(unspec_string), true ); ! unspec_element.appendChild( unspec_node ); } else { ! // if the unspec node was null, then it wasn't valid XML or // it is just a string (eg "hellothere") and this ! // can be included as a raw string in the unspec tag. ! unspec_element.appendChild( doc.createTextNode(unspec_string) ); } } --- 812,855 ---- } } ! parser.parse(new InputSource(new ByteArrayInputStream(extension_string.getBytes()))); Document document = parser.getDocument(); if (!document.isSupported("Traversal", "2.0")) throw new RuntimeException("This DOM Document does not support Traversal"); ! Node extension_node = (Node) document.getDocumentElement(); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); ! return extension_node; } /** ! * 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 ) { ! String extension_string = extension.toXML(); ! if ( extension_string != null && ! extension_string.length() != 0 ) { try { ! Node extension_node = getExtensionNode(extension_string); ! if ( extension_node != null ) { ! extension_node = doc.importNode( getExtensionNode(extension_string), true ); ! extension_element.appendChild( extension_node ); } else { ! // if the extension node was null, then it wasn't valid XML or // it is just a string (eg "hellothere") and this ! // can be included as a raw string in the extension tag. ! extension_element.appendChild( doc.createTextNode(extension_string) ); } } *************** *** 857,866 **** { debug(DEBUG_LEVEL_ONE,method_name,xcp); ! throw new epp_XMLException( "error in unspec XML ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]" ); } } } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); ! return unspec_element; } --- 857,866 ---- { debug(DEBUG_LEVEL_ONE,method_name,xcp); ! throw new epp_XMLException( "error in extension XML ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]" ); } } } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); ! return extension_element; } |
From: Daniel M. <tub...@us...> - 2002-03-13 02:02:28
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv23547/example Modified Files: ContactExample.java DomainExample.java HostExample.java SessionExample.java Log Message: updates to code samples to jive with Larry's epp_Greeting upgrades Index: ContactExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/ContactExample.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ContactExample.java 18 Dec 2001 02:56:11 -0000 1.10 --- ContactExample.java 13 Mar 2002 02:02:25 -0000 1.11 *************** *** 111,140 **** System.out.println("greeting's server: ["+greeting.m_server_id+"]"); System.out.println("greeting's server-date: ["+greeting.m_server_date+"]"); ! if ( greeting.m_versions != null && greeting.m_versions.length > 0 ) ! { ! System.out.println("greeting's version: ["+greeting.m_versions[0]+"]"); ! } ! if ( greeting.m_langs != null && greeting.m_langs.length > 0 ) ! { ! System.out.println("greeting's lang: ["+greeting.m_langs[0]+"]"); ! } ! ! if ( greeting.m_services != null && greeting.m_services.length >0 ) ! { ! System.out.println("services provided by epp: "); ! for (int i=0; i<greeting.m_services.length; i++) ! { ! System.out.println((epp_Service)greeting.m_services[i]); ! } ! } ! ! if ( greeting.m_unspec_services != null && greeting.m_unspec_services.length >0 ) ! { ! System.out.println("\nunspecified services provided by epp: "); ! for (int i=0; i<greeting.m_unspec_services.length; i++) ! { ! System.out.println((epp_Service)greeting.m_unspec_services[i]); ! } ! } System.out.println(); --- 111,115 ---- System.out.println("greeting's server: ["+greeting.m_server_id+"]"); System.out.println("greeting's server-date: ["+greeting.m_server_date+"]"); ! System.out.println("greeting's service menu: ["+greeting.getSvcMenu()+"]"); System.out.println(); Index: DomainExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/DomainExample.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** DomainExample.java 12 Mar 2002 05:34:24 -0000 1.10 --- DomainExample.java 13 Mar 2002 02:02:25 -0000 1.11 *************** *** 108,137 **** System.out.println("greeting's server: ["+greeting.m_server_id+"]"); System.out.println("greeting's server-date: ["+greeting.m_server_date+"]"); ! if ( greeting.m_versions != null && greeting.m_versions.length > 0 ) ! { ! System.out.println("greeting's version: ["+greeting.m_versions[0]+"]"); ! } ! if ( greeting.m_langs != null && greeting.m_langs.length > 0 ) ! { ! System.out.println("greeting's lang: ["+greeting.m_langs[0]+"]"); ! } ! ! if ( greeting.m_services != null && greeting.m_services.length >0 ) ! { ! System.out.println("services provided by epp: "); ! for (int i=0; i<greeting.m_services.length; i++) ! { ! System.out.println((epp_Service)greeting.m_services[i]); ! } ! } ! ! if ( greeting.m_unspec_services != null && greeting.m_unspec_services.length >0 ) ! { ! System.out.println("\nunspecified services provided by epp: "); ! for (int i=0; i<greeting.m_unspec_services.length; i++) ! { ! System.out.println((epp_Service)greeting.m_unspec_services[i]); ! } ! } System.out.println(); --- 108,112 ---- System.out.println("greeting's server: ["+greeting.m_server_id+"]"); System.out.println("greeting's server-date: ["+greeting.m_server_date+"]"); ! System.out.println("greeting's service menu: ["+greeting.getSvcMenu()+"]"); System.out.println(); Index: HostExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/HostExample.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** HostExample.java 18 Dec 2001 02:56:12 -0000 1.7 --- HostExample.java 13 Mar 2002 02:02:25 -0000 1.8 *************** *** 105,134 **** System.out.println("greeting's server: ["+greeting.m_server_id+"]"); System.out.println("greeting's server-date: ["+greeting.m_server_date+"]"); ! if ( greeting.m_versions != null && greeting.m_versions.length > 0 ) ! { ! System.out.println("greeting's version: ["+greeting.m_versions[0]+"]"); ! } ! if ( greeting.m_langs != null && greeting.m_langs.length > 0 ) ! { ! System.out.println("greeting's lang: ["+greeting.m_langs[0]+"]"); ! } ! ! if ( greeting.m_services != null && greeting.m_services.length >0 ) ! { ! System.out.println("services provided by epp: "); ! for (int i=0; i<greeting.m_services.length; i++) ! { ! System.out.println((epp_Service)greeting.m_services[i]); ! } ! } ! ! if ( greeting.m_unspec_services != null && greeting.m_unspec_services.length >0 ) ! { ! System.out.println("\nunspecified services provided by epp: "); ! for (int i=0; i<greeting.m_unspec_services.length; i++) ! { ! System.out.println((epp_Service)greeting.m_unspec_services[i]); ! } ! } System.out.println(); --- 105,109 ---- System.out.println("greeting's server: ["+greeting.m_server_id+"]"); System.out.println("greeting's server-date: ["+greeting.m_server_date+"]"); ! System.out.println("greeting's service menu: ["+greeting.getSvcMenu()+"]"); System.out.println(); Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/SessionExample.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** SessionExample.java 12 Mar 2002 05:34:24 -0000 1.17 --- SessionExample.java 13 Mar 2002 02:02:25 -0000 1.18 *************** *** 138,149 **** System.out.println("greeting's server: ["+greeting.getServerId()+"]"); System.out.println("greeting's server-date: ["+greeting.getServerDate()+"]"); ! if ( greeting.getVersions() != null && greeting.getVersions().length > 0 ) ! { ! System.out.println("greeting's version: ["+greeting.getVersions()[0]+"]"); ! } ! if ( greeting.getLangs() != null && greeting.getLangs().length > 0 ) ! { ! System.out.println("greeting's lang: ["+greeting.getLangs()[0]+"]"); ! } // The .biz registry requires unique client trid's for --- 138,142 ---- System.out.println("greeting's server: ["+greeting.getServerId()+"]"); System.out.println("greeting's server-date: ["+greeting.getServerDate()+"]"); ! System.out.println("greeting's service menu: ["+greeting.getSvcMenu()+"]"); // The .biz registry requires unique client trid's for |
From: Larry Y. <ly...@us...> - 2002-03-12 23:41:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv15371 Modified Files: epp_LoginReq.java Log Message: Index: epp_LoginReq.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_LoginReq.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_LoginReq.java 4 Dec 2001 22:32:49 -0000 1.7 --- epp_LoginReq.java 12 Mar 2002 23:40:57 -0000 1.8 *************** *** 42,58 **** public org.openrtk.idl.epp.epp_Command m_cmd = null; /** ! * The array of service elements. ! * Each element identifies an object to be managed during the session. ! * @see #setServices(org.openrtk.idl.epp.epp_Service[]) * @see #getServices() */ ! public org.openrtk.idl.epp.epp_Service m_services[] = null; /** ! * The array of unspecified service elements. * Each element identifies a custom object extensions supported by the server. ! * @see #setUnspecServices(org.openrtk.idl.epp.epp_Service[]) ! * @see #getUnspecServices() */ ! public org.openrtk.idl.epp.epp_Service m_unspec_services[] = null; /** --- 42,58 ---- public org.openrtk.idl.epp.epp_Command m_cmd = null; /** ! * The array of service URIs. ! * Each URI identifies an object to be managed during the session. ! * @see #setServices(String[]) * @see #getServices() */ ! public String m_services[] = null; /** ! * The array of service extensions. * Each element identifies a custom object extensions supported by the server. ! * @see #setExtensions(String[]) ! * @see #getExtensions() */ ! public String m_extensions[] = null; /** *************** *** 67,77 **** * @param _m_cmd The common and generic command element * @param _m_services The array of services supported by the server ! * @param _m_unspec_services The array of unspecified service extensions supported by the server */ ! public epp_LoginReq (org.openrtk.idl.epp.epp_Command _m_cmd, org.openrtk.idl.epp.epp_Service[] _m_services, org.openrtk.idl.epp.epp_Service[] _m_unspec_services) { m_cmd = _m_cmd; m_services = _m_services; ! m_unspec_services = _m_unspec_services; } // ctor --- 67,77 ---- * @param _m_cmd The common and generic command element * @param _m_services The array of services supported by the server ! * @param _m_extensions The array of service extensions supported by the server */ ! public epp_LoginReq (org.openrtk.idl.epp.epp_Command _m_cmd, String[] _m_services, String[] _m_extensions) { m_cmd = _m_cmd; m_services = _m_services; ! m_extensions = _m_extensions; } // ctor *************** *** 91,117 **** /** * Accessor method for the array of services supported by the server ! * @param value The array of service elements * @see #m_services */ ! public void setServices(org.openrtk.idl.epp.epp_Service[] value) { m_services = value; } /** * Accessor method for the array of services supported by the server ! * @return The array of service elements * @see #m_services */ ! public org.openrtk.idl.epp.epp_Service[] getServices() { return m_services; } /** ! * Accessor method for the array of unspecified service extensions supported by the server ! * @param value The array of unspecified service elements ! * @see #m_unspec_services */ ! public void setUnspecServices(org.openrtk.idl.epp.epp_Service[] value) { m_unspec_services = value; } /** ! * Accessor method for the array of unspecified service extensions supported by the server ! * @return The array of unspecified service elements ! * @see #m_unspec_services */ ! public org.openrtk.idl.epp.epp_Service[] getUnspecServices() { return m_unspec_services; } /** --- 91,117 ---- /** * Accessor method for the array of services supported by the server ! * @param value The array of service URIs * @see #m_services */ ! public void setServices(String[] value) { m_services = value; } /** * Accessor method for the array of services supported by the server ! * @return The array of service URIs * @see #m_services */ ! public String[] getServices() { return m_services; } /** ! * Accessor method for the array of service extensions supported by the server ! * @param value The array of service extensions ! * @see #m_extensions */ ! public void setExtensions(String[] value) { m_extensions = value; } /** ! * Accessor method for the array of service extensions supported by the server ! * @return The array of service extensions ! * @see #m_extensions */ ! public String[] getExtensions() { return m_extensions; } /** *************** *** 120,124 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_services ["+(m_services != null ? java.util.Arrays.asList(m_services) : null)+"] m_unspec_services ["+(m_unspec_services != null ? java.util.Arrays.asList(m_unspec_services) : null)+"] }"; } } // class epp_LoginReq --- 120,124 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_services ["+(m_services != null ? java.util.Arrays.asList(m_services) : null)+"] m_extensions ["+(m_extensions != null ? java.util.Arrays.asList(m_extensions) : null)+"] }"; } } // class epp_LoginReq |
From: Larry Y. <ly...@us...> - 2002-03-12 23:40:22
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv14717 Modified Files: EPPLogin.java Log Message: Index: EPPLogin.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPLogin.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPLogin.java 24 Jul 2001 17:54:23 -0000 1.5 --- EPPLogin.java 12 Mar 2002 23:40:19 -0000 1.6 *************** *** 123,155 **** // Now for services ! List services = Arrays.asList(action_request_.m_services); ! ! Element services_element = doc.createElement("svcs"); ! for (Iterator it = services.iterator(); it.hasNext();) ! { ! epp_Service service = (epp_Service)it.next(); ! Element service_element = doc.createElement(service.m_name+":svc"); ! service_element.setAttribute("xmlns:"+service.m_name, service.m_xmlns); ! service_element.setAttribute("xsi:schemaLocation", service.m_schema_location); ! services_element.appendChild(service_element); ! } ! if (action_request_.m_unspec_services != null) { ! List unspec_services = Arrays.asList(action_request_.m_unspec_services); ! ! Element unspec_services_element = doc.createElement("unspec"); ! for (Iterator it = unspec_services.iterator(); it.hasNext();) { ! epp_Service service = (epp_Service)it.next(); ! Element service_element = doc.createElement(service.m_name+":svc"); ! service_element.setAttribute("xmlns:"+service.m_name, service.m_xmlns); ! service_element.setAttribute("xsi:schemaLocation", service.m_schema_location); ! unspec_services_element.appendChild(service_element); } ! services_element.appendChild(unspec_services_element); } --- 123,145 ---- // Now for services ! Element services_element = doc.createElement("svcs"); ! for (int count=0; count<action_request_.m_services.length; count++) ! { ! String service = action_request_.m_services[count]; ! addXMLElement(doc, services_element, "objURI", service); ! } ! if (action_request_.m_extensions != null) { ! Element extensions_element = doc.createElement("svcExtension"); ! for (int count=0; count<action_request_.m_extensions.length; count++) { ! String extension = action_request_.m_extensions[count]; ! addXMLElement(doc, extensions_element, "extURI", extension); } ! services_element.appendChild(extensions_element); } |
From: Larry Y. <ly...@us...> - 2002-03-12 22:23:03
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv19633 Modified Files: EPPContactBase.java EPPDomainBase.java EPPHostBase.java Log Message: changed the namespace Index: EPPContactBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactBase.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EPPContactBase.java 12 Mar 2002 18:57:57 -0000 1.9 --- EPPContactBase.java 12 Mar 2002 22:23:00 -0000 1.10 *************** *** 115,120 **** protected void setCommonAttributes(Element command) { ! command.setAttribute("xmlns:contact", "urn:iana:xml:ns:contact-1.0"); ! command.setAttribute("xsi:schemaLocation", "urn:iana:xml:ns:contact-1.0 contact-1.0.xsd"); } --- 115,120 ---- protected void setCommonAttributes(Element command) { ! command.setAttribute("xmlns:contact", "urn:ietf:params:xml:ns:contact-1.0"); ! command.setAttribute("xsi:schemaLocation", "urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd"); } Index: EPPDomainBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainBase.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPDomainBase.java 12 Mar 2002 18:57:58 -0000 1.8 --- EPPDomainBase.java 12 Mar 2002 22:23:00 -0000 1.9 *************** *** 176,181 **** protected void setCommonAttributes(Element command) { ! command.setAttribute("xmlns:domain", "urn:iana:xml:ns:domain-1.0"); ! command.setAttribute("xsi:schemaLocation", "urn:iana:xml:ns:domain-1.0 domain-1.0.xsd"); } --- 176,181 ---- protected void setCommonAttributes(Element command) { ! command.setAttribute("xmlns:domain", "urn:ietf:params:xml:ns:domain-1.0"); ! command.setAttribute("xsi:schemaLocation", "urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"); } Index: EPPHostBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostBase.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPHostBase.java 28 Sep 2001 16:23:38 -0000 1.7 --- EPPHostBase.java 12 Mar 2002 22:23:00 -0000 1.8 *************** *** 135,140 **** protected void setCommonAttributes(Element command) { ! command.setAttribute("xmlns:host", "urn:iana:xml:ns:host-1.0"); ! command.setAttribute("xsi:schemaLocation", "urn:iana:xml:ns:host-1.0 host-1.0.xsd"); } --- 135,140 ---- protected void setCommonAttributes(Element command) { ! command.setAttribute("xmlns:host", "urn:ietf:params:xml:ns:host-1.0"); ! command.setAttribute("xsi:schemaLocation", "urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd"); } |
From: Larry Y. <ly...@us...> - 2002-03-12 22:19:18
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv18178 Modified Files: EPPGreeting.java EPPXMLBase.java Log Message: added some utility methods and changed the epp namespace Index: EPPGreeting.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPGreeting.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPGreeting.java 24 Jul 2001 17:54:23 -0000 1.4 --- EPPGreeting.java 12 Mar 2002 22:19:15 -0000 1.5 *************** *** 144,148 **** Node service_menu = null; ! Node unspec_service_menu = null; for (int count = 0; count < greeting_nodes.getLength(); count++) --- 144,148 ---- Node service_menu = null; ! Node dcp = null; for (int count = 0; count < greeting_nodes.getLength(); count++) *************** *** 153,165 **** --- 153,169 ---- if ( a_node.getNodeName().equals("svDate") ) { greeting_.m_server_date = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("svcMenu") ) { service_menu = a_node; } + if ( a_node.getNodeName().equals("dcp") ) { dcp = a_node; } } if (service_menu != null) { + epp_ServiceMenu svc_menu = new epp_ServiceMenu(); NodeList inner_nodes = service_menu.getChildNodes(); List service_list = (List)new ArrayList(); + List extension_list = (List)new ArrayList(); List version_list = (List)new ArrayList(); List lang_list = (List)new ArrayList(); + Node service_extension = null; for (int count = 0; count < inner_nodes.getLength(); count++) *************** *** 169,218 **** if ( a_node.getNodeName().equals("version") ) { version_list.add(a_node.getFirstChild().getNodeValue()); } if ( a_node.getNodeName().equals("lang") ) { lang_list.add(a_node.getFirstChild().getNodeValue()); } ! if ( a_node.getNodeName().equals("unspec") ) { unspec_service_menu = a_node; } ! if ( a_node.getNodeName().endsWith(":svc") ) ! { ! epp_Service service = new epp_Service(); ! String name = a_node.getNodeName(); ! int index_of_colon = name.indexOf(':'); ! service.m_name = name.substring(0, index_of_colon); ! service.m_xmlns = ((Element)a_node).getAttribute("xmlns:"+service.m_name); ! service.m_schema_location = ((Element)a_node).getAttribute("xsi:schemaLocation"); ! service_list.add(service); ! } } ! greeting_.m_versions = convertListToStringArray(version_list); ! greeting_.m_langs = convertListToStringArray(lang_list); ! greeting_.m_services = (epp_Service[]) convertListToArray((new epp_Service()).getClass(), ! service_list); } ! if (unspec_service_menu != null) { ! NodeList inner_nodes = unspec_service_menu.getChildNodes(); ! List unspec_service_list = (List)new ArrayList(); ! for (int count = 0; count < inner_nodes.getLength(); count++) { Node a_node = inner_nodes.item(count); ! if ( a_node.getNodeName().endsWith(":svc") ) ! { ! epp_Service service = new epp_Service(); ! String name = a_node.getNodeName(); ! int index_of_colon = name.indexOf(':'); ! service.m_name = name.substring(0, index_of_colon); ! service.m_xmlns = ((Element)a_node).getAttribute("xmlns:"+service.m_name); ! service.m_schema_location = ((Element)a_node).getAttribute("xsi:schemaLocation"); ! unspec_service_list.add(service); ! } ! } ! if (unspec_service_list.size() > 0 ) ! { ! greeting_.m_unspec_services = (epp_Service[]) convertListToArray((new epp_Service()).getClass(), unspec_service_list); } ! } ! } catch (SAXException xcp) --- 173,265 ---- if ( a_node.getNodeName().equals("version") ) { version_list.add(a_node.getFirstChild().getNodeValue()); } if ( a_node.getNodeName().equals("lang") ) { lang_list.add(a_node.getFirstChild().getNodeValue()); } ! if ( a_node.getNodeName().equals("svcExtension") ) { service_extension = a_node; } ! if ( a_node.getNodeName().equals("objURI") ) { service_list.add(a_node.getFirstChild().getNodeValue()); } } ! svc_menu.m_versions = convertListToStringArray(version_list); ! svc_menu.m_langs = convertListToStringArray(lang_list); ! svc_menu.m_services = convertListToStringArray(service_list); ! ! if (service_extension != null) { ! NodeList ext_nodes = service_extension.getChildNodes(); ! ! for (int count = 0; count < ext_nodes.getLength(); count++) ! { ! Node a_node = ext_nodes.item(count); ! if ( a_node.getNodeName().equals("extURI") ) { extension_list.add(a_node.getFirstChild().getNodeValue()); } ! } ! } ! ! if (extension_list.size() > 0) ! { ! svc_menu.m_extensions = convertListToStringArray(extension_list); ! } ! ! greeting_.m_svc_menu = svc_menu; } ! if (dcp != null) { ! epp_DataCollectionPolicy dc_policy = new epp_DataCollectionPolicy(); ! NodeList inner_nodes = dcp.getChildNodes(); ! ! List statement_list = (List)new ArrayList(); ! for (int count = 0; count < inner_nodes.getLength(); count++) { Node a_node = inner_nodes.item(count); ! if ( a_node.getNodeName().equals("access") ) ! { ! dc_policy.m_access = dcpAccessTypeFromString(a_node.getFirstChild().getNodeName()); ! } ! if ( a_node.getNodeName().equals("statement") ) ! { ! NodeList s_inner_nodes = a_node.getChildNodes(); ! NodeList purpose_nodes = null; ! NodeList recipients_nodes = null; ! NodeList retentions_nodes = null; ! List purpose_list = (List)new ArrayList(); ! List recipients_list = (List)new ArrayList(); ! List retentions_list = (List)new ArrayList(); ! epp_dcpStatement dcp_statement = new epp_dcpStatement(); ! for (int i = 0; i < s_inner_nodes.getLength(); i++) ! { ! Node s_node = s_inner_nodes.item(i); ! if (s_node.getNodeName().equals("purpose")) { purpose_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("recipients")) { recipients_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("retentions")) { retentions_nodes = s_node.getChildNodes(); } ! } ! if ( purpose_nodes != null ) ! { ! 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); ! } ! if ( recipients_nodes != null ) ! { ! 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); ! } ! if ( retentions_nodes != null ) ! { ! 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); ! } ! statement_list.add(dcp_statement); ! } } ! dc_policy.m_statements = (epp_dcpStatement[])convertListToArray((new epp_dcpStatement()).getClass(), statement_list); ! greeting_.m_dcp = dc_policy; ! } } catch (SAXException xcp) Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** EPPXMLBase.java 16 Nov 2001 22:41:56 -0000 1.17 --- EPPXMLBase.java 12 Mar 2002 22:19:15 -0000 1.18 *************** *** 102,105 **** --- 102,189 ---- /** + * Array to allow for conversion from epp_dcpAccessType to + * a String representation of the type. + * The epp_dcpAccessType static classes have a value() member + * function which returns their integer position in the enum. + * @see The EPP IDL epp.idl for the definition of the epp_dcpAccessType enum + */ + protected static String[] dcp_access_type_to_string_array_ = { + "all", + "noaccess", + "null", + "social", + "technical", + }; + /** + * 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_; + + /** + * Array to allow for conversion from epp_dcpPurposeType to + * a String representation of the type. + * The epp_dcpPurposeType static classes have a value() member + * function which returns their integer position in the enum. + * @see The EPP IDL epp.idl for the definition of the epp_dcpPurposeType enum + */ + protected static String[] dcp_purpose_type_to_string_array_ = { + "contact", + "dnReg", + "ipReg", + "other", + "tmReg" + }; + /** + * 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_; + + /** + * Array to allow for conversion from epp_dcpRecipientType to + * a String representation of the type. + * The epp_dcpRecipientType static classes have a value() member + * function which returns their integer position in the enum. + * @see The EPP IDL epp.idl for the definition of the epp_dcpRecipientType enum + */ + protected static String[] dcp_recipient_type_to_string_array_ = { + "other", + "ours", + "public", + "same", + "unrelated" + }; + /** + * 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_; + + /** + * Array to allow for conversion from epp_dcpRetentionType to + * a String representation of the type. + * The epp_dcpRetentionType static classes have a value() member + * function which returns their integer position in the enum. + * @see The EPP IDL epp.idl for the definition of the epp_dcpRetentionType enum + */ + protected static String[] dcp_retention_type_to_string_array_ = { + "business", + "functional", + "indefinite", + "legal", + "none" + }; + /** + * 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_; + + /** * Holder of the response XML String */ *************** *** 130,133 **** --- 214,221 ---- initTransferStatusToTypeHash(); initAuthInfoStringToTypeHash(); + initDcpAccessStringToTypeHash(); + initDcpPurposeStringToTypeHash(); + initDcpRecipientStringToTypeHash(); + initDcpRetentionStringToTypeHash(); } *************** *** 137,146 **** { transfer_status_to_type_hash_ = new Hashtable(); ! transfer_status_to_type_hash_.put("clientApproved", epp_TransferStatusType.CLIENT_APPROVED); ! transfer_status_to_type_hash_.put("clientCancelled", epp_TransferStatusType.CLIENT_CANCELLED); ! transfer_status_to_type_hash_.put("clientRejected", epp_TransferStatusType.CLIENT_REJECTED); transfer_status_to_type_hash_.put("pending", epp_TransferStatusType.PENDING); ! transfer_status_to_type_hash_.put("serverApproved", epp_TransferStatusType.SERVER_APPROVED); ! transfer_status_to_type_hash_.put("serverCancelled", epp_TransferStatusType.SERVER_CANCELLED); } } --- 225,234 ---- { transfer_status_to_type_hash_ = new Hashtable(); ! transfer_status_to_type_hash_.put("clientapproved", epp_TransferStatusType.CLIENT_APPROVED); ! transfer_status_to_type_hash_.put("clientcancelled", epp_TransferStatusType.CLIENT_CANCELLED); ! transfer_status_to_type_hash_.put("clientrejected", epp_TransferStatusType.CLIENT_REJECTED); transfer_status_to_type_hash_.put("pending", epp_TransferStatusType.PENDING); ! transfer_status_to_type_hash_.put("serverapproved", epp_TransferStatusType.SERVER_APPROVED); ! transfer_status_to_type_hash_.put("servercancelled", epp_TransferStatusType.SERVER_CANCELLED); } } *************** *** 155,158 **** --- 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. *************** *** 409,415 **** Element root = doc.createElement("epp"); ! root.setAttribute("xmlns", "urn:iana:xml:ns:epp-1.0"); root.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); ! root.setAttribute("xsi:schemaLocation", "urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); --- 553,559 ---- Element root = doc.createElement("epp"); ! root.setAttribute("xmlns", "urn:ietf:params:xml:ns:epp-1.0"); root.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); ! root.setAttribute("xsi:schemaLocation", "urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); *************** *** 730,736 **** } ! public static epp_TransferStatusType transferStatusFromString(String s) { ! return (epp_TransferStatusType) transfer_status_to_type_hash_.get(s); } } --- 874,921 ---- } ! public static epp_TransferStatusType transferStatusFromString(String s) { ! return (epp_TransferStatusType) transfer_status_to_type_hash_.get(s.toLowerCase()); ! } ! ! public static String dcpAccessTypeToString(epp_dcpAccessType access_type) ! { ! return dcp_access_type_to_string_array_[access_type.value()]; ! } ! ! public static 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) ! { ! return dcp_purpose_type_to_string_array_[purpose_type.value()]; ! } ! ! 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) + { + return dcp_recipient_type_to_string_array_[recipient_type.value()]; + } + + 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()); + } + } |
From: Larry Y. <ly...@us...> - 2002-03-12 22:17:44
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv17566 Added Files: epp_ServiceMenu.java Log Message: This new class contains version, lang, service and extension service elements --- NEW FILE: epp_ServiceMenu.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class that contains elements used to describe the services supported by the * EPP registry server.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_ServiceMenu.java,v 1.1 2002/03/12 22:17:40 lyin Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 22:17:40 $<br> * @see org.openrtk.idl.epp.epp_Greeting * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_ServiceMenu implements org.omg.CORBA.portable.IDLEntity { /** * The array of protocol versions supported by the server. * @see #setVersions(String[]) * @see #getVersions() */ public String m_versions[] = null; /** * The array of languages supported by the server. * @see #setLangs(String[]) * @see #getLangs() */ public String m_langs[] = null; /** * The array of services offered by the server. * @see #setServices(String[]) * @see #getServices() */ public String m_services[] = null; /** * The array of object extensions supported by the server. * @see #setExtensions(String[]) * @see #getExtensions() */ public String m_extensions[] = null; /** * Empty constructor */ public epp_ServiceMenu () { } // ctor /** * The constructor with initializing variables. * @param _m_versions The array of protocol versions supported by the server * @param _m_langs The array of languages supported by the server * @param _m_services The array of services offered by the server * @param _m_extensions The array of object extensions supported by the server */ public epp_ServiceMenu (String[] _m_versions, String[] _m_langs, String[] _m_services, String[] _m_extensions) { m_versions = _m_versions; m_langs = _m_langs; m_services = _m_services; m_extensions = _m_extensions; } // ctor /** * Accessor method for the array of protocol versions supported by the server * @param value The array of protocol versions * @see #m_versions */ public void setVersions(String[] value) { m_versions = value; } /** * Accessor method for the array of protocol versions supported by the server * @return The array of protocol versions * @see #m_versions */ public String[] getVersions() { return m_versions; } /** * Accessor method for the array of languages supported by the server * @param value The array of languages supported by the server * @see #m_langs */ public void setLangs(String[] value) { m_langs = value; } /** * Accessor method for the array of languages supported by the server * @return The array of languages supported by the server * @see #m_langs */ public String[] getLangs() { return m_langs; } /** * Accessor method for the array of services offered by the server * @param value The array of services * @see #m_services */ public void setServices(String[] value) { m_services = value; } /** * Accessor method for the array of services offered by the server * @return The array of services * @see #m_services */ public String[] getServices() { return m_services; } /** * Accessor method for the array of object extensions supported by the server * @param value The array of service extensions * @see #m_extensions */ public void setExtensions(String[] value) { m_extensions = value; } /** * Accessor method for the array of object extensions supported by the server * @return The array of service extensions * @see #m_extensions */ public String[] getExtensions() { return m_extensions; } /** * 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_versions ["+(m_versions != null ? java.util.Arrays.asList(m_versions) : null)+"] m_langs ["+(m_langs != null ? java.util.Arrays.asList(m_langs) : null)+"] m_services ["+(m_services != null ? java.util.Arrays.asList(m_services) : null)+"] m_extensions ["+(m_extensions != null ? java.util.Arrays.asList(m_extensions) : null)+"] }"; } } // class epp_ServiceMenu |
From: Larry Y. <ly...@us...> - 2002-03-12 22:16:23
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv16806 Modified Files: epp_Greeting.java Log Message: moved the lang, version to epp_ServiceMenu, added a new element dcp Index: epp_Greeting.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Greeting.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Greeting.java 4 Dec 2001 22:32:49 -0000 1.7 --- epp_Greeting.java 12 Mar 2002 22:16:19 -0000 1.8 *************** *** 28,33 **** * The greeting returned by the server is in response to a successful connection * or the hello request initiated by the client.</p> ! * It lists the languages and protocol versions supported by the server and the ! * services offered by the server.</p> * $Header$<br> * $Revision$<br> --- 28,33 ---- * The greeting returned by the server is in response to a successful connection * or the hello request initiated by the client.</p> ! * It lists the languages and protocol versions supported by the server, the ! * services and data collection policy offered by the server.</p> * $Header$<br> * $Revision$<br> *************** *** 52,78 **** public String m_server_date = null; /** ! * The array of protocol versions supported by the server. ! * @see #setVersions(String[]) ! * @see #getVersions() ! */ ! public String m_versions[] = null; ! /** ! * The array of languages supported by the server. ! * @see #setLangs(String[]) ! * @see #getLangs() ! */ ! public String m_langs[] = null; ! /** ! * The array of services offered by the server. ! * @see #setServices(org.openrtk.idl.epp.epp_Service[]) ! * @see #getServices() */ ! public org.openrtk.idl.epp.epp_Service m_services[] = null; /** ! * The array of custom object extensions supported by the server. ! * @see #setUnspecServices(org.openrtk.idl.epp.epp_Service[]) ! * @see #getUnspecServices() */ ! public org.openrtk.idl.epp.epp_Service m_unspec_services[] = null; /** --- 52,66 ---- public String m_server_date = null; /** ! * The services offered by the server. ! * @see #setSvcMenu(org.openrtk.idl.epp.epp_ServiceMenu) ! * @see #getSvcMenu() */ ! public org.openrtk.idl.epp.epp_ServiceMenu m_svc_menu = null; /** ! * The data collection policy of the server. ! * @see #setDcp(org.openrtk.idl.epp.epp_DataCollectionPolicy) ! * @see #getDcp() */ ! public org.openrtk.idl.epp.epp_DataCollectionPolicy m_dcp = null;; /** *************** *** 87,103 **** * @param _m_server_id The name of the server * @param _m_server_date The server's current date and time in UTC ! * @param _m_versions The array of protocol versions supported by the server ! * @param _m_langs The array of languages supported by the server ! * @param _m_services The array of services offered by the server ! * @param _m_unspec_services The array of custom object extensions supported by the server */ ! public epp_Greeting (String _m_server_id, String _m_server_date, String[] _m_versions, String[] _m_langs, org.openrtk.idl.epp.epp_Service[] _m_services, org.openrtk.idl.epp.epp_Service[] _m_unspec_services) { m_server_id = _m_server_id; m_server_date = _m_server_date; ! m_versions = _m_versions; ! m_langs = _m_langs; ! m_services = _m_services; ! m_unspec_services = _m_unspec_services; } // ctor --- 75,87 ---- * @param _m_server_id The name of the server * @param _m_server_date The server's current date and time in UTC ! * @param _m_svc_menu The services offered by the server ! * @param _m_dcp The data collection policy of the server */ ! public epp_Greeting (String _m_server_id, String _m_server_date, org.openrtk.idl.epp.epp_ServiceMenu _m_svc_menu, org.openrtk.idl.epp.epp_DataCollectionPolicy _m_dcp) { m_server_id = _m_server_id; m_server_date = _m_server_date; ! m_svc_menu = _m_svc_menu; ! m_dcp = _m_dcp; } // ctor *************** *** 129,182 **** /** ! * Accessor method for the array of protocol versions supported by the server ! * @param value The array of protocol versions ! * @see #m_versions ! */ ! public void setVersions(String[] value) { m_versions = value; } ! /** ! * Accessor method for the array of protocol versions supported by the server ! * @return The array of protocol versions ! * @see #m_versions ! */ ! public String[] getVersions() { return m_versions; } ! ! /** ! * Accessor method for the array of languages supported by the server ! * @param value The array of languages supported by the server ! * @see #m_langs ! */ ! public void setLangs(String[] value) { m_langs = value; } ! /** ! * Accessor method for the array of languages supported by the server ! * @return The array of languages supported by the server ! * @see #m_langs ! */ ! public String[] getLangs() { return m_langs; } ! ! /** ! * Accessor method for the array of services offered by the server ! * @param value The array of services ! * @see #m_services */ ! public void setServices(org.openrtk.idl.epp.epp_Service[] value) { m_services = value; } /** ! * Accessor method for the array of services offered by the server ! * @return The array of services ! * @see #m_services */ ! public org.openrtk.idl.epp.epp_Service[] getServices() { return m_services; } /** ! * Accessor method for the array of custom object extensions supported by the server ! * @param value The array of service extensions ! * @see #m_unspec_services */ ! public void setUnspecServices(org.openrtk.idl.epp.epp_Service[] value) { m_unspec_services = value; } /** ! * Accessor method for the array of custom object extensions supported by the server ! * @return The array of service extensions ! * @see #m_unspec_services */ ! public org.openrtk.idl.epp.epp_Service[] getUnspecServices() { return m_unspec_services; } /** --- 113,140 ---- /** ! * Accessor method for the services offered by the server ! * @param value The service element ! * @see #m_svc_menu */ ! public void setSvcMenu(org.openrtk.idl.epp.epp_ServiceMenu value) { m_svc_menu = value; } /** ! * Accessor method for the services offered by the server ! * @return The service element ! * @see #m_svc_menu */ ! public org.openrtk.idl.epp.epp_ServiceMenu getSvcMenu() { return m_svc_menu; } /** ! * Accessor method for the data collection policy of the server ! * @param value The data collection policy of the server ! * @see #m_dcp */ ! public void setDcp(org.openrtk.idl.epp.epp_DataCollectionPolicy value) { m_dcp = value; } /** ! * Accessor method for the data collection policy of the server ! * @return The data collection policy of the server ! * @see #m_dcp */ ! public org.openrtk.idl.epp.epp_DataCollectionPolicy getDcp() { return m_dcp; } /** *************** *** 185,189 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_server_id ["+m_server_id+"] m_server_date ["+m_server_date+"] m_versions ["+(m_versions != null ? java.util.Arrays.asList(m_versions) : null)+"] m_langs ["+(m_langs != null ? java.util.Arrays.asList(m_langs) : null)+"] m_services ["+(m_services != null ? java.util.Arrays.asList(m_services) : null)+"] m_unspec_services ["+(m_unspec_services != null ? java.util.Arrays.asList(m_unspec_services) : null)+"] }"; } ! } // class epp_Greeting --- 143,146 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_server_id ["+m_server_id+"] m_server_date ["+m_server_date+"] m_svc_menu ["+m_svc_menu+"] m_dcp ["+m_dcp+"] }"; } } // class epp_Greeting |
From: Larry Y. <ly...@us...> - 2002-03-12 22:00:32
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv11517 Added Files: epp_dcpAccessType.java epp_dcpPurposeType.java epp_dcpRecipientType.java epp_dcpRetentionType.java epp_dcpStatement.java epp_DataCollectionPolicy.java Log Message: First release for dcp related classes --- NEW FILE: epp_dcpAccessType.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class defining constant instances of data collection policy access types which describes * access provided by the server to data received from the client.</p> * Five access types are defined: ALL, NO_ACCESS, NULL_ACCESS, SOCIAL, TECHNICAL.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpAccessType.java,v 1.1 2002/03/12 22:00:26 lyin Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 22:00:26 $<br> * @see org.openrtk.idl.epp.epp_DataCollectionPolicy * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_dcpAccessType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpAccessType[] __array = new org.openrtk.idl.epp.epp_dcpAccessType [__size]; /** * Integer value representing the ALL access type. * @see #ALL */ public static final int _ALL = 0; /** * Instance of epp_dcpAccessType representing the ALL access type. */ public static final org.openrtk.idl.epp.epp_dcpAccessType ALL = new org.openrtk.idl.epp.epp_dcpAccessType(_ALL); /** * Integer value representing the NO_ACCESS access type. * @see #NO_ACCESS */ public static final int _NO_ACCESS = 1; /** * Instance of epp_dcpAccessType representing the NO_ACCESS access type. */ public static final org.openrtk.idl.epp.epp_dcpAccessType NO_ACCESS = new org.openrtk.idl.epp.epp_dcpAccessType(_NO_ACCESS); /** * Integer value representing the NULL_ACCESS access type. * @see #NULL_ACCESS */ public static final int _NULL_ACCESS = 2; /** * Instance of epp_dcpAccessType representing the NULL_ACCESS access type. */ public static final org.openrtk.idl.epp.epp_dcpAccessType NULL_ACCESS = new org.openrtk.idl.epp.epp_dcpAccessType(_NULL_ACCESS); /** * Integer value representing the SOCIAL access type. * @see #SOCIAL */ public static final int _SOCIAL = 3; /** * Instance of epp_dcpAccessType representing the SOCIAL access type. */ public static final org.openrtk.idl.epp.epp_dcpAccessType SOCIAL = new org.openrtk.idl.epp.epp_dcpAccessType(_SOCIAL); /** * Integer value representing the TECHNICAL access type. * @see #TECHNICAL */ public static final int _TECHNICAL = 4; /** * Instance of epp_dcpAccessType representing the TECHNICAL access type. */ public static final org.openrtk.idl.epp.epp_dcpAccessType TECHNICAL = new org.openrtk.idl.epp.epp_dcpAccessType(_TECHNICAL); /** * Accessor method for the internal integer representing the access type. * @return The integer value of this access type */ public int value () { return __value; } /** * Transform an integer into a epp_dcpAccessType constant. * Given the integer representation of the access type, returns * one of the access type constants. * @param value The integer value for the desired access type */ public static org.openrtk.idl.epp.epp_dcpAccessType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } /** * For internal use only. * Initializes the internal access type array. * @param value The integer value for the desired access type */ protected epp_dcpAccessType (int value) { __value = value; __array[__value] = this; } } // class epp_dcpAccessType --- NEW FILE: epp_dcpPurposeType.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class defining constant instances of data collection purpose types which describes * EPP server's policy of data collection and management.</p> * Five purpose types are defined: CONTACT, DN_REG, IP_REG, OTHER_PURPOSE, TM_REG.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpPurposeType.java,v 1.1 2002/03/12 22:00:26 lyin Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 22:00:26 $<br> * @see org.openrtk.idl.epp.epp_dcpStatement * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_dcpPurposeType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpPurposeType[] __array = new org.openrtk.idl.epp.epp_dcpPurposeType [__size]; /** * Integer value representing the CONTACT purpose type. * @see #CONTACT */ public static final int _CONTACT = 0; /** * Instance of epp_dcpPurposeType representing the CONTACT purpose type. */ public static final org.openrtk.idl.epp.epp_dcpPurposeType CONTACT = new org.openrtk.idl.epp.epp_dcpPurposeType(_CONTACT); /** * Integer value representing the DN_REG purpose type. * @see #DN_REG */ public static final int _DN_REG = 1; /** * Instance of epp_dcpPurposeType representing the DN_REG purpose type. */ public static final org.openrtk.idl.epp.epp_dcpPurposeType DN_REG = new org.openrtk.idl.epp.epp_dcpPurposeType(_DN_REG); /** * Integer value representing the IP_REG purpose type. * @see #IP_REG */ public static final int _IP_REG = 2; /** * Instance of epp_dcpPurposeType representing the IP_REG purpose type. */ public static final org.openrtk.idl.epp.epp_dcpPurposeType IP_REG = new org.openrtk.idl.epp.epp_dcpPurposeType(_IP_REG); /** * Integer value representing the OTHER_PURPOSE purpose type. * @see #OTHER_PURPOSE */ public static final int _OTHER_PURPOSE = 3; /** * Instance of epp_dcpPurposeType representing the OTHER_PURPOSE purpose type. */ public static final org.openrtk.idl.epp.epp_dcpPurposeType OTHER_PURPOSE = new org.openrtk.idl.epp.epp_dcpPurposeType(_OTHER_PURPOSE); /** * Integer value representing the TM_REG purpose type. * @see #TM_REG */ public static final int _TM_REG = 4; /** * Instance of epp_dcpPurposeType representing the TM_REG purpose type. */ public static final org.openrtk.idl.epp.epp_dcpPurposeType TM_REG = new org.openrtk.idl.epp.epp_dcpPurposeType(_TM_REG); /** * Accessor method for the internal integer representing the data collection purpose type. * @return The integer value of this purpose type */ public int value () { return __value; } /** * Transform an integer into a epp_dcpPurposeType constant. * Given the integer representation of the purpose type, returns * one of the purpose type constants. * @param value The integer value for the desired purpose type */ public static org.openrtk.idl.epp.epp_dcpPurposeType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } /** * For internal use only. * Initializes the internal purpose type array. * @param value The integer value for the desired purpose type */ protected epp_dcpPurposeType (int value) { __value = value; __array[__value] = this; } } // class epp_dcpPurposeType --- NEW FILE: epp_dcpRecipientType.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class defining constant instances of data recipient types which describes * EPP server's policy of data collection and management.</p> * Five recipient types are defined: OTHER_RECIPIENT, OURS, PUBLIK, SAME, UNRELATED.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpRecipientType.java,v 1.1 2002/03/12 22:00:26 lyin Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 22:00:26 $<br> * @see org.openrtk.idl.epp.epp_dcpStatement * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_dcpRecipientType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpRecipientType[] __array = new org.openrtk.idl.epp.epp_dcpRecipientType [__size]; /** * Integer value representing the OTHER_RECIPIENT recipient type. * @see #OTHER_RECIPIENT */ public static final int _OTHER_RECIPIENT = 0; /** * Instance of epp_dcpRecipientType representing the OTHER_RECIPIENT recipient type. */ public static final org.openrtk.idl.epp.epp_dcpRecipientType OTHER_RECIPIENT = new org.openrtk.idl.epp.epp_dcpRecipientType(_OTHER_RECIPIENT); /** * Integer value representing the OURS recipient type. * @see #OURS */ public static final int _OURS = 1; /** * Instance of epp_dcpRecipientType representing the OURS recipient type. */ public static final org.openrtk.idl.epp.epp_dcpRecipientType OURS = new org.openrtk.idl.epp.epp_dcpRecipientType(_OURS); /** * Integer value representing the PUBLIK recipient type. * @see #PUBLIK */ public static final int _PUBLIK = 2; /** * Instance of epp_dcpRecipientType representing the PUBLIK recipient type. */ public static final org.openrtk.idl.epp.epp_dcpRecipientType PUBLIK = new org.openrtk.idl.epp.epp_dcpRecipientType(_PUBLIK); /** * Integer value representing the SAME recipient type. * @see #SAME */ public static final int _SAME = 3; /** * Instance of epp_dcpRecipientType representing the SAME recipient type. */ public static final org.openrtk.idl.epp.epp_dcpRecipientType SAME = new org.openrtk.idl.epp.epp_dcpRecipientType(_SAME); /** * Integer value representing the UNRELATED recipient type. * @see #UNRELATED */ public static final int _UNRELATED = 4; /** * Instance of epp_dcpRecipientType representing the UNRELATED recipient type. */ public static final org.openrtk.idl.epp.epp_dcpRecipientType UNRELATED = new org.openrtk.idl.epp.epp_dcpRecipientType(_UNRELATED); /** * Accessor method for the internal integer representing the data recipient type. * @return The integer value of this recipient type */ public int value () { return __value; } /** * Transform an integer into a epp_dcpRecipientType constant. * Given the integer representation of the recipient type, returns * one of the recipient type constants. * @param value The integer value for the desired recipient type */ public static org.openrtk.idl.epp.epp_dcpRecipientType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } /** * For internal use only. * Initializes the internal recipient type array. * @param value The integer value for the desired recipient type */ protected epp_dcpRecipientType (int value) { __value = value; __array[__value] = this; } } // class epp_dcpRecipientType --- NEW FILE: epp_dcpRetentionType.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class defining constant instances of data retention types which describes * EPP server's policy of data collection and management.</p> * Five retention types are defined: BUSINESS, FUNCTIONAL, INDEFINITE, LEGAL, NONE.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpRetentionType.java,v 1.1 2002/03/12 22:00:26 lyin Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 22:00:26 $<br> * @see org.openrtk.idl.epp.epp_dcpStatement * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_dcpRetentionType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 5; private static org.openrtk.idl.epp.epp_dcpRetentionType[] __array = new org.openrtk.idl.epp.epp_dcpRetentionType [__size]; /** * Integer value representing the BUSINESS retention type. * @see #BUSINESS */ public static final int _BUSINESS = 0; /** * Instance of epp_dcpRetentionType representing the BUSINESS retention type. */ public static final org.openrtk.idl.epp.epp_dcpRetentionType BUSINESS = new org.openrtk.idl.epp.epp_dcpRetentionType(_BUSINESS); /** * Integer value representing the FUNCTIONAL retention type. * @see #FUNCTIONAL */ public static final int _FUNCTIONAL = 1; /** * Instance of epp_dcpRetentionType representing the FUNCTIONAL retention type. */ public static final org.openrtk.idl.epp.epp_dcpRetentionType FUNCTIONAL = new org.openrtk.idl.epp.epp_dcpRetentionType(_FUNCTIONAL); /** * Integer value representing the INDEFINITE retention type. * @see #INDEFINITE */ public static final int _INDEFINITE = 2; /** * Instance of epp_dcpRetentionType representing the INDEFINITE retention type. */ public static final org.openrtk.idl.epp.epp_dcpRetentionType INDEFINITE = new org.openrtk.idl.epp.epp_dcpRetentionType(_INDEFINITE); /** * Integer value representing the LEGAL retention type. * @see #LEGAL */ public static final int _LEGAL = 3; /** * Instance of epp_dcpRetentionType representing the LEGAL retention type. */ public static final org.openrtk.idl.epp.epp_dcpRetentionType LEGAL = new org.openrtk.idl.epp.epp_dcpRetentionType(_LEGAL); /** * Integer value representing the NONE retention type. * @see #NONE */ public static final int _NONE = 4; /** * Instance of epp_dcpRetentionType representing the NONE retention type. */ public static final org.openrtk.idl.epp.epp_dcpRetentionType NONE = new org.openrtk.idl.epp.epp_dcpRetentionType(_NONE); /** * Accessor method for the internal integer representing the data retention type. * @return The integer value of this retention type */ public int value () { return __value; } /** * Transform an integer into a epp_dcpRetentionType constant. * Given the integer representation of the retention type, returns * one of the retention type constants. * @param value The integer value for the desired retention type */ public static org.openrtk.idl.epp.epp_dcpRetentionType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } /** * For internal use only. * Initializes the internal retention type array. * @param value The integer value for the desired retention type */ protected epp_dcpRetentionType (int value) { __value = value; __array[__value] = this; } } // class epp_dcpRetentionType --- NEW FILE: epp_dcpStatement.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class that contains elements used to describe EPP Server's policy for data * collection and management.</p> * Data collection purposes, data recipients, and data retention are described here.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_dcpStatement.java,v 1.1 2002/03/12 22:00:26 lyin Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 22:00:26 $<br> * @see org.openrtk.idl.epp.epp_DataCollectionPolicy * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_dcpStatement implements org.omg.CORBA.portable.IDLEntity { /** * The array of data collection purpose types. * @see #setPurposes(epp_dcpPurposeType[]) * @see #getPurposes() */ public org.openrtk.idl.epp.epp_dcpPurposeType m_purposes[] = null; /** * The array of data recipient types. * @see #setRecipients(epp_dcpRecipientType[]) * @see #getRecipients() */ public org.openrtk.idl.epp.epp_dcpRecipientType m_recipients[] = null; /** * The array of data retention types. * @see #setRetentions(epp_dcpRetentionType[]) * @see #getRetentions() */ public org.openrtk.idl.epp.epp_dcpRetentionType m_retentions[] = null; /** * Empty constructor */ public epp_dcpStatement () { } // ctor /** * The constructor with initializing variables. * @param _m_purposes The array of data collection purpose types * @param _m_recipients The array of data recipient types * @param _m_retentions The array of data retention types */ public epp_dcpStatement (org.openrtk.idl.epp.epp_dcpPurposeType[] _m_purposes, org.openrtk.idl.epp.epp_dcpRecipientType[] _m_recipients, org.openrtk.idl.epp.epp_dcpRetentionType[] _m_retentions) { m_purposes = _m_purposes; m_recipients = _m_recipients; m_retentions = _m_retentions; } // ctor /** * Accessor method for the array of data collection purpose types * @param value The array of data collection purpose types * @see #m_purposes */ public void setPurposes(org.openrtk.idl.epp.epp_dcpPurposeType[] value) { m_purposes = value; } /** * Accessor method for the array of data collection purpose types * @return The array of data collection purpose types * @see #m_purposes */ public org.openrtk.idl.epp.epp_dcpPurposeType[] getPurposes() { return m_purposes; } /** * Accessor method for the array of data recipient types * @param value The array of data recipient types * @see #m_recipients */ public void setRecipients(org.openrtk.idl.epp.epp_dcpRecipientType[] value) { m_recipients = value; } /** * Accessor method for the array of data recipient types * @return The array of data recipient types * @see #m_recipients */ public org.openrtk.idl.epp.epp_dcpRecipientType[] getRecipients() { return m_recipients; } /** * Accessor method for the array of data retention types * @param value The array of data retention types * @see #m_retentions */ public void setRetentions(org.openrtk.idl.epp.epp_dcpRetentionType[] value) { m_retentions = value; } /** * Accessor method for the array of data retention types * @return value The array of data retention types * @see #m_retentions */ public org.openrtk.idl.epp.epp_dcpRetentionType[] getRetentions() { return m_retentions; } /** * 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_purposes ["+(m_purposes != null ? java.util.Arrays.asList(m_purposes) : null)+"] m_recipients ["+(m_recipients != null ? java.util.Arrays.asList(m_recipients) : null)+"] m_retentions ["+(m_retentions != null ? java.util.Arrays.asList(m_retentions) : null)+"] }"; } } // class epp_dcpStatement --- NEW FILE: epp_DataCollectionPolicy.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Class that contains elements used to describe EPP Server's policy for data * collection and management.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_DataCollectionPolicy.java,v 1.1 2002/03/12 22:00:26 lyin Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 22:00:26 $<br> * @see org.openrtk.idl.epp.epp_Greeting * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_DataCollectionPolicy implements org.omg.CORBA.portable.IDLEntity { /** * The access type. * @see #setAccess(epp_dcpAccessType) * @see #getAccess() */ public org.openrtk.idl.epp.epp_dcpAccessType m_access = null; /** * The array of statement elements. * @see #setStatements(epp_dcpStatement[]) * @see #getStatements() */ public org.openrtk.idl.epp.epp_dcpStatement m_statements[] = null; /** * Empty constructor */ public epp_DataCollectionPolicy () { } // ctor /** * The constructor with initializing variables. * @param _m_access The access type * @param _m_statements The array of statement elements */ public epp_DataCollectionPolicy (org.openrtk.idl.epp.epp_dcpAccessType _m_access, org.openrtk.idl.epp.epp_dcpStatement[] _m_statements) { m_access = _m_access; m_statements = _m_statements; } // ctor /** * Accessor method for the access type * @param value The access type * @see #m_access */ public void setAccess(org.openrtk.idl.epp.epp_dcpAccessType value) { m_access = value; } /** * Accessor method for the access type * @return value The access type * @see #m_access */ public org.openrtk.idl.epp.epp_dcpAccessType getAccess() { return m_access; } /** * Accessor method for the array of statement elements * @param value The array of statement elements * @see #m_statements */ public void setStatements(org.openrtk.idl.epp.epp_dcpStatement[] value) { m_statements = value; } /** * Accessor method for the array of statement elements * @return value The array of statement elements * @see #m_statements */ public org.openrtk.idl.epp.epp_dcpStatement[] getStatements() { return m_statements; } /** * 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_access ["+m_access+"] m_statements ["+(m_statements != null ? java.util.Arrays.asList(m_statements) : null)+"] }"; } } // class epp_DataCollectionPolicy |
From: Daniel M. <tub...@us...> - 2002-03-12 21:47:37
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv7789 Modified Files: epp_Unspec.java Added Files: epp_Extension.java epp_ExtensionOperations.java Removed Files: epp_UnspecOperations.java Log Message: added epp_Extension to IDL interfaces, which is the replacement for epp_Unspec. epp_Unspec is now a deprecated interface and is sub-interface to epp_Extension for backward compatibility --- NEW FILE: epp_Extension.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_Extension.java,v 1.1 2002/03/12 21:47:33 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 21:47:33 $<br> */ public interface epp_Extension extends epp_ExtensionOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { } // interface epp_Extension --- NEW FILE: epp_ExtensionOperations.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_Extension may be implemented for the server-defined * command extensions. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_ExtensionOperations.java,v 1.1 2002/03/12 21:47:33 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/12 21:47:33 $<br> * @see org.openrtk.idl.epp.epp_Extension */ public interface epp_ExtensionOperations { /** * Converts the data into XML to be put into the unspec section of the request * @return the XML String. * @throws epp_XMLException if required data is missing. */ String toXML () throws org.openrtk.idl.epp.epp_XMLException; /** * Parses an XML String of data from the unspec section of a response from the Registry. * @param The XML String to parse. * @throws epp_XMLException if the response XML is not parsable or does not contain the expected data. */ void fromXML (String xml) throws org.openrtk.idl.epp.epp_XMLException; } // interface epp_ExtensionOperations Index: epp_Unspec.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_Unspec.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Unspec.java 4 Dec 2001 22:32:50 -0000 1.6 --- epp_Unspec.java 12 Mar 2002 21:47:33 -0000 1.7 *************** *** 28,36 **** * The Unspc(unspecified) element may be used for server-defined command extensions.</p> * The interface brings together epp_UnspecOperations and standard IDL classes. * $Header$<br> * $Revision$<br> * $Date$<br> */ ! public interface epp_Unspec extends epp_UnspecOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { } // interface epp_Unspec --- 28,37 ---- * The Unspc(unspecified) element may be used for server-defined command extensions.</p> * The interface brings together epp_UnspecOperations and standard IDL classes. + * @deprecated Please use epp_Extension instead. * $Header$<br> * $Revision$<br> * $Date$<br> */ ! public interface epp_Unspec extends epp_Extension { } // interface epp_Unspec --- epp_UnspecOperations.java DELETED --- |
From: Daniel M. <tub...@us...> - 2002-03-12 19:00:46
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll In directory usw-pr-cvs1:/tmp/cvs-serv8997/poll Modified Files: contacttrnData.java domaintrnData.java Log Message: added GPL license and CVS info headers Index: contacttrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/contacttrnData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** contacttrnData.java 12 Mar 2002 18:58:28 -0000 1.2 --- contacttrnData.java 12 Mar 2002 19:00:41 -0000 1.3 *************** *** 1,2 **** --- 1,24 ---- + /* + ** + ** EPP RTK Java + ** Copyright (C) 2002, Tucows, Inc. + ** + ** + ** This library is free software; you can redistribute it and/or + ** modify it under the terms of the GNU Lesser General Public + ** License as published by the Free Software Foundation; either + ** version 2.1 of the License, or (at your option) any later version. + ** + ** This library is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + ** Lesser General Public License for more details. + ** + ** You should have received a copy of the GNU Lesser General Public + ** License along with this library; if not, write to the Free Software + ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + ** + */ + package com.tucows.oxrs.epp.rtk.xml.poll; *************** *** 11,15 **** * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_contact_transfer member set. */ public class contacttrnData extends EPPXMLBase implements PollResData --- 33,40 ---- * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_contact_transfer member set.</p> ! * $Header$<br> ! * $Revision$<br> ! * $Date$<br> */ public class contacttrnData extends EPPXMLBase implements PollResData Index: domaintrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/domaintrnData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** domaintrnData.java 12 Mar 2002 18:58:28 -0000 1.2 --- domaintrnData.java 12 Mar 2002 19:00:41 -0000 1.3 *************** *** 1,2 **** --- 1,24 ---- + /* + ** + ** EPP RTK Java + ** Copyright (C) 2002, Tucows, Inc. + ** + ** + ** This library is free software; you can redistribute it and/or + ** modify it under the terms of the GNU Lesser General Public + ** License as published by the Free Software Foundation; either + ** version 2.1 of the License, or (at your option) any later version. + ** + ** This library is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + ** Lesser General Public License for more details. + ** + ** You should have received a copy of the GNU Lesser General Public + ** License along with this library; if not, write to the Free Software + ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + ** + */ + package com.tucows.oxrs.epp.rtk.xml.poll; *************** *** 12,16 **** * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_domain_transfer member set. */ public class domaintrnData extends EPPXMLBase implements PollResData --- 34,41 ---- * response data. * Populates the epp_PollResData with the epp_PollResDataUnion ! * and m_domain_transfer member set.</p> ! * $Header$<br> ! * $Revision$<br> ! * $Date$<br> */ public class domaintrnData extends EPPXMLBase implements PollResData |
From: Daniel M. <tub...@us...> - 2002-03-12 18:58:33
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll In directory usw-pr-cvs1:/tmp/cvs-serv7774/poll Modified Files: contacttrnData.java domaintrnData.java Log Message: updated poll classes to use new IDL poll structure and classes Index: contacttrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/contacttrnData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** contacttrnData.java 24 Jul 2001 18:12:07 -0000 1.1 --- contacttrnData.java 12 Mar 2002 18:58:28 -0000 1.2 *************** *** 2,6 **** --- 2,8 ---- import com.tucows.oxrs.epp.rtk.xml.EPPXMLBase; + import com.tucows.oxrs.epp.rtk.xml.EPPContactBase; import org.openrtk.idl.epp.*; + import org.openrtk.idl.epp.contact.epp_ContactTrnData; import org.w3c.dom.*; *************** *** 14,18 **** { ! private epp_PollResData poll_res_data_; /** --- 16,20 ---- { ! private epp_ContactTrnData poll_res_data_; /** *************** *** 26,35 **** NodeList contact_transfer_data_list = res_data_sub_node.getChildNodes(); ! epp_PollResData poll_res_data_ = new epp_PollResData(); ! ! epp_PollResDataUnion poll_res_data_union = new epp_PollResDataUnion(); ! ! epp_PollContactTransfer contact_transfer = new epp_PollContactTransfer(); ! debug(DEBUG_LEVEL_TWO,method_name,"contact:trnData's node count ["+contact_transfer_data_list.getLength()+"]"); --- 28,33 ---- NodeList contact_transfer_data_list = res_data_sub_node.getChildNodes(); ! poll_res_data_ = new epp_ContactTrnData(); ! debug(DEBUG_LEVEL_TWO,method_name,"contact:trnData's node count ["+contact_transfer_data_list.getLength()+"]"); *************** *** 39,62 **** } ! for (int count = 0; count < contact_transfer_data_list.getLength(); count++) ! { ! Node a_node = contact_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("contact:name") ) { contact_transfer.m_contact_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("contact:authInfo") ) ! { ! contact_transfer.m_auth_info = new epp_AuthInfo(); ! contact_transfer.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); ! contact_transfer.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); ! contact_transfer.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); ! } - } - - poll_res_data_union.m_contact_transfer(contact_transfer); - - poll_res_data_.m_type = epp_PollResDataType.CONTACT_TRANSFER; - poll_res_data_.m_data = poll_res_data_union; } --- 37,42 ---- } ! poll_res_data_ = EPPContactBase.getTrnData(contact_transfer_data_list); } Index: domaintrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/poll/domaintrnData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** domaintrnData.java 24 Jul 2001 18:12:07 -0000 1.1 --- domaintrnData.java 12 Mar 2002 18:58:28 -0000 1.2 *************** *** 2,6 **** --- 2,8 ---- import com.tucows.oxrs.epp.rtk.xml.EPPXMLBase; + import com.tucows.oxrs.epp.rtk.xml.EPPDomainBase; import org.openrtk.idl.epp.*; + import org.openrtk.idl.epp.domain.epp_DomainTrnData; import org.w3c.dom.*; *************** *** 15,19 **** { ! private epp_PollResData poll_res_data_; --- 17,21 ---- { ! private epp_DomainTrnData poll_res_data_; *************** *** 28,36 **** NodeList domain_transfer_data_list = res_data_node.getChildNodes(); ! epp_PollResData poll_res_data_ = new epp_PollResData(); ! ! epp_PollResDataUnion poll_res_data_union = new epp_PollResDataUnion(); ! ! epp_PollDomainTransfer domain_transfer = new epp_PollDomainTransfer(); debug(DEBUG_LEVEL_TWO,method_name,"domain:transfer's node count ["+domain_transfer_data_list.getLength()+"]"); --- 30,34 ---- NodeList domain_transfer_data_list = res_data_node.getChildNodes(); ! poll_res_data_ = new epp_DomainTrnData(); debug(DEBUG_LEVEL_TWO,method_name,"domain:transfer's node count ["+domain_transfer_data_list.getLength()+"]"); *************** *** 41,64 **** } ! for (int count = 0; count < domain_transfer_data_list.getLength(); count++) ! { ! Node a_node = domain_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("domain:name") ) { domain_transfer.m_domain_name = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("domain:authInfo") ) ! { ! domain_transfer.m_auth_info = new epp_AuthInfo(); ! domain_transfer.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); ! domain_transfer.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); ! domain_transfer.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); ! } - } - - poll_res_data_union.m_domain_transfer(domain_transfer); - - poll_res_data_.m_type = epp_PollResDataType.DOMAIN_TRANSFER; - poll_res_data_.m_data = poll_res_data_union; } --- 39,44 ---- } ! poll_res_data_ = EPPDomainBase.getTrnData(domain_transfer_data_list); } |
From: Daniel M. <tub...@us...> - 2002-03-12 18:58:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv7430 Modified Files: EPPContactBase.java EPPContactTransfer.java EPPDomainBase.java EPPDomainTransfer.java Log Message: moved domain and contact trnData parsing to the respective base classes so that the poll response parsers can also call it (don't want to duplicate code) Index: EPPContactBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactBase.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** EPPContactBase.java 28 Sep 2001 16:23:38 -0000 1.8 --- EPPContactBase.java 12 Mar 2002 18:57:57 -0000 1.9 *************** *** 35,38 **** --- 35,41 ---- import org.openrtk.idl.epp.epp_XMLException; import org.openrtk.idl.epp.contact.*; + import org.openrtk.idl.epp.epp_Exception; + import org.openrtk.idl.epp.epp_XMLException; + import org.openrtk.idl.epp.epp_TransferStatusType; import org.w3c.dom.*; *************** *** 186,189 **** --- 189,228 ---- initContactStatusHash(); return (epp_ContactStatusType) contact_status_hash_.get(s); + } + + public static epp_ContactTrnData getTrnData(NodeList transfer_data_list) + throws epp_XMLException + { + epp_ContactTrnData trn_data = new epp_ContactTrnData(); + + for (int count = 0; count < transfer_data_list.getLength(); count++) + { + Node a_node = transfer_data_list.item(count); + + if ( a_node.getNodeName().equals("contact:id") ) { trn_data.m_id = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("contact:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("contact:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("contact:trStatus") ) + { + String status_value = a_node.getFirstChild().getNodeValue(); + if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) + { + throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); + } + else + { + trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); + } + + } + + if ( a_node.getNodeName().equals("contact:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("contact:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } + + } + + return trn_data; } Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPContactTransfer.java 12 Mar 2002 05:34:25 -0000 1.7 --- EPPContactTransfer.java 12 Mar 2002 18:57:58 -0000 1.8 *************** *** 236,270 **** } ! epp_ContactTrnData trn_data = new epp_ContactTrnData(); ! ! for (int count = 0; count < contact_transfer_data_list.getLength(); count++) ! { ! Node a_node = contact_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("contact:id") ) { trn_data.m_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("contact:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("contact:trStatus") ) ! { ! String status_value = a_node.getFirstChild().getNodeValue(); ! if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) ! { ! throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); ! } ! else ! { ! trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); ! } ! ! } ! ! if ( a_node.getNodeName().equals("contact:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } ! ! } ! ! action_response_.m_trn_data = trn_data; } --- 236,240 ---- } ! action_response_.m_trn_data = getTrnData(contact_transfer_data_list); } Index: EPPDomainBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainBase.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EPPDomainBase.java 28 Sep 2001 16:23:38 -0000 1.7 --- EPPDomainBase.java 12 Mar 2002 18:57:58 -0000 1.8 *************** *** 34,39 **** --- 34,44 ---- import com.tucows.oxrs.epp.rtk.*; import org.openrtk.idl.epp.domain.*; + import org.openrtk.idl.epp.epp_Exception; + import org.openrtk.idl.epp.epp_XMLException; + import org.openrtk.idl.epp.epp_TransferStatusType; import org.w3c.dom.Element; + import org.w3c.dom.NodeList; + import org.w3c.dom.Node; /** *************** *** 99,102 **** --- 104,122 ---- /** + * Array to allow for conversion from epp_DomainHostsType to + * a String representation of the hosts type. + * The epp_DomainHostsType static classes have a value() member + * function which returns their integer position in the enum. + * @see org.openrtk.idl.epp.domain.epp_DomainHostsType + * @see The EPP IDL epp_domain.idl for the definition of the epp_DomainHostsType enum + */ + public static String[] hosts_type_to_string_array_ = { + "all", + "del", + "none", + "sub" + }; + + /** * Default constructor. * Initializes the static Hashtables. *************** *** 188,190 **** --- 208,246 ---- } + public static epp_DomainTrnData getTrnData(NodeList transfer_data_list) + throws epp_XMLException + { + epp_DomainTrnData trn_data = new epp_DomainTrnData(); + + for (int count = 0; count < transfer_data_list.getLength(); count++) + { + Node a_node = transfer_data_list.item(count); + + if ( a_node.getNodeName().equals("domain:name") ) { trn_data.m_name = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("domain:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("domain:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } + + if ( a_node.getNodeName().equals("domain:trStatus") ) + { + String status_value = a_node.getFirstChild().getNodeValue(); + if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) + { + throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); + } + else + { + trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); + } + + } + + if ( a_node.getNodeName().equals("domain:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("domain:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("domain:exDate") ) { trn_data.m_expiration_date = a_node.getFirstChild().getNodeValue(); } + + } + + return trn_data; + } } Index: EPPDomainTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainTransfer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPDomainTransfer.java 12 Mar 2002 05:34:25 -0000 1.6 --- EPPDomainTransfer.java 12 Mar 2002 18:57:58 -0000 1.7 *************** *** 242,277 **** } ! epp_DomainTrnData trn_data = new epp_DomainTrnData(); ! ! for (int count = 0; count < domain_transfer_data_list.getLength(); count++) ! { ! Node a_node = domain_transfer_data_list.item(count); ! ! if ( a_node.getNodeName().equals("domain:name") ) { trn_data.m_name = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("domain:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } ! ! if ( a_node.getNodeName().equals("domain:trStatus") ) ! { ! String status_value = a_node.getFirstChild().getNodeValue(); ! if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) ! { ! throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); ! } ! else ! { ! trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); ! } ! ! } ! ! if ( a_node.getNodeName().equals("domain:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:exDate") ) { trn_data.m_expiration_date = a_node.getFirstChild().getNodeValue(); } ! ! } ! ! action_response_.m_trn_data = trn_data; } --- 242,246 ---- } ! action_response_.m_trn_data = getTrnData(domain_transfer_data_list); } |
From: Daniel M. <tub...@us...> - 2002-03-12 18:56:56
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv7061 Modified Files: EPPDomainInfo.java Log Message: adding "hosts" attribute to domain:info element -- default value is "all" Index: EPPDomainInfo.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainInfo.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EPPDomainInfo.java 24 Jul 2001 17:54:23 -0000 1.4 --- EPPDomainInfo.java 12 Mar 2002 18:56:53 -0000 1.5 *************** *** 114,117 **** --- 114,127 ---- } + if ( action_request_.m_hosts_type == null ) + { + debug(DEBUG_LEVEL_TWO,method_name,"hosts type is null, so assuming ALL"); + action_request_.m_hosts_type = epp_DomainHostsType.ALL; + } + else if ( action_request_.m_hosts_type.value() >= hosts_type_to_string_array_.length ) + { + throw new epp_XMLException("invalid hosts type value"); + } + Document doc = new DocumentImpl(); Element root = createDocRoot(doc); *************** *** 129,132 **** --- 139,144 ---- Element domain_info = doc.createElement("domain:info"); setCommonAttributes(domain_info); + + domain_info.setAttribute("hosts", hosts_type_to_string_array_[action_request_.m_hosts_type.value()]); addXMLElement(doc, domain_info, "domain:name", action_request_.m_name); |
From: Daniel M. <tub...@us...> - 2002-03-12 18:56:23
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv6863 Modified Files: EPPContactCreate.java EPPDomainCreate.java EPPHostCreate.java Log Message: Updated create response parsing to parse for crDate XML element Index: EPPContactCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactCreate.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPContactCreate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPContactCreate.java 12 Mar 2002 18:56:19 -0000 1.6 *************** *** 253,256 **** --- 253,257 ---- if ( a_node.getNodeName().equals("contact:id") ) { action_response_.m_id = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("contact:crDate") ) { action_response_.m_creation_date = a_node.getFirstChild().getNodeValue(); } } Index: EPPDomainCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainCreate.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPDomainCreate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPDomainCreate.java 12 Mar 2002 18:56:19 -0000 1.6 *************** *** 255,258 **** --- 255,259 ---- if ( a_node.getNodeName().equals("domain:name") ) { action_response_.m_name = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("domain:crDate") ) { action_response_.m_creation_date = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("domain:exDate") ) { action_response_.m_expiration_date = a_node.getFirstChild().getNodeValue(); } Index: EPPHostCreate.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPHostCreate.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPHostCreate.java 28 Sep 2001 16:23:38 -0000 1.5 --- EPPHostCreate.java 12 Mar 2002 18:56:19 -0000 1.6 *************** *** 234,237 **** --- 234,238 ---- if ( a_node.getNodeName().equals("host:name") ) { action_response_.m_name = a_node.getFirstChild().getNodeValue(); } + if ( a_node.getNodeName().equals("host:crDate") ) { action_response_.m_creation_date = a_node.getFirstChild().getNodeValue(); } } } |
From: Daniel M. <tub...@us...> - 2002-03-12 05:34:27
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example In directory usw-pr-cvs1:/tmp/cvs-serv16138/example Modified Files: DomainExample.java SessionExample.java Log Message: updated EPPDomainTransfer and EPPContactTransfer to use the new epp_DomainTrnData and epp_ContactTrnData classes, respectively. updated DomainExample, SessionExample to be aware of these updates Index: DomainExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/DomainExample.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** DomainExample.java 18 Dec 2001 02:56:12 -0000 1.9 --- DomainExample.java 12 Mar 2002 05:34:24 -0000 1.10 *************** *** 802,806 **** System.out.println("DomainTransfer results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); ! System.out.println("DomainTransfer Results: transfer status ["+domain_transfer_response.m_transfer_status+"]"); } catch ( epp_XMLException xcp ) --- 802,806 ---- System.out.println("DomainTransfer results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); ! System.out.println("DomainTransfer Results: transfer status ["+domain_transfer_response.getTrnData().getTransferStatus()+"]"); } catch ( epp_XMLException xcp ) Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/example/SessionExample.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** SessionExample.java 18 Dec 2001 02:56:12 -0000 1.16 --- SessionExample.java 12 Mar 2002 05:34:24 -0000 1.17 *************** *** 559,563 **** epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTransferStatus() )+"]"); // If an exception was thrown to this command, then probably --- 559,563 ---- epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTrnData().getTransferStatus() )+"]"); // If an exception was thrown to this command, then probably *************** *** 905,911 **** epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTransferStatus() )+"]"); ! if ( domain_transfer_response.getTransferStatus() == epp_TransferStatusType.PENDING ) { // hmmm... there's a transfer pending on this domain, --- 905,911 ---- epp_DomainTransferRsp domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTrnData().getTransferStatus() )+"]"); ! if ( domain_transfer_response.getTrnData().getTransferStatus() == epp_TransferStatusType.PENDING ) { // hmmm... there's a transfer pending on this domain, *************** *** 959,963 **** domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTransferStatus() )+"]"); if ( transfer_request.getOp() == epp_TransferOpType.APPROVE ) --- 959,963 ---- domain_transfer_response = domain_transfer.getResponseData(); ! System.out.println("DomainTransfer Results: transfer status ["+EPPXMLBase.transferStatusToString( domain_transfer_response.getTrnData().getTransferStatus() )+"]"); if ( transfer_request.getOp() == epp_TransferOpType.APPROVE ) |
From: Daniel M. <tub...@us...> - 2002-03-12 05:34:27
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv16138/xml Modified Files: EPPContactTransfer.java EPPDomainTransfer.java Log Message: updated EPPDomainTransfer and EPPContactTransfer to use the new epp_DomainTrnData and epp_ContactTrnData classes, respectively. updated DomainExample, SessionExample to be aware of these updates Index: EPPContactTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPContactTransfer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EPPContactTransfer.java 28 Sep 2001 16:23:38 -0000 1.6 --- EPPContactTransfer.java 12 Mar 2002 05:34:25 -0000 1.7 *************** *** 236,247 **** } for (int count = 0; count < contact_transfer_data_list.getLength(); count++) { Node a_node = contact_transfer_data_list.item(count); ! if ( a_node.getNodeName().equals("contact:id") ) { action_response_.m_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:reID") ) { action_response_.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acID") ) { action_response_.m_action_client_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:trStatus") ) --- 236,249 ---- } + epp_ContactTrnData trn_data = new epp_ContactTrnData(); + for (int count = 0; count < contact_transfer_data_list.getLength(); count++) { Node a_node = contact_transfer_data_list.item(count); ! if ( a_node.getNodeName().equals("contact:id") ) { trn_data.m_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:trStatus") ) *************** *** 254,266 **** else { ! action_response_.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); } } ! if ( a_node.getNodeName().equals("contact:reDate") ) { action_response_.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acDate") ) { action_response_.m_action_date = a_node.getFirstChild().getNodeValue(); } } } --- 256,270 ---- else { ! trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); } } ! if ( a_node.getNodeName().equals("contact:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("contact:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } } + + action_response_.m_trn_data = trn_data; } Index: EPPDomainTransfer.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPDomainTransfer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EPPDomainTransfer.java 24 Jul 2001 17:54:23 -0000 1.5 --- EPPDomainTransfer.java 12 Mar 2002 05:34:25 -0000 1.6 *************** *** 242,253 **** } for (int count = 0; count < domain_transfer_data_list.getLength(); count++) { Node a_node = domain_transfer_data_list.item(count); ! if ( a_node.getNodeName().equals("domain:name") ) { action_response_.m_name = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:reID") ) { action_response_.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acID") ) { action_response_.m_action_client_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("domain:trStatus") ) --- 242,255 ---- } + epp_DomainTrnData trn_data = new epp_DomainTrnData(); + for (int count = 0; count < domain_transfer_data_list.getLength(); count++) { Node a_node = domain_transfer_data_list.item(count); ! if ( a_node.getNodeName().equals("domain:name") ) { trn_data.m_name = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:reID") ) { trn_data.m_request_client_id = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acID") ) { trn_data.m_action_client_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("domain:trStatus") ) *************** *** 260,273 **** else { ! action_response_.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); } } ! if ( a_node.getNodeName().equals("domain:reDate") ) { action_response_.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acDate") ) { action_response_.m_action_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:exDate") ) { action_response_.m_expiration_date = a_node.getFirstChild().getNodeValue(); } } } --- 262,277 ---- else { ! trn_data.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); } } ! if ( a_node.getNodeName().equals("domain:reDate") ) { trn_data.m_request_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:acDate") ) { trn_data.m_action_date = a_node.getFirstChild().getNodeValue(); } ! if ( a_node.getNodeName().equals("domain:exDate") ) { trn_data.m_expiration_date = a_node.getFirstChild().getNodeValue(); } } + + action_response_.m_trn_data = trn_data; } |
From: Daniel M. <tub...@us...> - 2002-03-11 22:44:49
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain In directory usw-pr-cvs1:/tmp/cvs-serv23664/domain Modified Files: epp_DomainHostsType.java epp_DomainTransferRsp.java epp_DomainTrnData.java Log Message: updates and corrections to javadoc text Index: epp_DomainHostsType.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainHostsType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_DomainHostsType.java 11 Mar 2002 22:13:28 -0000 1.1 --- epp_DomainHostsType.java 11 Mar 2002 22:44:45 -0000 1.2 *************** *** 30,34 **** * The ALL type returns all hosts types. The DEL type returns only * delegating hosts for the domain. The NONE returns no hosts. The SUB ! * returns only subordinant hosts in the Info response. * $Header$<br> * $Revision$<br> --- 30,34 ---- * The ALL type returns all hosts types. The DEL type returns only * delegating hosts for the domain. The NONE returns no hosts. The SUB ! * returns only subordinant hosts in the Info response.</p> * $Header$<br> * $Revision$<br> 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.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainTransferRsp.java 11 Mar 2002 22:13:28 -0000 1.8 --- epp_DomainTransferRsp.java 11 Mar 2002 22:44:45 -0000 1.9 *************** *** 84,88 **** * The constructor with initializing variables. * @param _m_rsp The common and generic response element ! * @param _m_trn_data The name of the domain object in the registry */ public epp_DomainTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, org.openrtk.idl.epp.domain.epp_DomainTrnData _m_trn_data) --- 84,88 ---- * The constructor with initializing variables. * @param _m_rsp The common and generic response element ! * @param _m_trn_data The transfer data for the domain object in the registry */ public epp_DomainTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, org.openrtk.idl.epp.domain.epp_DomainTrnData _m_trn_data) Index: epp_DomainTrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainTrnData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_DomainTrnData.java 11 Mar 2002 22:13:28 -0000 1.1 --- epp_DomainTrnData.java 11 Mar 2002 22:44:46 -0000 1.2 *************** *** 25,34 **** /** ! * Class defining constant instances of hosts types for domains.</p> ! * Used in conjunction with the epp_DomainInfoReq class to indicate the ! * type of the domain hosts to return: ALL, DEL, NONE, or SUB.</p> ! * The ALL type returns all hosts types. The DEL type returns only ! * delegating hosts for the domain. The NONE returns no hosts. The SUB ! * returns only subordinant hosts in the Info response. * $Header$<br> * $Revision$<br> --- 25,29 ---- /** ! * FIXME!</p> * $Header$<br> * $Revision$<br> *************** *** 40,45 **** { ! // the call to getType() defined in epp_PollResData public static final String m_type = "domain:trnData"; public String getType() { return m_type; } --- 35,50 ---- { ! /** ! * Constant variable defined by IDLs.</p> ! * Used when this classes is used to hold the poll response ! * data pertaining to contact transfer notifications. The value ! * of this constant links this class to a set of poll response ! * data. ! */ public static final String m_type = "domain:trnData"; + /** + * Access method for the m_type constant. + * @see #m_type + */ public String getType() { return m_type; } |
From: Daniel M. <tub...@us...> - 2002-03-11 22:44:49
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact In directory usw-pr-cvs1:/tmp/cvs-serv23664/contact Modified Files: epp_ContactTrnData.java Log Message: updates and corrections to javadoc text Index: epp_ContactTrnData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactTrnData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_ContactTrnData.java 11 Mar 2002 22:38:46 -0000 1.1 --- epp_ContactTrnData.java 11 Mar 2002 22:44:45 -0000 1.2 *************** *** 25,34 **** /** ! * Class defining constant instances of hosts types for contacts.</p> ! * Used in conjunction with the epp_ContactInfoReq class to indicate the ! * type of the contact hosts to return: ALL, DEL, NONE, or SUB.</p> ! * The ALL type returns all hosts types. The DEL type returns only ! * delegating hosts for the contact. The NONE returns no hosts. The SUB ! * returns only subordinant hosts in the Info response. * $Header$<br> * $Revision$<br> --- 25,29 ---- /** ! * FIXME!</p> * $Header$<br> * $Revision$<br> *************** *** 40,45 **** { ! // the call to getType() defined in epp_PollResData public static final String m_type = "contact:trnData"; public String getType() { return m_type; } --- 35,50 ---- { ! /** ! * Constant variable defined by IDLs.</p> ! * Used when this classes is used to hold the poll response ! * data pertaining to contact transfer notifications. The value ! * of this constant links this class to a set of poll response ! * data. ! */ public static final String m_type = "contact:trnData"; + /** + * Access method for the m_type constant. + * @see #m_type + */ public String getType() { return m_type; } |
From: Daniel M. <tub...@us...> - 2002-03-11 22:38:49
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact In directory usw-pr-cvs1:/tmp/cvs-serv21755 Modified Files: epp_ContactCreateRsp.java epp_ContactTransferRsp.java Added Files: epp_ContactTrnData.java Log Message: bringing contact IDL classes up to EPP 05/03 standard --- NEW FILE: epp_ContactTrnData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp.contact; /** * Class defining constant instances of hosts types for contacts.</p> * Used in conjunction with the epp_ContactInfoReq class to indicate the * type of the contact hosts to return: ALL, DEL, NONE, or SUB.</p> * The ALL type returns all hosts types. The DEL type returns only * delegating hosts for the contact. The NONE returns no hosts. The SUB * returns only subordinant hosts in the Info response. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactTrnData.java,v 1.1 2002/03/11 22:38:46 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/11 22:38:46 $<br> * @see org.openrtk.idl.epp.contact.epp_ContactInfoReq */ public class epp_ContactTrnData extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.portable.IDLEntity, org.openrtk.idl.epp.epp_PollResData { // the call to getType() defined in epp_PollResData public static final String m_type = "contact:trnData"; public String getType() { return m_type; } /** * The id of the contact object in the registry. * @see #setId(String) * @see #getId() */ public String m_id = null; /** * The transfer status associated with the contact object. * @see #setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType) * @see #getTransferStatus() */ public org.openrtk.idl.epp.epp_TransferStatusType m_transfer_status = null; /** * The identifier of the client that requested the contact object transfer. * @see #setRequestClientId(String) * @see #getRequestClientId() */ public String m_request_client_id = null; /** * The identifier of the client that should act upon the contact transfer request. * @see #setActionClientId(String) * @see #getActionClientId() */ public String m_action_client_id = null; /** * The date that the contact transfer was requested. * @see #setRequestDate(String) * @see #getRequestDate() */ public String m_request_date = null; /** * The required or completed action date to the contact transfer request. * @see #setActionDate(String) * @see #getActionDate() */ public String m_action_date = null; /** * Empty constructor */ public epp_ContactTrnData () { } // ctor /** * The constructor with initializing variables. * @param _m_id The id of the contact object in the registry * @param _m_transfer_status The transfer status associated with the contact object * @param _m_request_client_id The identifier of the client that requested the contact object transfer * @param _m_action_client_id The identifier of the client that should act upon the contact transfer request * @param _m_request_date The date that the contact transfer was requested * @param _m_action_date The required or completed action date to the contact transfer request */ public epp_ContactTrnData (String _m_id, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_action_client_id, String _m_request_date, String _m_action_date) { m_id = _m_id; m_transfer_status = _m_transfer_status; m_request_client_id = _m_request_client_id; m_action_client_id = _m_action_client_id; m_request_date = _m_request_date; m_action_date = _m_action_date; } // ctor /** * Accessor method for the id of the contact object in the registry * @param value The contact id * @see #m_id */ public void setId(String value) { m_id = value; } /** * Accessor method for the id of the contact object in the registry * @return The contact id * @see #m_id */ public String getId() { return m_id; } /** * Accessor method for the transfer status associated with the contact object * @param value The contact transfer status * @see #m_transfer_status */ public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { m_transfer_status = value; } /** * Accessor method for the transfer status associated with the contact object * @return The contact transfer status * @see #m_transfer_status */ public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } /** * Accessor method for the identifier of the client that requested the contact object transfer * @param value The contact request client id * @see #m_request_client_id */ public void setRequestClientId(String value) { m_request_client_id = value; } /** * Accessor method for the identifier of the client that requested the contact object transfer * @return The contact request client id * @see #m_request_client_id */ public String getRequestClientId() { return m_request_client_id; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @param value The contact action client id * @see #m_action_client_id */ public void setActionClientId(String value) { m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The contact action client id * @see #m_action_client_id */ public String getActionClientId() { return m_action_client_id; } /** * Accessor method for the date that the contact transfer was requested * @param value The contact transfer request date * @see #m_request_date */ public void setRequestDate(String value) { m_request_date = value; } /** * Accessor method for the date that the contact transfer was requested * @return The contact transfer request date * @see #m_request_date */ public String getRequestDate() { return m_request_date; } /** * Accessor method for the required or completed action date to the contact transfer request * @param value The action date to the contact transfer request * @see #m_action_date */ public void setActionDate(String value) { m_action_date = value; } /** * Accessor method for the required or completed action date to the contact transfer request * @return The action date to the contact transfer request * @see #m_action_date */ public String getActionDate() { return m_action_date; } /** * Method required by ObjectImpl and the CORBA Object interface. * Always returns null. It's only here to satisfy the CORBA requirements * of the IDL usage. */ public String[] _ids() { return null; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_id ["+m_id+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_action_client_id ["+m_action_client_id+"] m_request_date ["+m_request_date+"] m_action_date ["+m_action_date+"] }"; } } // interface epp_ContactTrnData Index: epp_ContactCreateRsp.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactCreateRsp.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactCreateRsp.java 4 Dec 2001 22:31:46 -0000 1.9 --- epp_ContactCreateRsp.java 11 Mar 2002 22:38:45 -0000 1.10 *************** *** 48,51 **** --- 48,57 ---- */ public String m_id = null; + /** + * The creation date of the contact object. + * @see #setCreationDate(String) + * @see #getCreationDate() + */ + public String m_creation_date = null; /** *************** *** 60,68 **** * @param _m_rsp The common and generic response element * @param _m_id The identifier for the contact object in the registry */ ! public epp_ContactCreateRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_id) { m_rsp = _m_rsp; m_id = _m_id; } // ctor --- 66,76 ---- * @param _m_rsp The common and generic response element * @param _m_id The identifier for the contact object in the registry + * @param _m_creation_date The creation date of the contact object */ ! public epp_ContactCreateRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_id, String _m_creation_date) { m_rsp = _m_rsp; m_id = _m_id; + m_creation_date = _m_creation_date; } // ctor *************** *** 105,113 **** /** * 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+"] m_id ["+m_id+"] }"; } } // class epp_ContactCreateRsp --- 113,134 ---- /** + * Accessor method for the creation date of the contact object + * @param value The contact creation date + * @see #m_creation_date + */ + public void setCreationDate(String value) { m_creation_date = value; } + /** + * Accessor method for the creation date of the contact object + * @return The contact creation date + * @see #m_creation_date + */ + public String getCreationDate() { return m_creation_date; } + + /** * 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+"] m_id ["+m_id+"] m_creation_date ["+m_creation_date+"] }"; } } // class epp_ContactCreateRsp Index: epp_ContactTransferRsp.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/contact/epp_ContactTransferRsp.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactTransferRsp.java 4 Dec 2001 22:31:46 -0000 1.9 --- epp_ContactTransferRsp.java 11 Mar 2002 22:38:46 -0000 1.10 *************** *** 43,81 **** public org.openrtk.idl.epp.epp_Response m_rsp = null; /** ! * The identifier for the contact object in the registry. ! * @see #setId(String) ! * @see #getId() ! */ ! public String m_id = null; ! /** ! * The transfer status associated with the contact object. ! * @see #setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType) ! * @see #getTransferStatus() ! */ ! public org.openrtk.idl.epp.epp_TransferStatusType m_transfer_status = null; ! /** ! * The identifier of the client that requested the contact object transfer. ! * @see #setRequestClientId(String) ! * @see #getRequestClientId() ! */ ! public String m_request_client_id = null; ! /** ! * The date that the contact transfer was requested. ! * @see #setRequestDate(String) ! * @see #getRequestDate() ! */ ! public String m_request_date = null; ! /** ! * The identifier of the client that should act upon the contact transfer request. ! * @see #setActionClientId(String) ! * @see #getActionClientId() ! */ ! public String m_action_client_id = null; ! /** ! * The required or completed action date to the contact transfer request. ! * @see #setActionDate(String) ! * @see #getActionDate() */ ! public String m_action_date = null; /** --- 43,51 ---- public org.openrtk.idl.epp.epp_Response m_rsp = null; /** ! * The transfer data for the contact object in the registry. ! * @see #setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) ! * @see #getTrnData() */ ! public org.openrtk.idl.epp.contact.epp_ContactTrnData m_trn_data = null; /** *************** *** 95,108 **** * @param _m_action_client_id The identifier of the client that should act upon the contact transfer request * @param _m_action_date The required or completed action date to the contact transfer request */ public epp_ContactTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_id, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_request_date, String _m_action_client_id, String _m_action_date) { m_rsp = _m_rsp; ! m_id = _m_id; ! m_transfer_status = _m_transfer_status; ! m_request_client_id = _m_request_client_id; ! m_request_date = _m_request_date; ! m_action_client_id = _m_action_client_id; ! m_action_date = _m_action_date; } // ctor --- 65,91 ---- * @param _m_action_client_id The identifier of the client that should act upon the contact transfer request * @param _m_action_date The required or completed action date to the contact transfer request + * @deprecated Please use epp_ContactTransferRsp(epp_Response, epp_ContactTrnData) instead */ public epp_ContactTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, String _m_id, org.openrtk.idl.epp.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_request_date, String _m_action_client_id, String _m_action_date) { m_rsp = _m_rsp; ! m_trn_data = new org.openrtk.idl.epp.contact.epp_ContactTrnData(); ! m_trn_data.m_id = _m_id; ! m_trn_data.m_transfer_status = _m_transfer_status; ! m_trn_data.m_request_client_id = _m_request_client_id; ! m_trn_data.m_request_date = _m_request_date; ! m_trn_data.m_action_client_id = _m_action_client_id; ! m_trn_data.m_action_date = _m_action_date; ! } // ctor ! ! /** ! * The constructor with initializing variables. ! * @param _m_rsp The common and generic response element ! * @param _m_trn_data The transfer data for the contact object in the registry ! */ ! public epp_ContactTransferRsp (org.openrtk.idl.epp.epp_Response _m_rsp, org.openrtk.idl.epp.contact.epp_ContactTrnData _m_trn_data) ! { ! m_rsp = _m_rsp; ! m_trn_data = _m_trn_data; } // ctor *************** *** 121,124 **** --- 104,120 ---- /** + * Accessor method for the transfer data of the contact object in the registry + * @param value The contact's transfer data + * @see #m_trn_data + */ + public void setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData value) { m_trn_data = value; } + /** + * Accessor method for the transfer data of the contact object in the registry + * @return The contact's transfer data + * @see #m_trn_data + */ + public org.openrtk.idl.epp.contact.epp_ContactTrnData getTrnData() { return m_trn_data; } + + /** * @deprecated * @see #setId(String) *************** *** 135,146 **** * @param value The contact id * @see #m_id */ ! public void setId(String value) { m_id = value; } /** * Accessor method for the identifier for the contact object in the registry * @return The contact id * @see #m_id */ ! public String getId() { return m_id; } /** --- 131,144 ---- * @param value The contact id * @see #m_id + * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_id = value; } /** * Accessor method for the identifier for the contact object in the registry * @return The contact id * @see #m_id + * @deprecated Please use getTrnData() instead */ ! public String getId() { return m_trn_data == null ? null : m_trn_data.m_id; } /** *************** *** 148,159 **** * @param value The contact transfer status * @see #m_transfer_status */ ! public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { m_transfer_status = value; } /** * Accessor method for the transfer status associated with the contact object * @return The contact transfer status * @see #m_transfer_status */ ! public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } /** --- 146,159 ---- * @param value The contact transfer status * @see #m_transfer_status + * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setTransferStatus(org.openrtk.idl.epp.epp_TransferStatusType value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_transfer_status = value; } /** * Accessor method for the transfer status associated with the contact object * @return The contact transfer status * @see #m_transfer_status + * @deprecated Please use getTrnData() instead */ ! public org.openrtk.idl.epp.epp_TransferStatusType getTransferStatus() { return m_trn_data == null ? null : m_trn_data.m_transfer_status; } /** *************** *** 161,172 **** * @param value The client that requested the contact object transfer * @see #m_request_client_id */ ! public void setRequestClientId(String value) { m_request_client_id = value; } /** * Accessor method for the client that requested the contact object transfer * @return The client that requested the contact object transfer * @see #m_request_client_id */ ! public String getRequestClientId() { return m_request_client_id; } /** --- 161,174 ---- * @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 */ ! public void setRequestClientId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_request_client_id = value; } /** * Accessor method for the client that requested the contact object transfer * @return The client that requested the contact object transfer * @see #m_request_client_id + * @deprecated Please use getTrnData() instead */ ! public String getRequestClientId() { return m_trn_data == null ? null : m_trn_data.m_request_client_id; } /** *************** *** 174,185 **** * @param value The date that the contact transfer was requested * @see #m_request_date */ ! public void setRequestDate(String value) { m_request_date = value; } /** * Accessor method for the date that the contact transfer was requested * @return The date that the contact transfer was requested * @see #m_request_date */ ! public String getRequestDate() { return m_request_date; } /** --- 176,189 ---- * @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 */ ! public void setRequestDate(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_request_date = value; } /** * Accessor method for the date that the contact transfer was requested * @return The date that the contact transfer was requested * @see #m_request_date + * @deprecated Please use getTrnData() instead */ ! public String getRequestDate() { return m_trn_data == null ? null : m_trn_data.m_request_date; } /** *************** *** 187,198 **** * @param value The identifier of the client that should act upon the contact transfer request * @see #m_action_client_id */ ! public void setActionClientId(String value) { m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The identifier of the client that should act upon the contact transfer request * @see #m_action_client_id */ ! public String getActionClientId() { return m_action_client_id; } /** --- 191,204 ---- * @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 */ ! public void setActionClientId(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_action_client_id = value; } /** * Accessor method for the identifier of the client that should act upon the contact transfer request * @return The identifier of the client that should act upon the contact transfer request * @see #m_action_client_id + * @deprecated Please use getTrnData() instead */ ! public String getActionClientId() { return m_trn_data == null ? null : m_trn_data.m_action_client_id; } /** *************** *** 200,211 **** * @param value The contact transfer action date * @see #m_action_date */ ! public void setActionDate(String value) { m_action_date = value; } /** * Accessor method for the required or completed action date to the contact transfer request * @return The contact transfer action date * @see #m_action_date */ ! public String getActionDate() { return m_action_date; } /** --- 206,219 ---- * @param value The contact transfer action date * @see #m_action_date + * @deprecated Please use setTrnData(org.openrtk.idl.epp.contact.epp_ContactTrnData) instead */ ! public void setActionDate(String value) { if ( m_trn_data == null ) { m_trn_data = new epp_ContactTrnData(); } m_trn_data.m_action_date = value; } /** * Accessor method for the required or completed action date to the contact transfer request * @return The contact transfer action date * @see #m_action_date + * @deprecated Please use getTrnData() instead */ ! public String getActionDate() { return m_trn_data == null ? null : m_trn_data.m_action_date; } /** *************** *** 214,218 **** * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_id ["+m_id+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_request_date ["+m_request_date+"] m_action_client_id ["+m_action_client_id+"] m_action_date ["+m_action_date+"] }"; } } // class epp_ContactTransferRsp --- 222,226 ---- * @return The string representation of this object instance */ ! public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_trn_data ["+m_trn_data+"] }"; } } // class epp_ContactTransferRsp |
From: Daniel M. <tub...@us...> - 2002-03-11 22:23:49
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain In directory usw-pr-cvs1:/tmp/cvs-serv16662 Removed Files: epp_DomainTrnDataOperations.java Log Message: didn't need this class afterall because we changed epp_DomainTrnData to a class (instead of an interface from the IDLs) --- epp_DomainTrnDataOperations.java DELETED --- |
From: Daniel M. <tub...@us...> - 2002-03-11 22:14:49
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp In directory usw-pr-cvs1:/tmp/cvs-serv13491 Modified Files: epp_PollResData.java Added Files: epp_PollResDataOperations.java Removed Files: epp_PollContactTransfer.java epp_PollDomainTransfer.java epp_PollResDataType.java epp_PollResDataUnion.java Log Message: bringing polling IDL classes up to EPP 05/03 standard --- NEW FILE: epp_PollResDataOperations.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_PollResData is extended by any classes that which * to represent poll response data.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_PollResDataOperations.java,v 1.1 2002/03/11 22:14:46 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2002/03/11 22:14:46 $<br> * @see org.openrtk.idl.epp.epp_PollResData */ public interface epp_PollResDataOperations { // the subinterface. String getType (); } // interface epp_PollResDataOperations Index: epp_PollResData.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/epp_PollResData.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_PollResData.java 4 Dec 2001 22:32:50 -0000 1.6 --- epp_PollResData.java 11 Mar 2002 22:14:46 -0000 1.7 *************** *** 25,101 **** /** ! * Class that contains data pertaining to the message that was polled.</p> ! * Currently, there are only two known types of PollResData: ! * epp_PollResDataType.DOMAIN_TRANSFER and epp_PollResDataType.CONTACT_TRANSFER.</p> * $Header$<br> * $Revision$<br> * $Date$<br> ! * @see org.openrtk.idl.epp.epp_PollRsp */ ! public class epp_PollResData implements org.omg.CORBA.portable.IDLEntity { ! /** ! * The poll response data type. ! * @see #setType(org.openrtk.idl.epp.epp_PollResDataType) ! * @see #getType() ! */ ! public org.openrtk.idl.epp.epp_PollResDataType m_type = null; ! /** ! * The actual poll response data. ! * @see #setData(org.openrtk.idl.epp.epp_PollResDataUnion) ! * @see #getData() ! */ ! public org.openrtk.idl.epp.epp_PollResDataUnion m_data = null; ! ! /** ! * Empty constructor ! */ ! public epp_PollResData () ! { ! } // ctor ! ! /** ! * The constructor with initializing variables. ! * @param _m_type The poll response data type ! * @param _m_data The actual poll response data ! */ ! public epp_PollResData (org.openrtk.idl.epp.epp_PollResDataType _m_type, org.openrtk.idl.epp.epp_PollResDataUnion _m_data) ! { ! m_type = _m_type; ! m_data = _m_data; ! } // ctor ! ! /** ! * Accessor method for the poll response data type ! * @param value The poll response data type ! * @see #m_type ! */ ! public void setType(org.openrtk.idl.epp.epp_PollResDataType value) { m_type = value; } ! /** ! * Accessor method for the poll response data type ! * @return The poll response data type ! * @see #m_type ! */ ! public org.openrtk.idl.epp.epp_PollResDataType getType() { return m_type; } ! ! /** ! * Accessor method for the actual poll response data ! * @param value The actual poll response data ! * @see #m_data ! */ ! public void setData(org.openrtk.idl.epp.epp_PollResDataUnion value) { m_data = value; } ! /** ! * Accessor method for the actual poll response data ! * @return The actual poll response data ! * @see #m_data ! */ ! public org.openrtk.idl.epp.epp_PollResDataUnion 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_type ["+m_type+"] m_data ["+m_data+"] }"; } ! ! } // class epp_PollResData --- 25,40 ---- /** ! * IDL interface which is used to denote classes that can contain poll response data.</p> ! * Poll responses data can vary from registry to registry, but typically includes object ! * transfer notifications, renewal notifications, etc... essentially data pertaining ! * to object that belong to a registry but which were changed without the registrar's ! * direct action.</p> * $Header$<br> * $Revision$<br> * $Date$<br> ! * @see org.openrtk.idl.epp.domain.epp_DomainTrnData ! * @see org.openrtk.idl.epp.contact.epp_ContactTrnData */ ! public interface epp_PollResData extends epp_PollResDataOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { ! } // interface epp_PollResData --- epp_PollContactTransfer.java DELETED --- --- epp_PollDomainTransfer.java DELETED --- --- epp_PollResDataType.java DELETED --- --- epp_PollResDataUnion.java DELETED --- |