You can subscribe to this list here.
2002 |
Jan
|
Feb
(1) |
Mar
(74) |
Apr
(4) |
May
(14) |
Jun
|
Jul
(4) |
Aug
(9) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(186) |
Apr
(26) |
May
(4) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(64) |
Oct
|
Nov
|
Dec
(11) |
2004 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(25) |
2005 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(6) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel M. <tub...@us...> - 2003-03-21 16:49:36
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact In directory sc8-pr-cvs1:/tmp/cvs-serv8568/contact Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:47:22
|
Update of /cvsroot/epp-rtk/epp-rtk/java/doc/0402 In directory sc8-pr-cvs1:/tmp/cvs-serv14963/0402 Added Files: epp-rtk-user-guide.html Log Message: pulled in user guide for RTK for epp version 0402 --- NEW FILE: epp-rtk-user-guide.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1"> <TITLE>EPP RTK Java API Documentation</TITLE> </HEAD> <BODY text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#55188A" alink="#FF0000"> <H1><font size=10><center>EPP RTK for Java<BR> User Guide</center></font></H1> <h3><center>Version 0.4.0</center></h3> <h3><center>Oct 3, 2001</center></h3> <h2><center>Created by: Tucows Inc.</center></h2> [...4728 lines suppressed...] <P> 2. You may modify your copy or copies of the OpenContent or any portion of it, thus forming works based on the Content, and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: <blockquote> a) You must cause the modified content to carry prominent notices stating that you changed it, the exact nature and content of the changes, and the date of any change. <P> b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the OC or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License, unless otherwise permitted under applicable Fair Use law. </blockquote> These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the OC, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the OC, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Exceptions are made to this requirement to release modified works free of charge under this license only in compliance with Fair Use law where applicable. <P> 3. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to copy, distribute or modify the OC. These actions are prohibited by law if you do not accept this License. Therefore, by distributing or translating the OC, or by deriving works herefrom, you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or translating the OC. <P> NO WARRANTY <P> 4. BECAUSE THE OPENCONTENT (OC) IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE OC, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE OC "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK OF USE OF THE OC IS WITH YOU. SHOULD THE OC PROVE FAULTY, INACCURATE, OR OTHERWISE UNACCEPTABLE YOU ASSUME THE COST OF ALL NECESSARY REPAIR OR CORRECTION. <P> 5. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MIRROR AND/OR REDISTRIBUTE THE OC AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE OC, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. </blockquote> </BODY> </HTML> |
From: Daniel M. <tub...@us...> - 2003-03-21 16:42:42
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503 In directory sc8-pr-cvs1:/tmp/cvs-serv30732/epp0503 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503 added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:42:34
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv9344/rtk Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:40:45
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/unspec In directory sc8-pr-cvs1:/tmp/cvs-serv9704/unspec Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/unspec added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:39:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv31774/xml Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk/xml added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:39:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk/transport In directory sc8-pr-cvs1:/tmp/cvs-serv31774/transport Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk/transport added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:39:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv31774/example Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk/example added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:38:42
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv9422/example Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/example added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:38:40
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402 In directory sc8-pr-cvs1:/tmp/cvs-serv9110/epp0402 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402 added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:37:03
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/contact In directory sc8-pr-cvs1:/tmp/cvs-serv30928/contact Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/contact added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:37:02
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/host In directory sc8-pr-cvs1:/tmp/cvs-serv30928/host Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/host added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:36:50
|
Update of /cvsroot/epp-rtk/epp-rtk/java/doc/0402 In directory sc8-pr-cvs1:/tmp/cvs-serv10981/0402 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/doc/0402 added to the repository |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/org/openrtk/idl/epp0402/domain Added Files: epp_DomainCheck.java epp_DomainCheckOperations.java epp_DomainCheckReq.java epp_DomainCheckRsp.java epp_DomainContact.java epp_DomainContactType.java epp_DomainCreate.java epp_DomainCreateOperations.java epp_DomainCreateReq.java epp_DomainCreateRsp.java epp_DomainDelete.java epp_DomainDeleteOperations.java epp_DomainDeleteReq.java epp_DomainDeleteRsp.java epp_DomainInfo.java epp_DomainInfoOperations.java epp_DomainInfoReq.java epp_DomainInfoRsp.java epp_DomainPeriod.java epp_DomainPeriodUnitType.java epp_DomainRenew.java epp_DomainRenewOperations.java epp_DomainRenewReq.java epp_DomainRenewRsp.java epp_DomainStatus.java epp_DomainStatusType.java epp_DomainTransfer.java epp_DomainTransferOperations.java epp_DomainTransferReq.java epp_DomainTransferRsp.java epp_DomainTrnData.java epp_DomainUpdate.java epp_DomainUpdateAddRemove.java epp_DomainUpdateChange.java epp_DomainUpdateOperations.java epp_DomainUpdateReq.java epp_DomainUpdateRsp.java Log Message: pulled in epp0402 java classes --- NEW FILE: epp_DomainCheck.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.epp0402.domain; /** * Master external interface for the implementor of the EPP Domain Check command.</p> * The interface brings together epp_DomainCheckOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCheck.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainCheck */ public interface epp_DomainCheck extends epp_DomainCheckOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainCheck --- NEW FILE: epp_DomainCheckOperations.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.epp0402.domain; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_DomainCheck is implemented by EPPDomainCheck. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCheckOperations.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see org.openrtk.idl.epp0402.domain.epp_DomainCheck */ public interface epp_DomainCheckOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Domain Check EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Domain Check EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.domain.epp_DomainCheckReq parms); /** * Accessor for the data representing EPP response from a server for the * domain check command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_DomainCheckRsp. * @returns The Domain Check response */ org.openrtk.idl.epp0402.domain.epp_DomainCheckRsp getResponseData (); } // interface epp_DomainCheckOperations --- NEW FILE: epp_DomainCheckReq.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.epp0402.domain; /** * Class that contains the elements necessary to check to see if * a domain is available in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCheckReq.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainCheck * @see org.openrtk.idl.epp0402.domain.epp_DomainCheckRsp */ public class epp_DomainCheckReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The array of domain names to check in the registry. * @see #setNames(String[]) * @see #getNames() */ public String m_names[] = null; /** * Empty constructor */ public epp_DomainCheckReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_names The array of domain names to check */ public epp_DomainCheckReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String[] _m_names) { m_cmd = _m_cmd; m_names = _m_names; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the array of domain names to check in the registry * @param value The array of domain names * @see #m_names */ public void setNames(String[] value) { m_names = value; } /** * Accessor method for the array of domain names to check in the registry * @return The array of domain names * @see #m_names */ public String[] getNames() { return m_names; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_names ["+(m_names != null ? java.util.Arrays.asList(m_names) : null)+"] }"; } } // class epp_DomainCheckReq --- NEW FILE: epp_DomainCheckRsp.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.epp0402.domain; /** * Class that contains the elements used to represent the domain check * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPDomainCheck * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCheckRsp.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainCheck * @see org.openrtk.idl.epp0402.domain.epp_DomainCheckReq */ public class epp_DomainCheckRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The generic check response array. * @see #getResults() * @see com.tucows.oxrs.epp.rtk.xml.EPPXMLBase#getCheckResultFor(epp_CheckResult[], String) */ public org.openrtk.idl.epp0402.epp_CheckResult m_results[] = null; /** * Empty constructor */ public epp_DomainCheckRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_results The array of domain check results */ public epp_DomainCheckRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, org.openrtk.idl.epp0402.epp_CheckResult[] _m_results) { m_rsp = _m_rsp; m_results = _m_results; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the domain check results * @param value The new value for the domain check results array * @see #m_results */ public void setResults(org.openrtk.idl.epp0402.epp_CheckResult[] value) { m_results = value; } /** * Accessor method for the domain check results * @return The value for the domain check results array * @see #m_results */ public org.openrtk.idl.epp0402.epp_CheckResult[] getResults() { return m_results; } /** * 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_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] }"; } } // class epp_DomainCheckRsp --- NEW FILE: epp_DomainContact.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.epp0402.domain; /** * Class that contains the elements used to represent domain contact * with the type: ADMIN, BILLING, TECH.</p> * Note that the registrant "contact" is not an epp_DomainContact. The * registrant's contact id is associated with a domain directly as a String * in such classes as epp_DomainCreateReq and epp_DomainUpdateChange.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainContact.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see org.openrtk.idl.epp0402.domain.epp_DomainUpdateAddRemove * @see org.openrtk.idl.epp0402.domain.epp_DomainCreateReq * @see org.openrtk.idl.epp0402.domain.epp_DomainInfoRsp */ public class epp_DomainContact implements org.omg.CORBA.portable.IDLEntity { /** * The type of the domain contact. * @see #setType(org.openrtk.idl.epp0402.domain.epp_DomainContactType) * @see #getType() */ public org.openrtk.idl.epp0402.domain.epp_DomainContactType m_type = null; /** * The identifier of the domain contact. * @see #setId(String) * @see #getId() */ public String m_id = null; /** * Empty constructor */ public epp_DomainContact () { } // ctor /** * The constructor with initializing variables. * @param _m_type The type of the domain contact * @param _m_id The identifier of the domain contact */ public epp_DomainContact (org.openrtk.idl.epp0402.domain.epp_DomainContactType _m_type, String _m_id) { m_type = _m_type; m_id = _m_id; } // ctor /** * Accessor method for the type of the domain contact * @param value The domain contact type * @see #m_type */ public void setType(org.openrtk.idl.epp0402.domain.epp_DomainContactType value) { m_type = value; } /** * Accessor method for the type of the domain contact * @return The domain contact type * @see #m_type */ public org.openrtk.idl.epp0402.domain.epp_DomainContactType getType() { return m_type; } /** * Accessor method for the identifier of the domain contact * @param value The domain contact identifier * @see #m_id */ public void setId(String value) { m_id = value; } /** * Accessor method for the identifier of the domain contact * @return The domain contact identifier * @see #m_id */ public String getId() { return m_id; } /** * 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_id ["+m_id+"] }"; } } // class epp_DomainContact --- NEW FILE: epp_DomainContactType.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.epp0402.domain; /** * Class defining constant instances of contact types for domains.</p> * Used in conjunction with the epp_DomainContact class to indicate the * type of the domain contact: ADMIN, BILLING, TECH.</p> * Note that the registrant "contact" is not an epp_DomainContact. The * registrant's contact id is associated with a domain directly as a String * in such classes as epp_DomainCreateReq and epp_DomainUpdateChange.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainContactType.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see org.openrtk.idl.epp0402.domain.epp_DomainContact */ public class epp_DomainContactType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 3; private static org.openrtk.idl.epp0402.domain.epp_DomainContactType[] __array = new org.openrtk.idl.epp0402.domain.epp_DomainContactType [__size]; private static String[] __strings = { "admin", "billing", "tech" }; /** * Integer value representing the ADMIN contact type. * @see #ADMIN */ public static final int _ADMIN = 0; /** * Contact instance of epp_DomainContactType representing the ADMIN contact type. * Used directly with epp_DomainContact. * @see org.openrtk.idl.epp0402.domain.epp_DomainContact */ public static final org.openrtk.idl.epp0402.domain.epp_DomainContactType ADMIN = new org.openrtk.idl.epp0402.domain.epp_DomainContactType(_ADMIN); /** * Integer value representing the BILLING contact type. * @see #BILLING */ public static final int _BILLING = 1; /** * Contact instance of epp_DomainContactType representing the BILLING contact type. * Used directly with epp_DomainContact. * @see org.openrtk.idl.epp0402.domain.epp_DomainContact */ public static final org.openrtk.idl.epp0402.domain.epp_DomainContactType BILLING = new org.openrtk.idl.epp0402.domain.epp_DomainContactType(_BILLING); /** * Integer value representing the TECH contact type. * @see #TECH */ public static final int _TECH = 2; /** * Contact instance of epp_DomainContactType representing the TECH contact type. * Used directly with epp_DomainContact. * @see org.openrtk.idl.epp0402.domain.epp_DomainContact */ public static final org.openrtk.idl.epp0402.domain.epp_DomainContactType TECH = new org.openrtk.idl.epp0402.domain.epp_DomainContactType(_TECH); /** * Accessor method for the internal integer represent the type of contact. * Would compared with _ADMIN, _BILLING, _TECH. * @return The integer value of this domain contact type */ public int value () { return __value; } /** * Transform an integer into a epp_DomainContactType constant. * Given the integer representation of the contact type, returns * one of the contact type constants. * @param value The integer value for the desired contact type */ public static org.openrtk.idl.epp0402.domain.epp_DomainContactType 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 contact type array. * @param value The integer value for the desired contact type */ protected epp_DomainContactType (int value) { __value = value; __array[__value] = this; } public String toString() { return __strings[this.value()]; } } // class epp_DomainContactType --- NEW FILE: epp_DomainCreate.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.epp0402.domain; /** * Master external interface for the implementor of the EPP Domain Create command.</p> * The interface brings together epp_DomainCreateOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCreate.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainCreate */ public interface epp_DomainCreate extends epp_DomainCreateOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainCreate --- NEW FILE: epp_DomainCreateOperations.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.epp0402.domain; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_DomainCreate is implemented by EPPDomainCreate. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCreateOperations.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see org.openrtk.idl.epp0402.domain.epp_DomainCreate */ public interface epp_DomainCreateOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Domain Create EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Domain Create EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.domain.epp_DomainCreateReq parms); /** * Accessor for the data representing EPP response from a server for the * domain create command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_DomainCreateRsp. * @returns The Domain Create response */ org.openrtk.idl.epp0402.domain.epp_DomainCreateRsp getResponseData (); } // interface epp_DomainCreateOperations --- NEW FILE: epp_DomainCreateReq.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.epp0402.domain; /** * Class that contains the elements necessary to create a domain * in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCreateReq.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainCreate * @see org.openrtk.idl.epp0402.domain.epp_DomainCreateRsp */ public class epp_DomainCreateReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The name of the domain object to be created in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * The registration period of the domain object. * @see #setPeriod(org.openrtk.idl.epp0402.domain.epp_DomainPeriod) * @see #getPeriod() */ public org.openrtk.idl.epp0402.domain.epp_DomainPeriod m_period = null; /** * The array of name servers to be associated with the domain object. * Name servers must exist in the registry * @see #setNameServers(String[]) * @see #getNameServers() */ public String m_name_servers[] = null; /** * The domain registrant to be associated with the domain object. * Registrant must exist in the registry * @see #setRegistrant(String) * @see #getRegistrant() */ public String m_registrant = null; /** * The array of contacts to be associated with the domain object. * Contact objects must exist in the registry * @see #setContacts(org.openrtk.idl.epp0402.domain.epp_DomainContact[]) * @see #getContacts() */ public org.openrtk.idl.epp0402.domain.epp_DomainContact m_contacts[] = null; /** * The authorization information to be associated with the domain object. * @see #setAuthInfo(org.openrtk.idl.epp0402.epp_AuthInfo) * @see #getAuthInfo() */ public org.openrtk.idl.epp0402.epp_AuthInfo m_auth_info = null; /** * Empty constructor */ public epp_DomainCreateReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_name The name of the domain object to be created in the registry * @param _m_period The registration period of the domain object * @param _m_name_servers The array of name servers to be associated with the domain object * @param _m_registrant The registrant to be associated with the domain object * @param _m_contacts The array of contacts to be associated with the domain object * @param _m_auth_info The authorization information to be associated with the domain object */ public epp_DomainCreateReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp0402.domain.epp_DomainPeriod _m_period, String[] _m_name_servers, String _m_registrant, org.openrtk.idl.epp0402.domain.epp_DomainContact[] _m_contacts, org.openrtk.idl.epp0402.epp_AuthInfo _m_auth_info) { m_cmd = _m_cmd; m_name = _m_name; m_period = _m_period; m_name_servers = _m_name_servers; m_registrant = _m_registrant; m_contacts = _m_contacts; m_auth_info = _m_auth_info; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the name of the domain object to be created in the registry * @param value The domain name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the domain object to be created in the registry * @return The domain name * @see #m_name */ public String getName() { return m_name; } /** * Accessor method for the registration period of the domain object * @param value The domain period * @see #m_period */ public void setPeriod(org.openrtk.idl.epp0402.domain.epp_DomainPeriod value) { m_period = value; } /** * Accessor method for the registration period of the domain object * @return The domain period * @see #m_period */ public org.openrtk.idl.epp0402.domain.epp_DomainPeriod getPeriod() { return m_period; } /** * Accessor method for the array of name servers to be associated with the domain object * @param value The array of domain name servers * @see #m_name_servers */ public void setNameServers(String[] value) { m_name_servers = value; } /** * Accessor method for the array of name servers to be associated with the domain object * @return The array of domain name servers * @see #m_name_servers */ public String[] getNameServers() { return m_name_servers; } /** * Accessor method for the registrant to be associated with the domain object * @param value The domain registrant * @see #m_registrant */ public void setRegistrant(String value) { m_registrant = value; } /** * Accessor method for the registrant to be associated with the domain object * @return The domain registrant * @see #m_registrant */ public String getRegistrant() { return m_registrant; } /** * Accessor method for the array of contacts to be associated with the domain object * @param value The array of domain contacts * @see #m_contacts */ public void setContacts(org.openrtk.idl.epp0402.domain.epp_DomainContact[] value) { m_contacts = value; } /** * Accessor method for the array of contacts to be associated with the domain object * @return The array of domain contacts * @see #m_contacts */ public org.openrtk.idl.epp0402.domain.epp_DomainContact[] getContacts() { return m_contacts; } /** * Accessor method for the authorization information to be associated with the domain object * @param value The domain auth info * @see #m_auth_info */ public void setAuthInfo(org.openrtk.idl.epp0402.epp_AuthInfo value) { m_auth_info = value; } /** * Accessor method for the authorization information to be associated with the domain object * @return The domain auth info * @see #m_auth_info */ public org.openrtk.idl.epp0402.epp_AuthInfo getAuthInfo() { return m_auth_info; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] m_period ["+m_period+"] m_name_servers ["+(m_name_servers != null ? java.util.Arrays.asList(m_name_servers) : null)+"] m_registrant ["+m_registrant+"] m_contacts ["+(m_contacts != null ? java.util.Arrays.asList(m_contacts) : null)+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_DomainCreateReq --- NEW FILE: epp_DomainCreateRsp.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.epp0402.domain; /** * Class that contains the elements used to represent the domain create * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPDomainCreate * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainCreateRsp.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainCreate * @see org.openrtk.idl.epp0402.domain.epp_DomainCreateReq */ public class epp_DomainCreateRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The name of the domain object in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * The expiration date of the domain object. * @see #setExpirationDate(String) * @see #getExpirationDate() */ public String m_expiration_date = null; /** * Empty constructor */ public epp_DomainCreateRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_name The name of the domain object in the registry * @param _m_expiration_date The expiration date of the domain object */ public epp_DomainCreateRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, String _m_name, String _m_expiration_date) { m_rsp = _m_rsp; m_name = _m_name; m_expiration_date = _m_expiration_date; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the name of the domain object in the registry * @param value The domain name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the domain object in the registry * @return The domain name * @see #m_name */ public String getName() { return m_name; } /** * Accessor method for the expiration date of the domain object * @param value The domain expiration date * @see #m_expiration_date */ public void setExpirationDate(String value) { m_expiration_date = value; } /** * Accessor method for the expiration date of the domain object * @return The domain expiration date * @see #m_expiration_date */ public String getExpirationDate() { return m_expiration_date; } /** * 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_name ["+m_name+"] m_expiration_date ["+m_expiration_date+"] }"; } } // class epp_DomainCreateRsp --- NEW FILE: epp_DomainDelete.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.epp0402.domain; /** * Master external interface for the implementor of the EPP Domain Delete command.</p> * The interface brings together epp_DomainDeleteOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainDelete.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainDelete */ public interface epp_DomainDelete extends epp_DomainDeleteOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainDelete --- NEW FILE: epp_DomainDeleteOperations.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.epp0402.domain; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_DomainDelete is implemented by EPPDomainDelete. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainDeleteOperations.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see org.openrtk.idl.epp0402.domain.epp_DomainDelete */ public interface epp_DomainDeleteOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Domain Delete EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Domain Delete EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.domain.epp_DomainDeleteReq parms); /** * Accessor for the data representing EPP response from a server for the * domain delete command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_DomainDeleteRsp. * @returns The Domain Delete response */ org.openrtk.idl.epp0402.domain.epp_DomainDeleteRsp getResponseData (); } // interface epp_DomainDeleteOperations --- NEW FILE: epp_DomainDeleteReq.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.epp0402.domain; /** * Class that contains the elements necessary to delete a domain * in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainDeleteReq.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainDelete * @see org.openrtk.idl.epp0402.domain.epp_DomainDeleteRsp */ public class epp_DomainDeleteReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The name of the domain object to be deleted in the registry * @see #setName(String) * @see #getName() */ public String m_name = null; /** * Empty constructor */ public epp_DomainDeleteReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_name The name of the domain object to be deleted in the registry */ public epp_DomainDeleteReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the name of the domain object to be deleted in the registry * @param value The domain name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the domain object to be deleted in the registry * @return The domain name * @see #m_name */ public String getName() { return m_name; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_DomainDeleteReq --- NEW FILE: epp_DomainDeleteRsp.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.epp0402.domain; /** * Class that contains the elements used to represent the domain delete * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPDomainDelete * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainDeleteRsp.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainDelete * @see org.openrtk.idl.epp0402.domain.epp_DomainDeleteReq */ public class epp_DomainDeleteRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * Empty constructor */ public epp_DomainDeleteRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element */ public epp_DomainDeleteRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_DomainDeleteRsp --- NEW FILE: epp_DomainInfo.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.epp0402.domain; /** * Master external interface for the implementor of the EPP Domain Info command.</p> * The interface brings together epp_DomainInfoOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainInfo.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainInfo */ public interface epp_DomainInfo extends epp_DomainInfoOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainInfo --- NEW FILE: epp_DomainInfoOperations.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.epp0402.domain; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_DomainInfo is implemented by EPPDomainInfo. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainInfoOperations.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see org.openrtk.idl.epp0402.domain.epp_DomainInfo */ public interface epp_DomainInfoOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Domain Info EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Domain Info EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.domain.epp_DomainInfoReq parms); /** * Accessor for the data representing EPP response from a server for the * domain info command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_DomainInfoRsp. * @returns The Domain Info response */ org.openrtk.idl.epp0402.domain.epp_DomainInfoRsp getResponseData (); } // interface epp_DomainInfoOperations --- NEW FILE: epp_DomainInfoReq.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.epp0402.domain; /** * Class that contains the elements necessary to retrieve detailed * information associated with a domain in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainInfoReq.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainInfo * @see org.openrtk.idl.epp0402.domain.epp_DomainInfoRsp */ public class epp_DomainInfoReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The name of the domain object to be queried. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * Empty constructor */ public epp_DomainInfoReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_name The name of the domain object to be queried */ public epp_DomainInfoReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the name of the domain object to be queried * @param value The domain name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the domain object to be queried * @return The domain name * @see #m_name */ public String getName() { return m_name; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_DomainInfoReq --- NEW FILE: epp_DomainInfoRsp.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.epp0402.domain; /** * Class that contains the elements used to represent the domain info * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPDomainInfo * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain/epp_DomainInfoRsp.java,v 1.1 2003/03/21 16:35:41 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:41 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPDomainInfo * @see org.openrtk.idl.epp0402.domain.epp_DomainInfoReq */ public class epp_DomainInfoRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The name of the domain object in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * The repository object identifier associated with the domain object. * @see #setRoid(String) * @see #getRoid() */ public String m_roid = null; /** * The array of status associated with the domain object. * @see #setStatus(org.openrtk.idl.epp0402.domain.epp_DomainStatus[]) * @see #getStatus() */ public org.openrtk.idl.epp0402.domain.epp_DomainStatus m_status[] = null; /** * The registrant associated with the domain object. * @see #setRegistrant(String) * @see #getRegistrant() */ public String m_registrant = null; /** * The array of contacts associated with the domain object. * @see #setContacts(org.openrtk.idl.epp0402.domain.epp_DomainContact[]) * @see #getContacts() */ public org.openrtk.idl.epp0402.domain.epp_DomainContact m_contacts[] = null; /** * The array of name servers associated with the domain object. * @see #setNameServers(String[]) * @see #getNameServers() */ public String m_name_servers[] = null; /** * The array of host objects created under this domain object. * @see #setHosts(String[]) * @see #getHosts() */ public String m_hosts[] = null; /** * The identifier of the sponsoring client. * @see #setClientId(String) * @see #getClientId() */ public String m_client_id = null; /** * The identifier of the client that created the domain object. * @see #setCreatedBy(String) * @see #getCreatedBy() */ public String m_created_by = null; /** * The creation date of the domain object. * @see #setCreatedDate(String) * @see #getCreatedDate() */ public String m_created_date = null; /** * The identifier of the client that last updated the domain object. * @see #setUpdatedBy(String) * @see #getUpdatedBy() */ public String m_updated_by = null; /** * The most recent modification date of the domain object. * @see #setUpdatedDate(String) * @see #getUpdatedDate() */ public String m_updated_date = null; /** * The expiration date of the domain object. * @see #setExpirationDate(String) * @see #getExpirationDate() */ public String m_expiration_date = null; /** * The most recent transfer date of the domain object. * @see #setTransferDate(String) * @see #getTransferDate() */ public String m_transfer_date = null; /** * The authorization information associated with the domain object. * @see #setAuthInfo(org.openrtk.idl.epp0402.epp_AuthInfo) * @see #getAuthInfo() */ public org.openrtk.idl.epp0402.epp_AuthInfo m_auth_info = null; /** * Empty constructor */ public epp_DomainInfoRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_name The name of the domain object in the registry * @param _m_roid The repository object identifier associated with the domain object * @param _m_status The array of status associated with the domain object * @param _m_registrant The registrant associated with the domain object * @param _m_contacts The array of contacts associated with the domain object * @param _m_name_servers The array of name servers associated with the domain object * @param _m_hosts The array of host objects created under this domain object * @param _m_client_id The identifier of the sponsoring client * @param _m_created_by The identifier of the client that created the domain object * @param _m_created_date The creation date of the domain object * @param _m_updated_by The identifier of the client that last updated the domain object * @param _m_updated_date The most recent modification date of the domain object * @param _m_expiration_date The expiration date of the domain object * @param _m_transfer_date The most recent transfer date of the domain object * @param _m_auth_info The authorization information associated with the domain object */ public epp_DomainInfoRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, String _m_name, String _m_roid, org.openrtk.idl.epp0402.domain.epp_DomainStatus[] _m_status, String _m_registrant, org.openrtk.idl.epp0402.domain.epp_DomainContact[] _m_contacts, String[] _m_name_servers, String[] _m_hosts, String _m_client_id, String _m_created_by, String _m_created_date, String _m_updated_by, String _m_updated_date, String _m_expiration_date, String _m_transfer_date, org.openrtk.idl.epp0402.epp_AuthInfo _m_auth_info) { m_rsp = _m_rsp; m_name = _m_name; m_roid = _m_roid; m_status = _m_status; m_registrant = _m_registrant; m_contacts = _m_contacts; m_name_servers = _m_name_servers; m_hosts = _m_hosts; m_client_id = _m_client_id; m_created_by = _m_created_by; m_created_date = _m_created_date; m_updated_by = _m_updated_by; m_updated_date = _m_updated_date; m_expiration_date = _m_expiration_date; m_transfer_date = _m_transfer_date; m_auth_info = _m_auth_info; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the name of the domain object in the registry * @param value The domain name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the domain object in the registry * @return The domain name * @see #m_name */ public String getName() { return m_name; } /** * Accessor method for the repository object identifier associated with the domain object * @param value The domain repository object identifier * @see #m_roid */ public void setRoid(String value) { m_roid = value; } /** * Accessor method for the repository object identifier associated with the domain object * @return The domain repository object identifier * @see #m_roid */ public String getRoid() { return m_roid; } /** * Accessor method for the array of status associated with the domain object * @param value T... [truncated message content] |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/org/openrtk/idl/epp0402/host Added Files: epp_HostAddress.java epp_HostAddressType.java epp_HostCheck.java epp_HostCheckOperations.java epp_HostCheckReq.java epp_HostCheckRsp.java epp_HostCreate.java epp_HostCreateOperations.java epp_HostCreateReq.java epp_HostCreateRsp.java epp_HostDelete.java epp_HostDeleteOperations.java epp_HostDeleteReq.java epp_HostDeleteRsp.java epp_HostInfo.java epp_HostInfoOperations.java epp_HostInfoReq.java epp_HostInfoRsp.java epp_HostStatus.java epp_HostStatusType.java epp_HostUpdate.java epp_HostUpdateAddRemove.java epp_HostUpdateChange.java epp_HostUpdateOperations.java epp_HostUpdateReq.java epp_HostUpdateRsp.java Log Message: pulled in epp0402 java classes --- NEW FILE: epp_HostAddress.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.epp0402.host; /** * Class that contains the elements used to represent host IP addresses * with the type: IPV4, IPV6.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostAddress.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see org.openrtk.idl.epp0402.host.epp_HostUpdateAddRemove * @see org.openrtk.idl.epp0402.host.epp_HostCreateReq * @see org.openrtk.idl.epp0402.host.epp_HostInfoRsp */ public class epp_HostAddress implements org.omg.CORBA.portable.IDLEntity { /** * The type of the host address. * @see #setType(org.openrtk.idl.epp0402.host.epp_HostAddressType) * @see #getType() */ public org.openrtk.idl.epp0402.host.epp_HostAddressType m_type = null; /** * The ip address of the host address. * @see #setIp(String) * @see #getIp() */ public String m_ip = null; /** * Empty constructor */ public epp_HostAddress () { } // ctor /** * The constructor with initializing variables. * @param _m_type The type of the host address * @param _m_ip The ip address of the host address */ public epp_HostAddress (org.openrtk.idl.epp0402.host.epp_HostAddressType _m_type, String _m_ip) { m_type = _m_type; m_ip = _m_ip; } // ctor /** * Accessor method for the type of the host address * @param value The host address type * @see #m_type */ public void setType(org.openrtk.idl.epp0402.host.epp_HostAddressType value) { m_type = value; } /** * Accessor method for the type of the host address * @return The host address type * @see #m_type */ public org.openrtk.idl.epp0402.host.epp_HostAddressType getType() { return m_type; } /** * Accessor method for the ip address of the host address * @param value The host ip * @see #m_ip */ public void setIp(String value) { m_ip = value; } /** * Accessor method for the ip address of the host address * @return The host ip * @see #m_ip */ public String getIp() { return m_ip; } /** * 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_ip ["+m_ip+"] }"; } } // class epp_HostAddress --- NEW FILE: epp_HostAddressType.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.epp0402.host; /** * Class defining constant instances of IP address types for host.</p> * Used in conjunction with the epp_HostAddress class to indicate the * type of the host IP address: IPV4, IPV6.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostAddressType.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see org.openrtk.idl.epp0402.host.epp_HostAddress */ public class epp_HostAddressType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 2; private static org.openrtk.idl.epp0402.host.epp_HostAddressType[] __array = new org.openrtk.idl.epp0402.host.epp_HostAddressType [__size]; private static String[] __strings = { "v4", "v6" }; /** * Integer value representing the IPV4 address type. * @see #IPV4 */ public static final int _IPV4 = 0; /** * Instance of epp_HostAddressType representing the IPV4 address type. * Used directly with epp_HostAddress. * @see org.openrtk.idl.epp0402.host.epp_HostAddress */ public static final org.openrtk.idl.epp0402.host.epp_HostAddressType IPV4 = new org.openrtk.idl.epp0402.host.epp_HostAddressType(_IPV4); /** * Integer value representing the IPV6 address type. * @see #IPV6 */ public static final int _IPV6 = 1; /** * Instance of epp_HostAddressType representing the IPV6 address type. * Used directly with epp_HostAddress. * @see org.openrtk.idl.epp0402.host.epp_HostAddress */ public static final org.openrtk.idl.epp0402.host.epp_HostAddressType IPV6 = new org.openrtk.idl.epp0402.host.epp_HostAddressType(_IPV6); /** * Accessor method for the internal integer representing the type of address. * @return The integer value of this host address type */ public int value () { return __value; } /** * Transform an integer into a epp_HostAddressType constant. * Given the integer representation of the address type, returns * one of the address type constants. * @param value The integer value for the desired address type */ public static org.openrtk.idl.epp0402.host.epp_HostAddressType 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 address type array. * @param value The integer value for the desired address type */ protected epp_HostAddressType (int value) { __value = value; __array[__value] = this; } public String toString() { return __strings[this.value()]; } } // class epp_HostAddressType --- NEW FILE: epp_HostCheck.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.epp0402.host; /** * Master external interface for the implementor of the EPP Host Check command.</p> * The interface brings together epp_HostCheckOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCheck.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostCheck */ public interface epp_HostCheck extends epp_HostCheckOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostCheck --- NEW FILE: epp_HostCheckOperations.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.epp0402.host; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_HostCheck is implemented by EPPHostCheck. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCheckOperations.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see org.openrtk.idl.epp0402.host.epp_HostCheck */ public interface epp_HostCheckOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Host Check EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Host Check EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.host.epp_HostCheckReq parms); /** * Accessor for the data representing EPP response from a server for the * host check command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_HostCheckRsp. * @returns The Host Check response */ org.openrtk.idl.epp0402.host.epp_HostCheckRsp getResponseData (); } // interface epp_HostCheckOperations --- NEW FILE: epp_HostCheckReq.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.epp0402.host; /** * Class that contains the elements necessary to check to see if * a host is available in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCheckReq.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostCheck * @see org.openrtk.idl.epp0402.host.epp_HostCheckRsp */ public class epp_HostCheckReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The array of host names to check in the registry. * @see #setNames(String[]) * @see #getNames() */ public String m_names[] = null; /** * Empty constructor */ public epp_HostCheckReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_names The array of host names to check */ public epp_HostCheckReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String[] _m_names) { m_cmd = _m_cmd; m_names = _m_names; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the array of host names to check in the registry * @param value The array of host names * @see #m_names */ public void setNames(String[] value) { m_names = value; } /** * Accessor method for the array of host names to check in the registry * @return The array of host names * @see #m_names */ public String[] getNames() { return m_names; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_names ["+(m_names != null ? java.util.Arrays.asList(m_names) : null)+"] }"; } } // class epp_HostCheckReq --- NEW FILE: epp_HostCheckRsp.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.epp0402.host; /** * Class that contains the elements used to represent the host check * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPHostCheck * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCheckRsp.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostCheck * @see org.openrtk.idl.epp0402.host.epp_HostCheckReq */ public class epp_HostCheckRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The generic check response array. * @see #getResults() * @see com.tucows.oxrs.epp.rtk.xml.EPPXMLBase#getCheckResultFor(epp_CheckResult[], String) */ public org.openrtk.idl.epp0402.epp_CheckResult m_results[] = null; /** * Empty constructor */ public epp_HostCheckRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_results The array of host check results */ public epp_HostCheckRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, org.openrtk.idl.epp0402.epp_CheckResult[] _m_results) { m_rsp = _m_rsp; m_results = _m_results; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the host check results * @param value The new value for the host check results array * @see #m_results */ public void setResults(org.openrtk.idl.epp0402.epp_CheckResult[] value) { m_results = value; } /** * Accessor method for the host check results * @return The value for the host check results array * @see #m_results */ public org.openrtk.idl.epp0402.epp_CheckResult[] getResults() { return m_results; } /** * 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_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] }"; } } // class epp_HostCheckRsp --- NEW FILE: epp_HostCreate.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.epp0402.host; /** * Master external interface for the implementor of the EPP Host Create command.</p> * The interface brings together epp_HostCreateOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCreate.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostCreate */ public interface epp_HostCreate extends epp_HostCreateOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostCreate --- NEW FILE: epp_HostCreateOperations.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.epp0402.host; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_HostCreate is implemented by EPPHostCreate. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCreateOperations.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see org.openrtk.idl.epp0402.host.epp_HostCreate */ public interface epp_HostCreateOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Host Create EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Host Create EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.host.epp_HostCreateReq parms); /** * Accessor for the data representing EPP response from a server for the * host create command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_HostCreateRsp. * @returns The Host Create response */ org.openrtk.idl.epp0402.host.epp_HostCreateRsp getResponseData (); } // interface epp_HostCreateOperations --- NEW FILE: epp_HostCreateReq.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.epp0402.host; /** * Class that contains the elements necessary to create a host * in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCreateReq.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostCreate * @see org.openrtk.idl.epp0402.host.epp_HostCreateRsp */ public class epp_HostCreateReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The name of the host object to be created in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * The array of IP addresses to be associated with the host object. * @see #setAddresses(org.openrtk.idl.epp0402.host.epp_HostAddress[]) * @see #getAddresses() */ public org.openrtk.idl.epp0402.host.epp_HostAddress m_addresses[] = null; /** * Empty constructor */ public epp_HostCreateReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_name The name of the host object to be created * @param _m_addresses The array of IP addresses to be associated with the host object */ public epp_HostCreateReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp0402.host.epp_HostAddress[] _m_addresses) { m_cmd = _m_cmd; m_name = _m_name; m_addresses = _m_addresses; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the name of the host object to be created * @param value The host name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the host object to be created * @return The host name * @see #m_name */ public String getName() { return m_name; } /** * Accessor method for the array of IP addresses to be associated with the host object * @param value The array of host IP addresses * @see #m_addresses */ public void setAddresses(org.openrtk.idl.epp0402.host.epp_HostAddress[] value) { m_addresses = value; } /** * Accessor method for the array of IP addresses to be associated with the host object * @return The array of host IP addresses * @see #m_addresses */ public org.openrtk.idl.epp0402.host.epp_HostAddress[] getAddresses() { return m_addresses; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] m_addresses ["+(m_addresses != null ? java.util.Arrays.asList(m_addresses) : null)+"] }"; } } // class epp_HostCreateReq --- NEW FILE: epp_HostCreateRsp.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.epp0402.host; /** * Class that contains the elements used to represent the host create * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPHostCreate * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostCreateRsp.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostCreate * @see org.openrtk.idl.epp0402.host.epp_HostCreateReq */ public class epp_HostCreateRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The name of the host object in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * Empty constructor */ public epp_HostCreateRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_name The name of the host object in the registry */ public epp_HostCreateRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, String _m_name) { m_rsp = _m_rsp; m_name = _m_name; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the name of the host object in the registry * @param value The host name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the host object in the registry * @return The host name * @see #m_name */ public String getName() { return m_name; } /** * 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_name ["+m_name+"] }"; } } // class epp_HostCreateRsp --- NEW FILE: epp_HostDelete.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.epp0402.host; /** * Master external interface for the implementor of the EPP Host Delete command.</p> * The interface brings together epp_HostDeleteOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostDelete.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostDelete */ public interface epp_HostDelete extends epp_HostDeleteOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostDelete --- NEW FILE: epp_HostDeleteOperations.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.epp0402.host; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_HostDelete is implemented by EPPHostDelete. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostDeleteOperations.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see org.openrtk.idl.epp0402.host.epp_HostDelete */ public interface epp_HostDeleteOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Host Delete EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Host Delete EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.host.epp_HostDeleteReq parms); /** * Accessor for the data representing EPP response from a server for the * host delete command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_HostDeleteRsp. * @returns The Host Delete response */ org.openrtk.idl.epp0402.host.epp_HostDeleteRsp getResponseData (); } // interface epp_HostDeleteOperations --- NEW FILE: epp_HostDeleteReq.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.epp0402.host; /** * Class that contains the elements necessary to delete a host * in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostDeleteReq.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostDelete * @see org.openrtk.idl.epp0402.host.epp_HostDeleteRsp */ public class epp_HostDeleteReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The name of the host object to be deleted in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * Empty constructor */ public epp_HostDeleteReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_name The name of the host object to be deleted in the registry */ public epp_HostDeleteReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the name of the host object to be deleted in the registry * @param value The host name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the host object to be deleted in the registry * @return The host name * @see #m_name */ public String getName() { return m_name; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_HostDeleteReq --- NEW FILE: epp_HostDeleteRsp.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.epp0402.host; /** * Class that contains the elements used to represent the host delete * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPHostDelete * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostDeleteRsp.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostDelete * @see org.openrtk.idl.epp0402.host.epp_HostDeleteReq */ public class epp_HostDeleteRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * Empty constructor */ public epp_HostDeleteRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element */ public epp_HostDeleteRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_HostDeleteRsp --- NEW FILE: epp_HostInfo.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.epp0402.host; /** * Master external interface for the implementor of the EPP Host Info command.</p> * The interface brings together epp_HostInfoOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostInfo.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostInfo */ public interface epp_HostInfo extends epp_HostInfoOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostInfo --- NEW FILE: epp_HostInfoOperations.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.epp0402.host; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_HostInfo is implemented by EPPHostInfo. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostInfoOperations.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see org.openrtk.idl.epp0402.host.epp_HostInfo */ public interface epp_HostInfoOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Host Info EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Host Info EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.host.epp_HostInfoReq parms); /** * Accessor for the data representing EPP response from a server for the * host info command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_HostInfoRsp. * @returns The Host Info response */ org.openrtk.idl.epp0402.host.epp_HostInfoRsp getResponseData (); } // interface epp_HostInfoOperations --- NEW FILE: epp_HostInfoReq.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.epp0402.host; /** * Class that contains the elements necessary to retrieve detailed * information associated with a host object in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostInfoReq.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostInfo * @see org.openrtk.idl.epp0402.host.epp_HostInfoRsp */ public class epp_HostInfoReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The name of the host object to be queried. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * Empty constructor */ public epp_HostInfoReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_name The name of the host object to be queried */ public epp_HostInfoReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the name of the host object to be queried * @param value The host name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the host object to be queried * @return The host name * @see #m_name */ public String getName() { return m_name; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_HostInfoReq --- NEW FILE: epp_HostInfoRsp.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.epp0402.host; /** * Class that contains the elements used to represent the host info * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPHostInfo * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostInfoRsp.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPHostInfo * @see org.openrtk.idl.epp0402.host.epp_HostInfoReq */ public class epp_HostInfoRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The name of the host object in the registry. * @see #setName(String) * @see #getName() */ public String m_name = null; /** * The repository object identifier associated with the host object. * @see #setRoid(String) * @see #getRoid() */ public String m_roid = null; /** * The array of status associated with the host object. * @see #setStatus(org.openrtk.idl.epp0402.host.epp_HostStatus[]) * @see #getStatus() */ public org.openrtk.idl.epp0402.host.epp_HostStatus m_status[] = null; /** * The array of IP addresses associated with the host object. * @see #setAddresses(org.openrtk.idl.epp0402.host.epp_HostAddress[]) * @see #getAddresses() */ public org.openrtk.idl.epp0402.host.epp_HostAddress m_addresses[] = null; /** * The identifier of the sponsoring client. * @see #setClientId(String) * @see #getClientId() */ public String m_client_id = null; /** * The identifier of the client that created the host object. * @see #setCreatedBy(String) * @see #getCreatedBy() */ public String m_created_by = null; /** * The creation date of the host object. * @see #setCreatedDate(String) * @see #getCreatedDate() */ public String m_created_date = null; /** * The identifier of the client that last updated the host object. * @see #setUpdatedBy(String) * @see #getUpdatedBy() */ public String m_updated_by = null; /** * The most recent modification date of the host object. * @see #setUpdatedDate(String) * @see #getUpdatedDate() */ public String m_updated_date = null; /** * The most recent transfer date of the host object. * @see #setTransferDate(String) * @see #getTransferDate() */ public String m_transfer_date = null; /** * Empty constructor */ public epp_HostInfoRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_name The name of the host object in the registry * @param _m_roid The repository object identifier associated with the host object * @param _m_status The array of status associated with the host object * @param _m_addresses The array of IP addresses associated with the host object * @param _m_client_id The identifier of the sponsoring client * @param _m_created_by The identifier of the client that created the host object * @param _m_created_date The creation date of the host object * @param _m_updated_by The identifier of the client that last updated the host object * @param _m_updated_date The most recent modification date of the host object * @param _m_transfer_date The most recent transfer date of the host object */ public epp_HostInfoRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, String _m_name, String _m_roid, org.openrtk.idl.epp0402.host.epp_HostStatus[] _m_status, org.openrtk.idl.epp0402.host.epp_HostAddress[] _m_addresses, String _m_client_id, String _m_created_by, String _m_created_date, String _m_updated_by, String _m_updated_date, String _m_transfer_date) { m_rsp = _m_rsp; m_name = _m_name; m_roid = _m_roid; m_status = _m_status; m_addresses = _m_addresses; m_client_id = _m_client_id; m_created_by = _m_created_by; m_created_date = _m_created_date; m_updated_by = _m_updated_by; m_updated_date = _m_updated_date; m_transfer_date = _m_transfer_date; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the name of the host object in the registry * @param value The host name * @see #m_name */ public void setName(String value) { m_name = value; } /** * Accessor method for the name of the host object in the registry * @return The host name * @see #m_name */ public String getName() { return m_name; } /** * Accessor method for the repository object identifier associated with the host object * @param value The host repository object identifier * @see #m_roid */ public void setRoid(String value) { m_roid = value; } /** * Accessor method for the repository object identifier associated with the host object * @return The host repository object identifier * @see #m_roid */ public String getRoid() { return m_roid; } /** * Accessor method for the array of status associated with the host object * @param value The array of host status * @see #m_status */ public void setStatus(org.openrtk.idl.epp0402.host.epp_HostStatus[] value) { m_status = value; } /** * Accessor method for the array of status associated with the host object * @return The array of host status * @see #m_status */ public org.openrtk.idl.epp0402.host.epp_HostStatus[] getStatus() { return m_status; } /** * Accessor method for the array of IP addresses associated with the host object * @param value The array of host IP addresses * @see #m_addresses */ public void setAddresses(org.openrtk.idl.epp0402.host.epp_HostAddress[] value) { m_addresses = value; } /** * Accessor method for the array of IP addresses associated with the host object * @return The array of host IP addresses * @see #m_addresses */ public org.openrtk.idl.epp0402.host.epp_HostAddress[] getAddresses() { return m_addresses; } /** * Accessor method for the identifier of the sponsoring client * @param value The host sponsoring client id * @see #m_client_id */ public void setClientId(String value) { m_client_id = value; } /** * Accessor method for the identifier of the sponsoring client * @return The host sponsoring client id * @see #m_client_id */ public String getClientId() { return m_client_id; } /** * Accessor method for the identifier of the client that created the host object * @param value The identifier of the client that created the host object * @see #m_created_by */ public void setCreatedBy(String value) { m_created_by = value; } /** * Accessor method for the identifier of the client that created the host object * @return The identifier of the client that created the host object * @see #m_created_by */ public String getCreatedBy() { return m_created_by; } /** * Accessor method for the creation date of the host object * @param value The host creation date * @see #m_created_date */ public void setCreatedDate(String value) { m_created_date = value; } /** * Accessor method for the creation date of the host object * @return The host creation date * @see #m_created_date */ public String getCreatedDate() { return m_created_date; } /** * Accessor method for the identifier of the client that last updated the host object * @param value The identifier of the client that last updated the host object * @see #m_updated_by */ public void setUpdatedBy(String value) { m_updated_by = value; } /** * Accessor method for the identifier of the client that last updated the host object * @return The identifier of the client that last updated the host object * @see #m_updated_by */ public String getUpdatedBy() { return m_updated_by; } /** * Accessor method for the most recent modification date of the host object * @param value The most recent modification date * @see #m_updated_date */ public void setUpdatedDate(String value) { m_updated_date = value; } /** * Accessor method for the most recent modification date of the host object * @return The most recent modification date * @see #m_updated_date */ public String getUpdatedDate() { return m_updated_date; } /** * Accessor method for the most recent transfer date of the host object * @param value The most recent host transfer date * @see #m_transfer_date */ public void setTransferDate(String value) { m_transfer_date = value; } /** * Accessor method for the most recent transfer date of the host object * @return The most recent host transfer date * @see #m_transfer_date */ public String getTransferDate() { return m_transfer_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_name ["+m_name+"] m_roid ["+m_roid+"] m_status ["+(m_status != null ? java.util.Arrays.asList(m_status) : null)+"] m_addresses ["+(m_addresses != null ? java.util.Arrays.asList(m_addresses) : null)+"] m_client_id ["+m_client_id+"] m_created_by ["+m_created_by+"] m_created_date ["+m_created_date+"] m_updated_by ["+m_updated_by+"] m_updated_date ["+m_updated_date+"] m_transfer_date ["+m_transfer_date+"] }"; } } // class epp_HostInfoRsp --- NEW FILE: epp_HostStatus.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.epp0402.host; /** * Class that contains the elements used to represent host status with different type.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host/epp_HostStatus.java,v 1.1 2003/03/21 16:35:42 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:42 $<br> * @see org.openrtk.idl.epp0402.host.epp_HostInfoRsp * @see org.openrtk.idl.epp0402.host.epp_HostUpdateAddRemove */ public class epp_HostStatus implements org.omg.CORBA.portable.IDLEntity { /** * The type of the host status. * @see #setType(org.openrtk.idl.epp0402.host.epp_HostStatusType) * @see #getType() */ public org.openrtk.idl.epp0402.host.epp_HostStatusType m_type = null; /** * The language used to express the host status value. * @see #setLang(String) * @see #getLang() */ public String m_lang = null; /** * The value of the host status. * @see #setValue(String) * @see #getValue() */ public String m_value = null; /** * Empty constructor */ public epp_HostStatus () { } // ctor /** * The constructor with initializing variables. * @param _m_type The type of the host status * @param _m_lang The language used to express the host status value * @param _m_value The value of the host status */ public epp_HostStatus (org.openrtk.idl.epp0402.host.epp_HostStatusType _m_type, String _m_lang, String _m_value) { m_type = _m_type; m_lang = _m_lang; m_value = _m_value; } // ctor /** * Accessor method for the type of the host status * @param value The host status type * @see #m_type */ public void setType(org.openrtk.idl.epp0402.host.epp_HostStatusType value) { m_type = value; } /** * Accessor method for the type of the host status * @return The host status type * @see #m_type */ public org.openrtk.idl.epp0402.host.epp_HostStatusType getType() { return m_type; } /** * Accessor method for the language used to express the host status value * @param value The language of the status value * @see #m_lang */ public void setLang(String value) { m_lang = value; } /** * Accessor method for the language used to express the host status value * @return The language of the status value * @see #m_lang */ public String getLang() { return m_lang; } /** * Accessor method for the value of the host status * @param value The host status value * @see #m_value */ public void setValue(String value) { m_value = value; } /** * Accessor method for the value of the host status * @return The host status value * @see #m_value */ public String getValue() { return m_value; } /** * 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_lang ["+m_lang+"] m_value ["+m_value+"] }"; } } // class epp_HostStatus --- NEW FILE: epp_HostStatusType.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This lib... [truncated message content] |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/org/openrtk/idl/epp0402/contact Added Files: epp_ContactAddress.java epp_ContactCheck.java epp_ContactCheckOperations.java epp_ContactCheckReq.java epp_ContactCheckRsp.java epp_ContactCreate.java epp_ContactCreateOperations.java epp_ContactCreateReq.java epp_ContactCreateRsp.java epp_ContactDelete.java epp_ContactDeleteOperations.java epp_ContactDeleteReq.java epp_ContactDeleteRsp.java epp_ContactInfo.java epp_ContactInfoOperations.java epp_ContactInfoReq.java epp_ContactInfoRsp.java epp_ContactNameAddress.java epp_ContactPhone.java epp_ContactStatus.java epp_ContactStatusType.java epp_ContactTransfer.java epp_ContactTransferOperations.java epp_ContactTransferReq.java epp_ContactTransferRsp.java epp_ContactTrnData.java epp_ContactUpdate.java epp_ContactUpdateAddRemove.java epp_ContactUpdateChange.java epp_ContactUpdateOperations.java epp_ContactUpdateReq.java epp_ContactUpdateRsp.java epp_ContactVoice.java Log Message: pulled in epp0402 java classes --- NEW FILE: epp_ContactAddress.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.epp0402.contact; /** * Class that contains the elements used to represent contact address.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactAddress.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see org.openrtk.idl.epp0402.contact.epp_ContactNameAddress */ public class epp_ContactAddress implements org.omg.CORBA.portable.IDLEntity { /** * The part 1 of the contact's street address. * @see #setStreet1(String) * @see #getStreet1() */ public String m_street1 = null; /** * The part 2 of the contact's street address. * @see #setStreet2(String) * @see #getStreet2() */ public String m_street2 = null; /** * The part 3 of the contact's street address. * @see #setStreet3(String) * @see #getStreet3() */ public String m_street3 = null; /** * The contact's city. * @see #setCity(String) * @see #getCity() */ public String m_city = null; /** * The contact's state or province. * @see #setStateProvince(String) * @see #getStateProvince() */ public String m_state_province = null; /** * The contact's postal code. * @see #setPostalCode(String) * @see #getPostalCode() */ public String m_postal_code = null; /** * The contact's country code. * @see #setCountryCode(String) * @see #getCountryCode() */ public String m_country_code = null; /** * Empty constructor */ public epp_ContactAddress () { } // ctor /** * The constructor with initializing variables. * @param _m_street1 The part 1 of the contact's street address * @param _m_street2 The part 2 of the contact's street address * @param _m_street3 The part 3 of the contact's street address * @param _m_city The contact's city * @param _m_state_province The contact's state or province * @param _m_postal_code The contact's postal code * @param _m_country_code The contact's country code */ public epp_ContactAddress (String _m_street1, String _m_street2, String _m_street3, String _m_city, String _m_state_province, String _m_postal_code, String _m_country_code) { m_street1 = _m_street1; m_street2 = _m_street2; m_street3 = _m_street3; m_city = _m_city; m_state_province = _m_state_province; m_postal_code = _m_postal_code; m_country_code = _m_country_code; } // ctor /** * Accessor method for the part 1 of the contact's street address * @param value The part 1 of contact's street address * @see #m_street1 */ public void setStreet1(String value) { m_street1 = value; } /** * Accessor method for the part 1 of the contact's street address * @return The part 1 of the contact's street address * @see #m_street1 */ public String getStreet1() { return m_street1; } /** * Accessor method for the part 2 of the contact's street address * @param value The part 2 of the contact's street address * @see #m_street2 */ public void setStreet2(String value) { m_street2 = value; } /** * Accessor method for the part 2 of the contact's street address * @return The part 2 of the contact's street address * @see #m_street2 */ public String getStreet2() { return m_street2; } /** * Accessor method for the part 3 of the contact's street address * @param value The part 3 of the contact's street address * @see #m_street3 */ public void setStreet3(String value) { m_street3 = value; } /** * Accessor method for the part 3 of the contact's street address * @return The part 3 of the contact's street address * @see #m_street3 */ public String getStreet3() { return m_street3; } /** * Accessor method for the contact's city * @param value The contact's city * @see #m_city */ public void setCity(String value) { m_city = value; } /** * Accessor method for the contact's city * @return The contact's city * @see #m_city */ public String getCity() { return m_city; } /** * Accessor method for the contact's state or province * @param value The contact's state or province * @see #m_state_province */ public void setStateProvince(String value) { m_state_province = value; } /** * Accessor method for the contact's state or province * @return The contact's state or province * @see #m_state_province */ public String getStateProvince() { return m_state_province; } /** * Accessor method for the contact's postal code * @param value The contact's postal code * @see #m_postal_code */ public void setPostalCode(String value) { m_postal_code = value; } /** * Accessor method for the contact's postal code * @return The contact's postal code * @see #m_postal_code */ public String getPostalCode() { return m_postal_code; } /** * Accessor method for the contact's country code * @param value The contact's country code * @see #m_country_code */ public void setCountryCode(String value) { m_country_code = value; } /** * Accessor method for the contact's country code * @return The contact's country code * @see #m_country_code */ public String getCountryCode() { return m_country_code; } /** * 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_street1 ["+m_street1+"] m_street2 ["+m_street2+"] m_street3 ["+m_street3+"] m_city ["+m_city+"] m_state_province ["+m_state_province+"] m_postal_code ["+m_postal_code+"] m_country_code ["+m_country_code+"] }"; } } // class epp_ContactAddress --- NEW FILE: epp_ContactCheck.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.epp0402.contact; /** * Master external interface for the implementor of the EPP Contact Check command.</p> * The interface brings together epp_ContactCheckOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCheck.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactCheck */ public interface epp_ContactCheck extends epp_ContactCheckOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactCheck --- NEW FILE: epp_ContactCheckOperations.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.epp0402.contact; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_ContactCheck is implemented by EPPContactCheck. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCheckOperations.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see org.openrtk.idl.epp0402.contact.epp_ContactCheck */ public interface epp_ContactCheckOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Contact Check EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Contact Check EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.contact.epp_ContactCheckReq parms); /** * Accessor for the data representing EPP response from a server for the * contact check command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_ContactCheckRsp. * @returns The Contact Check response */ org.openrtk.idl.epp0402.contact.epp_ContactCheckRsp getResponseData (); } // interface epp_ContactCheckOperations --- NEW FILE: epp_ContactCheckReq.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.epp0402.contact; /** * Class that contains the elements necessary to check to see if * a contact is available in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCheckReq.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactCheck * @see org.openrtk.idl.epp0402.contact.epp_ContactCheckRsp */ public class epp_ContactCheckReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The array of contact ids to check in the registry. * @see #setIds(String[]) * @see #getIds() */ public String m_ids[] = null; /** * Empty constructor */ public epp_ContactCheckReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_ids The array of contact ids to check in the registry */ public epp_ContactCheckReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String[] _m_ids) { m_cmd = _m_cmd; m_ids = _m_ids; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * @deprecated * @see #setIds(String[]) */ public void setRoids(String[] value) { setIds(value); } /** * Accessor for the contact Id array. * Deprecated. Internally calls getIds(). * @deprecated * @see #getIds() */ public String[] getRoids() { return getIds(); } /** * Accessor method for the array of contact ids to check in the registry * @param value The array of contact ids * @see #m_ids */ public void setIds(String[] value) { m_ids = value; } /** * Accessor method for the array of contact ids to check in the registry * @return The array of contact ids * @see #m_ids */ public String[] getIds() { return m_ids; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_ids ["+(m_ids != null ? java.util.Arrays.asList(m_ids) : null)+"] }"; } } // class epp_ContactCheckReq --- NEW FILE: epp_ContactCheckRsp.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.epp0402.contact; /** * Class that contains the elements used to represent the contact check * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPContactCheck * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCheckRsp.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactCheck * @see org.openrtk.idl.epp0402.contact.epp_ContactCheckReq */ public class epp_ContactCheckRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The generic check response array. * @see #getResults() * @see com.tucows.oxrs.epp.rtk.xml.EPPXMLBase#getCheckResultFor(epp_CheckResult[], String) */ public org.openrtk.idl.epp0402.epp_CheckResult m_results[] = null; /** * Empty constructor */ public epp_ContactCheckRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_results The array of contact check results */ public epp_ContactCheckRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, org.openrtk.idl.epp0402.epp_CheckResult[] _m_results) { m_rsp = _m_rsp; m_results = _m_results; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the contact check results * @param value The new value for the contact check results array * @see #m_results */ public void setResults(org.openrtk.idl.epp0402.epp_CheckResult[] value) { m_results = value; } /** * Accessor method for the contact check results * @return The value for the contact check results array * @see #m_results */ public org.openrtk.idl.epp0402.epp_CheckResult[] getResults() { return m_results; } /** * 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_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] }"; } } // class epp_ContactCheckRsp --- NEW FILE: epp_ContactCreate.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.epp0402.contact; /** * Master external interface for the implementor of the EPP Contact Create command.</p> * The interface brings together epp_ContactCreateOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCreate.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactCreate */ public interface epp_ContactCreate extends epp_ContactCreateOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactCreate --- NEW FILE: epp_ContactCreateOperations.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.epp0402.contact; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_ContactCreate is implemented by EPPContactCreate. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCreateOperations.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see org.openrtk.idl.epp0402.contact.epp_ContactCreate */ public interface epp_ContactCreateOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Contact Create EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Contact Create EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.contact.epp_ContactCreateReq parms); /** * Accessor for the data representing EPP response from a server for the * contact create command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_ContactCreateRsp. * @returns The Contact Create response */ org.openrtk.idl.epp0402.contact.epp_ContactCreateRsp getResponseData (); } // interface epp_ContactCreateOperations --- NEW FILE: epp_ContactCreateReq.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.epp0402.contact; /** * Class that contains the elements necessary to create a contact * in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCreateReq.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactCreate * @see org.openrtk.idl.epp0402.contact.epp_ContactCreateRsp */ public class epp_ContactCreateReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The identifier for the contact to be created. * @see #setId(String) * @see #getId() */ public String m_id = null; /** * The contact name and address to be associated with the contact object. * Content of this element must be represented in a subset of UTF-8. * @see #setAsciiAddress(org.openrtk.idl.epp0402.contact.epp_ContactNameAddress) * @see #getAsciiAddress() */ public org.openrtk.idl.epp0402.contact.epp_ContactNameAddress m_ascii_address = null; /** * The contact name and address to be associated with the contact object. * Content of this element may be represented in unrestricted UTF-8. * @see #setI15dAddress(org.openrtk.idl.epp0402.contact.epp_ContactNameAddress) * @see #getI15dAddress() */ public org.openrtk.idl.epp0402.contact.epp_ContactNameAddress m_i15d_address = null; /** * The telephone number of the contact. * @see #setVoice(org.openrtk.idl.epp0402.contact.epp_ContactPhone) * @see #getVoice() */ public org.openrtk.idl.epp0402.contact.epp_ContactPhone m_voice = null; /** * The fax number of the contact. * @see #setFax(org.openrtk.idl.epp0402.contact.epp_ContactPhone) * @see #getFax() */ public org.openrtk.idl.epp0402.contact.epp_ContactPhone m_fax = null; /** * The e-mail address of the contact. * @see #setEmail(String) * @see #getEmail() */ public String m_email = null; /** * The authorization information to be associated with the contact object. * @see #setAuthInfo(org.openrtk.idl.epp0402.epp_AuthInfo) * @see #getAuthInfo() */ public org.openrtk.idl.epp0402.epp_AuthInfo m_auth_info = null; /** * Empty constructor */ public epp_ContactCreateReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_id The identifier for the contact to be created * @param _m_ascii_address The ascii contact name and address to be associated with the contact object * @param _m_i15d_address The i15d contact name and address to be associated with the contact object * @param _m_voice The telephone number of the contact * @param _m_fax The fax number of the contact * @param _m_email The e-mail address of the contact * @param _m_auth_info The authorization information to be associated with the contact object */ public epp_ContactCreateReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_id, org.openrtk.idl.epp0402.contact.epp_ContactNameAddress _m_ascii_address, org.openrtk.idl.epp0402.contact.epp_ContactNameAddress _m_i15d_address, org.openrtk.idl.epp0402.contact.epp_ContactPhone _m_voice, org.openrtk.idl.epp0402.contact.epp_ContactPhone _m_fax, String _m_email, org.openrtk.idl.epp0402.epp_AuthInfo _m_auth_info) { m_cmd = _m_cmd; m_id = _m_id; m_ascii_address = _m_ascii_address; m_i15d_address = _m_i15d_address; m_voice = _m_voice; m_fax = _m_fax; m_email = _m_email; m_auth_info = _m_auth_info; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * @deprecated * @see #setId(String) */ public void setRoid(String value) { setId(value); } /** * @deprecated * @see #getId() */ public String getRoid() { return getId(); } /** * Accessor method for the identifier for the contact to be created * @param value The contact id * @see #m_id */ public void setId(String value) { m_id = value; } /** * Accessor method for the identifier for the contact to be created * @return The contact id * @see #m_id */ public String getId() { return m_id; } /** * Accessor method for the ascii contact name and address to be associated with the contact object * @param value The contact ascii name and address * @see #m_ascii_address */ public void setAsciiAddress(org.openrtk.idl.epp0402.contact.epp_ContactNameAddress value) { m_ascii_address = value; } /** * Accessor method for the ascii contact name and address to be associated with the contact object * @return The contact ascii name and address * @see #m_ascii_address */ public org.openrtk.idl.epp0402.contact.epp_ContactNameAddress getAsciiAddress() { return m_ascii_address; } /** * Accessor method for the i15d contact name and address to be associated with the contact object * @param value The contact i15d name and address * @see #m_i15d_address */ public void setI15dAddress(org.openrtk.idl.epp0402.contact.epp_ContactNameAddress value) { m_i15d_address = value; } /** * Accessor method for the i15d contact name and address to be associated with the contact object * @return The contact i15d name and address * @see #m_i15d_address */ public org.openrtk.idl.epp0402.contact.epp_ContactNameAddress getI15dAddress() { return m_i15d_address; } /** * Accessor method for the telephone number of the contact * @param value The contact's telephone number * @see #m_voice */ public void setVoice(org.openrtk.idl.epp0402.contact.epp_ContactPhone value) { m_voice = value; } /** * Accessor method for the telephone number of the contact * @return The contact's telephone number * @see #m_voice */ public org.openrtk.idl.epp0402.contact.epp_ContactPhone getVoice() { return m_voice; } /** * Accessor method for the fax number of the contact * @param value The contact's fax number * @see #m_fax */ public void setFax(org.openrtk.idl.epp0402.contact.epp_ContactPhone value) { m_fax = value; } /** * Accessor method for the fax number of the contact * @param value The contact's fax number * @see #m_fax */ // included String version for backward compatibility public void setFax(String value) { m_fax = new org.openrtk.idl.epp0402.contact.epp_ContactPhone("",value); } /** * Accessor method for the fax number of the contact * @return The contact's fax number * @see #m_fax */ public org.openrtk.idl.epp0402.contact.epp_ContactPhone getFax() { return m_fax; } /** * Accessor method for the e-mail address of the contact * @param value The contact's e-mail address * @see #m_email */ public void setEmail(String value) { m_email = value; } /** * Accessor method for the e-mail address of the contact * @return The contact's e-mail address * @see #m_email */ public String getEmail() { return m_email; } /** * Accessor method for the authorization information to be associated with the contact object * @param value The contact auth info * @see #m_auth_info */ public void setAuthInfo(org.openrtk.idl.epp0402.epp_AuthInfo value) { m_auth_info = value; } /** * Accessor method for the authorization information to be associated with the contact object * @return The contact auth info * @see #m_auth_info */ public org.openrtk.idl.epp0402.epp_AuthInfo getAuthInfo() { return m_auth_info; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_id ["+m_id+"] m_ascii_address ["+m_ascii_address+"] m_i15d_address ["+m_i15d_address+"] m_voice ["+m_voice+"] m_fax ["+m_fax+"] m_email ["+m_email+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_ContactCreateReq --- NEW FILE: epp_ContactCreateRsp.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.epp0402.contact; /** * Class that contains the elements used to represent the contact create * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPContactCreate * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactCreateRsp.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactCreate * @see org.openrtk.idl.epp0402.contact.epp_ContactCreateReq */ public class epp_ContactCreateRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * The identifier for the contact object in the registry. * @see #setId(String) * @see #getId() */ public String m_id = null; /** * Empty constructor */ public epp_ContactCreateRsp () { } // ctor /** * The constructor with initializing variables. * @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.epp0402.epp_Response _m_rsp, String _m_id) { m_rsp = _m_rsp; m_id = _m_id; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * @deprecated * @see #setId(String) */ public void setRoid(String value) { setId(value); } /** * @deprecated * @see #getId() */ public String getRoid() { return getId(); } /** * Accessor method for the identifier for the contact object in the registry * @param value The contact id * @see #m_id */ public void setId(String value) { m_id = value; } /** * Accessor method for the identifier for the contact object in the registry * @return The contact id * @see #m_id */ public String getId() { return m_id; } /** * 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 --- NEW FILE: epp_ContactDelete.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.epp0402.contact; /** * Master external interface for the implementor of the EPP Contact Delete command.</p> * The interface brings together epp_ContactDeleteOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactDelete.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactDelete */ public interface epp_ContactDelete extends epp_ContactDeleteOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactDelete --- NEW FILE: epp_ContactDeleteOperations.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.epp0402.contact; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_ContactDelete is implemented by EPPContactDelete. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactDeleteOperations.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see org.openrtk.idl.epp0402.contact.epp_ContactDelete */ public interface epp_ContactDeleteOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Contact Delete EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Contact Delete EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.contact.epp_ContactDeleteReq parms); /** * Accessor for the data representing EPP response from a server for the * contact delete command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_ContactDeleteRsp. * @returns The Contact Delete response */ org.openrtk.idl.epp0402.contact.epp_ContactDeleteRsp getResponseData (); } // interface epp_ContactDeleteOperations --- NEW FILE: epp_ContactDeleteReq.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.epp0402.contact; /** * Class that contains the elements necessary to delete a contact * in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactDeleteReq.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactDelete * @see org.openrtk.idl.epp0402.contact.epp_ContactDeleteRsp */ public class epp_ContactDeleteReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The identifier for the contact object to be deleted in the registry. * @see #setId(String) * @see #getId() */ public String m_id = null; /** * Empty constructor */ public epp_ContactDeleteReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_id The identifier for the contact object to be deleted */ public epp_ContactDeleteReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_id) { m_cmd = _m_cmd; m_id = _m_id; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * @deprecated * @see #setId(String) */ public void setRoid(String value) { setId(value); } /** * @deprecated * @see #getId() */ public String getRoid() { return getId(); } /** * Accessor method for the identifier for the contact object to be deleted * @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 to be deleted * @return The contact id * @see #m_id */ public String getId() { return m_id; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_id ["+m_id+"] }"; } } // class epp_ContactDeleteReq --- NEW FILE: epp_ContactDeleteRsp.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.epp0402.contact; /** * Class that contains the elements used to represent the contact delete * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPContactDelete * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactDeleteRsp.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactDelete * @see org.openrtk.idl.epp0402.contact.epp_ContactDeleteReq */ public class epp_ContactDeleteRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * Empty constructor */ public epp_ContactDeleteRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element */ public epp_ContactDeleteRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_ContactDeleteRsp --- NEW FILE: epp_ContactInfo.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.epp0402.contact; /** * Master external interface for the implementor of the EPP Contact Info command.</p> * The interface brings together epp_ContactInfoOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactInfo.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactInfo */ public interface epp_ContactInfo extends epp_ContactInfoOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactInfo --- NEW FILE: epp_ContactInfoOperations.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.epp0402.contact; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_ContactInfo is implemented by EPPContactInfo. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactInfoOperations.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see org.openrtk.idl.epp0402.contact.epp_ContactInfo */ public interface epp_ContactInfoOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Contact Info EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Contact Info EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.contact.epp_ContactInfoReq parms); /** * Accessor for the data representing EPP response from a server for the * contact info command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_ContactInfoRsp. * @returns The Contact Info response */ org.openrtk.idl.epp0402.contact.epp_ContactInfoRsp getResponseData (); } // interface epp_ContactInfoOperations --- NEW FILE: epp_ContactInfoReq.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.epp0402.contact; /** * Class that contains the elements necessary to retrieve detailed * information associated with a contact in the registry.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactInfoReq.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactInfo * @see org.openrtk.idl.epp0402.contact.epp_ContactInfoRsp */ public class epp_ContactInfoReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.epp_Command m_cmd = null; /** * The identifier for the contact object to be queried. * @see #setId(String) * @see #getId() */ public String m_id = null; /** * Empty constructor */ public epp_ContactInfoReq () { } // ctor /** * The constructor with initializing variables. * @param _m_cmd The common and generic command element * @param _m_id The identifier for the contact object to be queried */ public epp_ContactInfoReq (org.openrtk.idl.epp0402.epp_Command _m_cmd, String _m_id) { m_cmd = _m_cmd; m_id = _m_id; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * @deprecated * @see #setId(String) */ public void setRoid(String value) { setId(value); } /** * @deprecated * @see #getId() */ public String getRoid() { return getId(); } /** * Accessor method for the identifier for the contact object to be queried * @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 to be queried * @return The contact id * @see #m_id */ public String getId() { return m_id; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_id ["+m_id+"] }"; } } // class epp_ContactInfoReq --- NEW FILE: epp_ContactInfoRsp.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.epp0402.contact; /** * Class that contains the elements used to represent the contact info * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPContactInfo * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/contact/epp_ContactInfoRsp.java,v 1.1 2003/03/21 16:35:40 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:40 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPContactInfo * @see org.openrtk.idl.epp0402.contact.epp_ContactInfoReq */ public class epp_ContactInfoRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.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 repository object identifier associated with the domain object. * @see #setRoid(String) * @see #getRoid() */ public String m_roid = null; /** * The contact name and address associated with the contact object. * Content of this element must be represented in a subset of UTF-8. * @see #setAsciiAddress(org.openrtk.idl.epp0402.contact.epp_ContactNameAddress) * @see #getAsciiAddress() */ public org.openrtk.idl.epp0402.contact.epp_ContactNameAddress m_ascii_address = null; /** * The contact name and address associated with the contact object. * Content of this element may be represented in unrestricted UTF-8. * @see #setI15dAddress(org.openrtk.idl.epp0402.contact.epp_ContactNameAddress) * @see #getI15dAddress() */ public org.openrtk.idl.epp0402.contact.epp_ContactNameAddress m_i15d_address = null; /** * The contact's telephone number. * @see #setVoice(org.openrtk.idl.epp0402.contact.epp_ContactPhone) * @see #getVoice() */ public org.openrtk.idl.epp0402.contact.epp_ContactPhone m_voice = null; /** * The contact's fax number. * @see #setFax(org.openrtk.idl.epp0402.contact.epp_ContactPhone) * @see #getFax() */ public org.openrtk.idl.epp0402.contact.epp_ContactPhone m_fax = null; /** * The contact's e-mail address. * @see #setEmail(String) * @see #getEmail() */ public String m_email = null; /** * The array of status associated with the contact object. * @see #setStatus(org.openrtk.idl.epp0402.contact.epp_ContactStatus[]) * @see #getStatus() */ public org.openrtk.idl.epp0402.contact.epp_ContactStatus m_status[] = null; /** * The identifier of the sponsoring client. * @see #setClientId(String) * @see #getClientId() */ public String m_client_id = null; /** * The identifier of the client that created the contact object. * @see #setCreatedBy(String) * @see #getCreatedBy() */ public String m_created_by = null; /** * The creation date of the contact object. * @see #setCreatedDate(String) * @see #getCreatedDate() */ public String m_created_date = null; /** * The identifier of the client that last updated the contact object. * @see #setUpdatedBy(String) * @see #getUpdatedBy() */ public String m_updated_by = null; /** * The most recent modification date of the contact object. * @see #setUpdatedDate(String) * @see #getUpdatedDate() */ public String m_updated_date = null; /** * The most recent transfer date of the contact object. * @see #setTransferDate(String) * @see #getTransferDate() */ public String m_transfer_date = null; /** * The authorization information associated with the contact object. * @see #setAuthInfo(org.openrtk.idl.epp0402.epp_AuthInfo) * @see #getAuthInfo() */ public org.openrtk.idl.epp0402.epp_AuthInfo m_auth_info = null; /** * Empty constructor */ public epp_ContactInfoRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element * @param _m_id The identifier for the contact object in the registry * @param _m_roid The repository object identifier associated with the domain object * @param _m_ascii_address The ascii contact name and address associated with the contact object * @param _m_i15d_address The i15d contact name and address associated with the contact object * @param _m_voice The contact's telephone number * @param _m_fax The contact's fax number * @param _m_email The contact's e-mail address * @param _m_status The array of status associated with the contact object * @param _m_client_id The identifier of the sponsoring client * @param _m_created_by The identifier of the client that created the contact object * @param _m_created_date The creation date of the contact object * @param _m_updated_by The identifier of the client that last updated the contact object * @param _m_updated_date The most recent modification date of the contact object * @param _m_transfer_date The most recent transfer date of the contact object * @param _m_auth_info The authorization information associated with the contact object */ public epp_ContactInfoRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp, String _m_id, String _m_roid, org.openrtk.idl.epp0402.contact.epp_ContactNameAddress _m_ascii_address, org.openrtk.idl.epp0402.contact.epp_ContactNameAddress _m_i15d_address, org.openrtk.idl.epp0402.contact.epp_ContactPhone _m_voice, org.openrtk.idl.epp0402.contact.epp_ContactPhone _m_fax, String _m_email, org.openrtk.idl.epp0402.contact.epp_ContactStatus[] _m_status, String _m_client_id, String _m_created_by, String _m_created_date, String _m_updated_by, String _m_updated_date, String _m_transfer_date, org.openrtk.idl.epp0402.epp_AuthInfo _m_auth_info) { m_rsp = _m_rsp; m_id = _m_id; m_roid = _m_roid; m_ascii_address = _m_ascii_address; m_i15d_address = _m_i15d_address; m_voice = _m_voice; m_fax = _m_fax; m_email = _m_email; m_status = _m_status; m_client_id = _m_client_id; m_created_by = _m_created_by; m_created_date = _m_created_date; m_updated_by = _m_updated_by; m_updated_date = _m_updated_date; m_transfer_date = _m_transfer_date; m_auth_info = _m_auth_info; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Accessor method for the identifier for the contact object in the registry * @param value The contact id * @see #m_id */ public void setId(String value) { m_id = value; } /** * Accessor method for the identifier for the contact object in the registry * @return The contact id * @see #m_id */ public String getId() { return m_id; } /** * Accessor method for the repository object identifier associated with the domain object * @param value The contact roid * @see #m_roid */ public void setRoid(String value) { m_roid = value; } /** ... [truncated message content] |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402 In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/org/openrtk/idl/epp0402 Added Files: epp_Action.java epp_ActionOperations.java epp_AuthInfo.java epp_AuthInfoType.java epp_CheckResult.java epp_Command.java epp_Credentials.java epp_Exception.java epp_Greeting.java epp_Hello.java epp_HelloOperations.java epp_Login.java epp_LoginOperations.java epp_LoginReq.java epp_LoginRsp.java epp_Logout.java epp_LogoutOperations.java epp_LogoutReq.java epp_LogoutRsp.java epp_MessageQueue.java epp_Options.java epp_Poll.java epp_PollOpType.java epp_PollOperations.java epp_PollReq.java epp_PollResData.java epp_PollResDataOperations.java epp_PollRsp.java epp_Response.java epp_Result.java epp_Service.java epp_Session.java epp_SessionOperations.java epp_TransID.java epp_TransferOpType.java epp_TransferRequest.java epp_TransferStatusType.java epp_Unspec.java epp_UnspecOperations.java epp_XMLException.java Log Message: pulled in epp0402 java classes --- NEW FILE: epp_Action.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.epp0402; /** * Internal IDL interface which is never referenced externally.</p> * The interface is extended by all the master external interfaces * for the EPP commands, and implemented by all the implementors of the * EPP commands.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Action.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:38 $<br> * @see org.openrtk.idl.epp0402.epp_Login */ public interface epp_Action extends epp_ActionOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { } // interface epp_Action --- NEW FILE: epp_ActionOperations.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.epp0402; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_Action is extended by all the master external interfaces * for the EPP commands, and implemented by all the implementors of the * EPP commands.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_ActionOperations.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:38 $<br> * @see org.openrtk.idl.epp0402.epp_Action */ public interface epp_ActionOperations { /** * Builds request XML from the request data of the EPP command. * @return the xml String. * @throws epp_XMLException if required data is missing. * @throws epp_Exception if an error occurs. */ String toXML () throws org.openrtk.idl.epp0402.epp_Exception, org.openrtk.idl.epp0402.epp_XMLException; /** * Parses XML String returned by EPP server and populates the response data member. * @param xml The response xml String. * @throws epp_XMLException if required data is missing. * @throws epp_Exception if an error occurs. */ void fromXML (String xml) throws org.openrtk.idl.epp0402.epp_Exception, org.openrtk.idl.epp0402.epp_XMLException; } // interface epp_ActionOperations --- NEW FILE: epp_AuthInfo.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.epp0402; /** * Class that contains the authorization information required to authorize transfer * requests to the EPP server.</p> * The authorization information must be provided by client when creating EPP Domain * and Contact objects.</p> * Currently, only one type is permitted: PW (password).</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_AuthInfo.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:38 $<br> * @see org.openrtk.idl.epp0402.epp_TransferRequest * @see org.openrtk.idl.epp0402.domain.epp_DomainCreateReq * @see org.openrtk.idl.epp0402.domain.epp_DomainUpdateChange */ public class epp_AuthInfo implements org.omg.CORBA.portable.IDLEntity { /** * The authorization information type. * @see #setType(org.openrtk.idl.epp0402.epp_AuthInfoType) * @see #getType() */ public org.openrtk.idl.epp0402.epp_AuthInfoType m_type = null; /** * The authorizing object's repository object identifier. * Only used in transfer requests and only if the registry * permits "third-party" authorization for a transfer. That is, * for example, using an admin contact's auth info to authorize a * transfer of a domain to which it is associated. Note, that * no currently existing registries support this option. * @see #setRoid(String) * @see #getRoid() */ public String m_roid = null; /** * The authorizing object's passphrase. * If the m_roid value is null, then the current object is the * authorizing object. * @see #setValue(String) * @see #getValue() */ public String m_value = null; /** * Empty constructor */ public epp_AuthInfo () { } // ctor /** * The constructor with initializing variables. * @param _m_type The authorization information type * @param _m_roid The authorizing object's repository object identifier * @param _m_value The authorizing object's passphrase */ public epp_AuthInfo (org.openrtk.idl.epp0402.epp_AuthInfoType _m_type, String _m_roid, String _m_value) { m_type = _m_type; m_roid = _m_roid; m_value = _m_value; } // ctor /** * Accessor method for the authorization information type * @param value The authorization information type * @see #m_type */ public void setType(org.openrtk.idl.epp0402.epp_AuthInfoType value) { m_type = value; } /** * Accessor method for the authorization information type * @return The authorization information type * @see #m_type */ public org.openrtk.idl.epp0402.epp_AuthInfoType getType() { return m_type; } /** * Accessor method for the authorizing object's repository object identifier * @param value The authorizing object's roid * @see #m_roid */ public void setRoid(String value) { m_roid = value; } /** * Accessor method for the authorizing object's repository object identifier * @return The authorizing object's roid * @see #m_roid */ public String getRoid() { return m_roid; } /** * Accessor method for the authorizing object's passphrase * @param value The authorizing object's passphrase * @see #m_value */ public void setValue(String value) { m_value = value; } /** * Accessor method for the authorizing object's passphrase * @return The authorizing object's passphrase * @see #m_value */ public String getValue() { return m_value; } /** * 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_roid ["+m_roid+"] m_value ["+m_value+"] }"; } } // class epp_AuthInfo --- NEW FILE: epp_AuthInfoType.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.epp0402; /** * Class defining constant instances of authorization information types * generic for all objects.</p> * Used in conjunction with the epp_AuthInfo class to indicate the object * authorization information.</p> * Currently, only one type is permitted: PW (password).</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_AuthInfoType.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:38 $<br> * @see org.openrtk.idl.epp0402.epp_AuthInfo */ public class epp_AuthInfoType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 1; private static org.openrtk.idl.epp0402.epp_AuthInfoType[] __array = new org.openrtk.idl.epp0402.epp_AuthInfoType [__size]; /** * Integer value representing the PW authorization information type. * @see #PW */ public static final int _PW = 0; /** * Instance of epp_AuthInfoType representing the PW authorization information type. * Used directly with epp_AuthInfo. * @see org.openrtk.idl.epp0402.epp_AuthInfo */ public static final org.openrtk.idl.epp0402.epp_AuthInfoType PW = new org.openrtk.idl.epp0402.epp_AuthInfoType(_PW); /** * Accessor method for the internal integer representing the type of authorization information. * @return The integer value of this authorization information type */ public int value () { return __value; } /** * Transform an integer into a epp_AuthInfoType constant. * Given the integer representation of the authorization information type, * returns one of the authorization information type constants. * @param value The integer value for the desired authorization information type */ public static org.openrtk.idl.epp0402.epp_AuthInfoType 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 authorization information type array. * @param value The integer value for the desired authorization information type */ protected epp_AuthInfoType (int value) { __value = value; __array[__value] = this; } } // class epp_AuthInfoType --- NEW FILE: epp_CheckResult.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.epp0402; /** * Class that contains the elements generic to all the check command responses.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_CheckResult.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:38 $<br> * @see org.openrtk.idl.epp0402.domain.epp_DomainCheckRsp#getResults() * @see org.openrtk.idl.epp0402.host.epp_HostCheckRsp#getResults() * @see org.openrtk.idl.epp0402.contact.epp_ContactCheckRsp#getResults() */ public class epp_CheckResult implements org.omg.CORBA.portable.IDLEntity { /** * The boolean value indicating whether an object exists in the registry or not. * @see #setExists(boolean) * @see #getExists() */ public boolean m_exists = false; /** * The identifier or name of the object checked in the registry. * @see #setValue(String) * @see #getValue() */ public String m_value = null; /** * Empty constructor */ public epp_CheckResult () { } // ctor /** * The constructor with initializing variables. * @param _m_exists The boolean value indicating whether an object exists in the registry or not * @param _m_value The identifier or name of the object checked in the registry */ public epp_CheckResult (boolean _m_exists, String _m_value) { m_exists = _m_exists; m_value = _m_value; } // ctor /** * Accessor method for the boolean value indicating whether an object exists in the registry or not * @param value The boolean value indicating whether an object exists in the registry or not * @see #m_exists */ public void setExists(boolean value) { m_exists = value; } /** * Accessor method for the boolean value indicating whether an object exists in the registry or not * @return The boolean value indicating whether an object exists in the registry or not * @see #m_exists */ public boolean getExists() { return m_exists; } /** * Accessor method for the identifier or name of the object checked in the registry * @param value The identifier or name of the object * @see #m_value */ public void setValue(String value) { m_value = value; } /** * Accessor method for the identifier or name of the object checked in the registry * @return The identifier or name of the object * @see #m_value */ public String getValue() { return m_value; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_exists ["+m_exists+"] m_value ["+m_value+"] }"; } } // class epp_CheckResult --- NEW FILE: epp_Command.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.epp0402; /** * Class that contains the common and generic elements necessary for an EPP * command sending to the server.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Command.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:38 $<br> * @see org.openrtk.idl.epp0402.epp_LoginReq#setCmd(epp_Command) * @see org.openrtk.idl.epp0402.domain.epp_DomainCreateReq#setCmd(epp_Command) */ public class epp_Command implements org.omg.CORBA.portable.IDLEntity { /** * The element that provides client identity information. * @see #setCreds(org.openrtk.idl.epp0402.epp_Credentials) * @see #getCreds() */ public org.openrtk.idl.epp0402.epp_Credentials m_creds = null; /** * The optional command extensions. * @see #setUnspec(org.openrtk.idl.epp0402.epp_Unspec) * @see #getUnspec() */ public org.openrtk.idl.epp0402.epp_Unspec m_unspec = null; /** * The client transaction identifier assigned by the client to the command. * @see #setClientTrid(String) * @see #getClientTrid() */ public String m_client_trid = null; /** * Empty constructor */ public epp_Command () { } // ctor /** * The constructor with initializing variables. * @param _m_creds The element that provides client identity information * @param _m_unspec The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ public epp_Command (org.openrtk.idl.epp0402.epp_Credentials _m_creds, org.openrtk.idl.epp0402.epp_Unspec _m_unspec, String _m_client_trid) { m_creds = _m_creds; m_unspec = _m_unspec; m_client_trid = _m_client_trid; } // ctor /** * Accessor method for the element that provides client identity information * @param value The client identity credentials * @see #m_creds */ public void setCreds(org.openrtk.idl.epp0402.epp_Credentials value) { m_creds = value; } /** * Accessor method for the element that provides client identity information * @return The client identity credentials * @see #m_creds */ public org.openrtk.idl.epp0402.epp_Credentials getCreds() { return m_creds; } /** * Accessor method for the optional command extensions * @param value The optional command extensions * @see #m_unspec */ public void setUnspec(org.openrtk.idl.epp0402.epp_Unspec value) { m_unspec = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions * @see #m_unspec */ public org.openrtk.idl.epp0402.epp_Unspec getUnspec() { return m_unspec; } /** * Accessor method for the client transaction identifier assigned by the client to the command * @param value The client transaction identifier * @see #m_client_trid */ public void setClientTrid(String value) { m_client_trid = value; } /** * Accessor method for the client transaction identifier assigned by the client to the command * @return The client transaction identifier * @see #m_client_trid */ public String getClientTrid() { return m_client_trid; } /** * 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_creds ["+m_creds+"] m_unspec ["+m_unspec+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_Command --- NEW FILE: epp_Credentials.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.epp0402; /** * Class that contains client identity information necessary to establish * a session with the EPP server.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Credentials.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:38 $<br> * @see org.openrtk.idl.epp0402.epp_Command */ public class epp_Credentials implements org.omg.CORBA.portable.IDLEntity { /** * The client identifier created on the server. * @see #setClientId(String) * @see #getClientId() */ public String m_client_id = null; /** * The client password. * @see #setPassword(String) * @see #getPassword() */ public String m_password = null; /** * The new client password to be used for the future session establishment. * @see #setNewPassword(String) * @see #getNewPassword() */ public String m_new_password = null; /** * The options element that contains client's choices on the protocol version and response language * @see #setOptions(org.openrtk.idl.epp0402.epp_Options) * @see #getOptions() */ public org.openrtk.idl.epp0402.epp_Options m_options = null; /** * Empty constructor */ public epp_Credentials () { } // ctor /** * The constructor with initializing variables. * @param _m_client_id The client identifier created on the server * @param _m_password The client password * @param _m_new_password The new client password * @param _m_options The options element that contains client's choices */ public epp_Credentials (String _m_client_id, String _m_password, String _m_new_password, org.openrtk.idl.epp0402.epp_Options _m_options) { m_client_id = _m_client_id; m_password = _m_password; m_new_password = _m_new_password; m_options = _m_options; } // ctor /** * Accessor method for the client identifier created on the server * @param value The client identifier * @see #m_client_id */ public void setClientId(String value) { m_client_id = value; } /** * Accessor method for the client identifier created on the server * @return The client identifier * @see #m_client_id */ public String getClientId() { return m_client_id; } /** * Accessor method for the client password * @param value The password * @see #m_password */ public void setPassword(String value) { m_password = value; } /** * Accessor method for the client password * @return The password * @see #m_password */ public String getPassword() { return m_password; } /** * Accessor method for the new client password * @param value The new password * @see #m_new_password */ public void setNewPassword(String value) { m_new_password = value; } /** * Accessor method for the new client password * @return The new password * @see #m_new_password */ public String getNewPassword() { return m_new_password; } /** * Accessor method for the options element that contains client's choices * @param value The options element * @see #m_options */ public void setOptions(org.openrtk.idl.epp0402.epp_Options value) { m_options = value; } /** * Accessor method for the options element that contains client's choices * @return The options element * @see #m_options */ public org.openrtk.idl.epp0402.epp_Options getOptions() { return m_options; } /** * 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_client_id ["+m_client_id+"] m_password ["+m_password+"] m_new_password ["+m_new_password+"] m_options ["+m_options+"] }"; } } // class epp_Credentials --- NEW FILE: epp_Exception.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.epp0402; /** * Class that acts as a container for any exception thrown if a communication error * occurs with the EPP server or if the EPP server returns an error code.</p> * An EPP response code is considered an error code if the numeric value * is greater than or equal to 2000. Communication errors are not official EPP errors * but the sake of consistency, they have been defined in the RTK with values * in the 2600-2699 range. The error codes and symbolic names for these are defined * in epp_Action. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Exception.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> */ public class epp_Exception extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity { /** * The array of error details. * @see #setDetails(org.openrtk.idl.epp0402.epp_Result[]) * @see #getDetails() */ public org.openrtk.idl.epp0402.epp_Result m_details[] = null; /** * Empty constructor */ public epp_Exception () { } // ctor /** * The constructor with initializing variables. * @param _m_details The array of error details */ public epp_Exception (org.openrtk.idl.epp0402.epp_Result[] _m_details) { m_details = _m_details; } // ctor /** * Accessor method for the array of error details * @param value The array of error details * @see #m_details */ public void setDetails(org.openrtk.idl.epp0402.epp_Result[] value) { m_details = value; } /** * Accessor method for the array of error details * @return The array of error details * @see #m_details */ public org.openrtk.idl.epp0402.epp_Result[] getDetails() { return m_details; } /** * 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_details ["+(m_details != null ? java.util.Arrays.asList(m_details) : null)+"] }"; } } // class epp_Exception --- NEW FILE: epp_Greeting.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.epp0402; /** * Class that contains elements to state the EPP server's abilities.</p> * 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: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Greeting.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting#getResponseData() * @see com.tucows.oxrs.epp.rtk.EPPClient#getGreeting() * @see com.tucows.oxrs.epp.rtk.EPPClient#hello() */ public class epp_Greeting implements org.omg.CORBA.portable.IDLEntity { /** * The name of the server. * @see #setServerId(String) * @see #getServerId() */ public String m_server_id = null; /** * The server's current date and time in UTC. * @see #setServerDate(String) * @see #getServerDate() */ 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.epp0402.epp_Service[]) * @see #getServices() */ public org.openrtk.idl.epp0402.epp_Service m_services[] = null; /** * The array of custom object extensions supported by the server. * @see #setUnspecServices(org.openrtk.idl.epp0402.epp_Service[]) * @see #getUnspecServices() */ public org.openrtk.idl.epp0402.epp_Service m_unspec_services[] = null; /** * Empty constructor */ public epp_Greeting () { } // ctor /** * The constructor with initializing variables. * @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.epp0402.epp_Service[] _m_services, org.openrtk.idl.epp0402.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 /** * Accessor method for the name of the server * @param value The name of the server * @see #m_server_id */ public void setServerId(String value) { m_server_id = value; } /** * Accessor method for the name of the server * @return The name of the server * @see #m_server_id */ public String getServerId() { return m_server_id; } /** * Accessor method for the server's current date and time in UTC * @param value The server's current date and time * @see #m_server_date */ public void setServerDate(String value) { m_server_date = value; } /** * Accessor method for the server's current date and time in UTC * @return The server's current date and time * @see #m_server_date */ public String getServerDate() { return m_server_date; } /** * 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.epp0402.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.epp0402.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.epp0402.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.epp0402.epp_Service[] getUnspecServices() { return m_unspec_services; } /** * 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_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 --- NEW FILE: epp_Hello.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.epp0402; /** * Master external interface for the implementor of the EPP Hello request.</p> * The interface brings together epp_HelloOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Hello.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public interface epp_Hello extends epp_HelloOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Hello --- NEW FILE: epp_HelloOperations.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.epp0402; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_Hello is implemented by EPPGreeting. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_HelloOperations.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see org.openrtk.idl.epp0402.epp_Hello */ public interface epp_HelloOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Accessor for the data representing EPP greeting response from a * server in response to the hello request issued by the client * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_Greeting. * @returns The Greeting element */ org.openrtk.idl.epp0402.epp_Greeting getResponseData (); } // interface epp_HelloOperations --- NEW FILE: epp_Login.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.epp0402; /** * Master external interface for the implementor of the EPP Login command.</p> * The interface brings together epp_LoginOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Login.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogin */ public interface epp_Login extends epp_LoginOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Login --- NEW FILE: epp_LoginOperations.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.epp0402; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_Login is implemented by EPPLogin. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_LoginOperations.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see org.openrtk.idl.epp0402.epp_Login */ public interface epp_LoginOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Login EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Login EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.epp_LoginReq data); /** * Accessor for the data representing EPP response from a server for the * login command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_LoginRsp. * @return The Login response */ org.openrtk.idl.epp0402.epp_LoginRsp getResponseData (); } // interface epp_LoginOperations --- NEW FILE: epp_LoginReq.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.epp0402; /** * Class that contains the elements necessary to establish a session with * an EPP server.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_LoginReq.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogin * @see org.openrtk.idl.epp0402.epp_LoginRsp */ public class epp_LoginReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0402.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0402.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.epp0402.epp_Service[]) * @see #getServices() */ public org.openrtk.idl.epp0402.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.epp0402.epp_Service[]) * @see #getUnspecServices() */ public org.openrtk.idl.epp0402.epp_Service m_unspec_services[] = null; /** * Empty constructor */ public epp_LoginReq () { } // ctor /** * The constructor with initializing variables. * @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.epp0402.epp_Command _m_cmd, org.openrtk.idl.epp0402.epp_Service[] _m_services, org.openrtk.idl.epp0402.epp_Service[] _m_unspec_services) { m_cmd = _m_cmd; m_services = _m_services; m_unspec_services = _m_unspec_services; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0402.epp_Command value) { m_cmd = value; } /** * Accessor method for the common and generic command element * @return The command element * @see #m_cmd */ public org.openrtk.idl.epp0402.epp_Command getCmd() { return m_cmd; } /** * 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.epp0402.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.epp0402.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.epp0402.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.epp0402.epp_Service[] getUnspecServices() { return m_unspec_services; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_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 --- NEW FILE: epp_LoginRsp.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.epp0402; /** * Class that contains the elements used to represent the login * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPLogin * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_LoginRsp.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogin * @see org.openrtk.idl.epp0402.epp_LoginReq */ public class epp_LoginRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * Empty constructor */ public epp_LoginRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element */ public epp_LoginRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_LoginRsp --- NEW FILE: epp_Logout.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.epp0402; /** * Master external interface for the implementor of the EPP Logout command.</p> * The interface brings together epp_LogoutOperations, epp_Action and standard * IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_Logout.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogout */ public interface epp_Logout extends epp_LogoutOperations, org.openrtk.idl.epp0402.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Logout --- NEW FILE: epp_LogoutOperations.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.epp0402; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_Logout is implemented by EPPLogout. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_LogoutOperations.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see org.openrtk.idl.epp0402.epp_Logout */ public interface epp_LogoutOperations extends org.openrtk.idl.epp0402.epp_ActionOperations { /** * Sets the request data for an outgoing Logout EPP request. * The implementor of this method is responsible for translating * the request parms into equivalent Logout EPP XML. * @param parms The EPP request data */ void setRequestData (org.openrtk.idl.epp0402.epp_LogoutReq data); /** * Accessor for the data representing EPP response from a server for the * logout command. * The implementor of this method is responsible for translating * the response EPP XML into an instance of epp_LogoutRsp. * @returns The Logout response */ org.openrtk.idl.epp0402.epp_LogoutRsp getResponseData (); } // interface epp_LogoutOperations --- NEW FILE: epp_LogoutReq.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.epp0402; /** * Class that contains the elements necessary to end a session with the EPP server.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_LogoutReq.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogout * @see org.openrtk.idl.epp0402.epp_LogoutRsp */ public class epp_LogoutReq implements org.omg.CORBA.portable.IDLEntity { /** * The optional command extensions. * @see #setUnspec(org.openrtk.idl.epp0402.epp_Unspec) * @see #getUnspec() */ public org.openrtk.idl.epp0402.epp_Unspec m_unspec = null; /** * The client transaction identifier assigned by the client to the command. * @see #setClientTrid(String) * @see #getClientTrid() */ public String m_client_trid = null; /** * Empty constructor */ public epp_LogoutReq () { } // ctor /** * The constructor with initializing variables. * @param _m_unspec The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ public epp_LogoutReq (org.openrtk.idl.epp0402.epp_Unspec _m_unspec, String _m_client_trid) { m_unspec = _m_unspec; m_client_trid = _m_client_trid; } // ctor /** * Accessor method for the optional command extensions * @param value The optional command extensions * @see #m_unspec */ public void setUnspec(org.openrtk.idl.epp0402.epp_Unspec value) { m_unspec = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions * @see #m_unspec */ public org.openrtk.idl.epp0402.epp_Unspec getUnspec() { return m_unspec; } /** * Accessor method for the client transaction identifier assigned by the client to the command * @param value The client transaction identifier * @see #m_client_trid */ public void setClientTrid(String value) { m_client_trid = value; } /** * Accessor method for the client transaction identifier assigned by the client to the command * @return The client transaction identifier * @see #m_client_trid */ public String getClientTrid() { return m_client_trid; } /** * 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_unspec ["+m_unspec+"] m_client_trid ["+m_client_trid+"] }"; } } // class epp_LogoutReq --- NEW FILE: epp_LogoutRsp.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.epp0402; /** * Class that contains the elements used to represent the logout * response from the EPP server.</p> * Note usually instantiated by the RTK user, but rather by EPPLogout * and retrieved using that class' getResponseData() method.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_LogoutRsp.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogout * @see org.openrtk.idl.epp0402.epp_LogoutReq */ public class epp_LogoutRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0402.epp_Response m_rsp = null; /** * Empty constructor */ public epp_LogoutRsp () { } // ctor /** * The constructor with initializing variables. * @param _m_rsp The common and generic response element */ public epp_LogoutRsp (org.openrtk.idl.epp0402.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor /** * Accessor method for the common and generic response element. * @param value The new value for the response element * @see #m_rsp */ public void setRsp(org.openrtk.idl.epp0402.epp_Response value) { m_rsp = value; } /** * Accessor method for the common and generic response element. * @return The value for the response element * @see #m_rsp */ public org.openrtk.idl.epp0402.epp_Response getRsp() { return m_rsp; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_LogoutRsp --- NEW FILE: epp_MessageQueue.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.epp0402; /** * Class that contains elements necessary to present status of the service messages * queued in the EPP server for client retrieval.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/epp_MessageQueue.java,v 1.1 2003/03/21 16:35:39 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:39 $<br> * @see org.openrtk.idl.epp0402.epp_Response#setMessageQueue(epp_MessageQueue) */ public class epp_MessageQueue implements org.omg.CORBA.portable.IDLEntity { /** * The number of the service messages queued in EPP server for client retrieval. * @see #setCount(int) * @see #getCount() */ public int m_count = (int)0; /** * The date and time that a particular message was enqueued. * Only be present when returning a message in a poll response * @see #setQueueDate(String) * @see #getQueueDate() */ public String m_queue_date = null; /** * Empty constructor */ public epp_MessageQueue () { } // ctor /** * The construct... [truncated message content] |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/com/tucows/oxrs/epp0402/rtk/xml Added Files: EPPContactBase.java EPPContactCheck.java EPPContactCreate.java EPPContactDelete.java EPPContactInfo.java EPPContactTransfer.java EPPContactUpdate.java EPPDomainBase.java EPPDomainCheck.java EPPDomainCreate.java EPPDomainDelete.java EPPDomainInfo.java EPPDomainRenew.java EPPDomainTransfer.java EPPDomainUpdate.java EPPGreeting.java EPPHostBase.java EPPHostCheck.java EPPHostCreate.java EPPHostDelete.java EPPHostInfo.java EPPHostUpdate.java EPPLogin.java EPPLogout.java EPPPoll.java EPPXMLBase.java EPPXMLErrors.java Log Message: pulled in epp0402 java classes --- NEW FILE: EPPContactBase.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/EPPContactBase.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.xml; import java.io.*; import java.util.*; import com.tucows.oxrs.epp0402.rtk.*; import org.openrtk.idl.epp0402.epp_XMLException; import org.openrtk.idl.epp0402.contact.*; import org.openrtk.idl.epp0402.epp_Exception; import org.openrtk.idl.epp0402.epp_XMLException; import org.openrtk.idl.epp0402.epp_TransferStatusType; import org.w3c.dom.*; /** * Base abstract class for the Contact classes. Defines common methods and data members * used by all or most Contact classes. */ public abstract class EPPContactBase extends EPPXMLBase { /** * Hashtable to allow for conversion from String contact status to * epp_ContactStatusType. * @see The EPP IDL epp_contact.idl for the definition of the epp_ContactStatusType enum */ protected static Hashtable contact_status_hash_; /** * Default Constructor. */ protected EPPContactBase() { initHashes(); } /** * Constructor with the XML String. */ protected EPPContactBase(String xml) { super(xml); initHashes(); } public static void initHashes() { initContactStatusHash(); } public static void initContactStatusHash() { if ( contact_status_hash_ == null ) { contact_status_hash_ = new Hashtable(); contact_status_hash_.put("clientDeleteProhibited", epp_ContactStatusType.CLIENT_DELETE_PROHIBITED); contact_status_hash_.put("serverDeleteProhibited", epp_ContactStatusType.SERVER_DELETE_PROHIBITED); contact_status_hash_.put("clientTransferProhibited", epp_ContactStatusType.CLIENT_TRANSFER_PROHIBITED); contact_status_hash_.put("serverTransferProhibited", epp_ContactStatusType.SERVER_TRANSFER_PROHIBITED); contact_status_hash_.put("clientUpdateProhibited", epp_ContactStatusType.CLIENT_UPDATE_PROHIBITED); contact_status_hash_.put("serverUpdateProhibited", epp_ContactStatusType.SERVER_UPDATE_PROHIBITED); contact_status_hash_.put("linked", epp_ContactStatusType.LINKED); contact_status_hash_.put("ok", epp_ContactStatusType.OK); contact_status_hash_.put("pendingDelete", epp_ContactStatusType.PENDING_DELETE); contact_status_hash_.put("pendingTransfer", epp_ContactStatusType.PENDING_TRANSFER); } } /** * Sets the common XML attributes required for the contact object (eg. xmlns:contact, xsi:schemaLocation) * @param The contact action Element (eg Element with tag name "contact:create") */ 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"); } /** * Converts a given epp_ContactNameAddress to an XML Element. * If any of the data members of the epp_ContactNameAddress are null * then they are not included in the Element. If they are empty Strings * then they are included as empty Elements. * @param Document the Document instance that is creating the Elements * @param String the overall contact name/address tag name (eg. "contact:ascii") * @param epp_ContactNameAddress the name/address data to use in the Elements * @return Element the resulting contact name/address Element */ protected Element addressToXML(Document doc, String tag_name, epp_ContactNameAddress name_address) throws epp_XMLException { String method_name = "addressToXML(Document, String, epp_ContactNameAddress)"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); Element name_address_element = null; if ( name_address != null ) { name_address_element = doc.createElement(tag_name); if ( name_address.m_name != null ) { addXMLElement(doc, name_address_element, "contact:name", name_address.m_name); } if ( name_address.m_org != null ) { addXMLElement(doc, name_address_element, "contact:org", name_address.m_org); } if ( name_address.m_address != null ) { epp_ContactAddress address = name_address.m_address; Element address_element = doc.createElement("contact:addr"); // Because this method is used by contact create and update, // the lowest common denominator (update), says that all // members are optional. if ( address.m_street1 != null ) { addXMLElement(doc, address_element, "contact:street", address.m_street1); } if ( address.m_street2 != null ) { addXMLElement(doc, address_element, "contact:street", address.m_street2); } if ( address.m_street3 != null ) { addXMLElement(doc, address_element, "contact:street", address.m_street3); } if ( address.m_city != null ) { addXMLElement(doc, address_element, "contact:city", address.m_city); } if ( address.m_state_province != null ) { addXMLElement(doc, address_element, "contact:sp", address.m_state_province); } if ( address.m_postal_code != null ) { addXMLElement(doc, address_element, "contact:pc", address.m_postal_code); } if ( address.m_country_code != null ) { addXMLElement(doc, address_element, "contact:cc", address.m_country_code); } if ( address_element.getChildNodes().getLength() > 0 ) { name_address_element.appendChild(address_element); } } } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return name_address_element; } /** * Convenience method to get a contact status string from an * epp_ContactStatusType object. */ public static String contactStatusToString(epp_ContactStatusType status_type) { return status_type.toString(); } /** * Convenience method to convert a string status to an instance of * epp_ContactStatusType. */ public static epp_ContactStatusType contactStatusFromString(String s) { 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; } } --- NEW FILE: EPPContactCheck.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/EPPContactCheck.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.xml; import java.io.*; import java.util.*; import com.tucows.oxrs.epp0402.rtk.*; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.contact.*; 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.*; /** * Class for the EPP Contact Check command and response. * Extends the epp_ContactCheck interface from the EPP IDLs to provide * the XML translation for the EPP Contact Check command.</P> * The Check command provides a way of telling if an object exists in the registry server.</P> * Usage is demonstrated in the com.tucows.oxrs.epp0402.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp0402.rtk.example.ContactExample * @see org.openrtk.idl.epp0402.epp_Action * @see org.openrtk.idl.epp0402.contact.epp_ContactCheck * @see org.openrtk.idl.epp0402.contact.epp_ContactCheckReq * @see org.openrtk.idl.epp0402.contact.epp_ContactCheckRsp * @see EPP Contact Spec for more information */ public class EPPContactCheck extends EPPContactBase implements epp_ContactCheck { private epp_ContactCheckReq action_request_; private epp_ContactCheckRsp action_response_; /** * Default constructor */ public EPPContactCheck () {} /** * Constructor with response XML string to automatically parse. * @param xml The EPP Contact Check response XML String * @throws org.openrtk.idl.epp0402.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see #fromXML(String) */ public EPPContactCheck (String xml) throws epp_XMLException, epp_Exception { String method_name = "EPPContactCheck(String)"; debug(DEBUG_LEVEL_TWO,method_name,"xml is ["+xml+"]"); fromXML(xml); } /** * Accessor method for the contact check request data. * Must be set to for this command. * @param value org.openrtk.idl.epp0402.epp_ContactCheckReq */ public void setRequestData(epp_ContactCheckReq value) { action_request_ = value; } /** * Accessor method for the contact check response data. * @return value org.openrtk.idl.epp0402.epp_ContactCheckRsp */ public epp_ContactCheckRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactCheckReq) * @see org.openrtk.idl.epp0402.epp_Action */ public String toXML() throws epp_XMLException { String method_name = "buildRequestXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if ( action_request_ == null || action_request_.m_cmd == null || action_request_.m_ids == null || action_request_.m_ids.length == 0 ) { throw new epp_XMLException("missing request data"); } Document doc = new DocumentImpl(); Element root = createDocRoot(doc); Element command = doc.createElement("command"); Element check = doc.createElement("check"); epp_Command command_data = action_request_.m_cmd; if ( command_data.m_creds != null ) { command.appendChild( prepareCreds( doc, command_data.m_creds ) ); } Element contact_check = doc.createElement("contact:check"); setCommonAttributes(contact_check); List contact_ids = Arrays.asList(action_request_.m_ids); for (Iterator it = contact_ids.iterator(); it.hasNext();) { String contact_id = (String)it.next(); addXMLElement(doc, contact_check, "contact:id", contact_id); } check.appendChild( contact_check ); 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 ) { addXMLElement(doc, command, "clTRID", command_data.m_client_trid); } root.appendChild( command ); doc.appendChild( root ); String request_xml; try { request_xml = createXMLFromDoc(doc); } catch (IOException xcp) { throw new epp_XMLException("IOException in building XML ["+xcp.getMessage()+"]"); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return request_xml; } /** * Parses a new XML String and populates the response data member. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @param A new XML String to parse * @throws epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp0402.epp_Action */ public void fromXML(String xml) throws epp_XMLException, epp_Exception { String method_name = "fromXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); xml_ = xml; try { Element epp_node = getDocumentElement(); Node response_node = epp_node.getElementsByTagName("response").item(0); if ( response_node == null ) { throw new epp_XMLException("unparsable or missing response"); } action_response_ = new epp_ContactCheckRsp(); action_response_.m_rsp = parseGenericResult(response_node); if ( action_response_.m_rsp.m_results[0].m_code >= epp_Session.EPP_UNKNOWN_COMMAND ) { throw new epp_Exception(action_response_.m_rsp.m_results); } Element response_data_element = getElement(response_node.getChildNodes(), "resData"); NodeList contact_check_result_list = response_data_element.getElementsByTagName("contact:chkData").item(0).getChildNodes(); debug(DEBUG_LEVEL_TWO,method_name,"contact:chkData's node count ["+contact_check_result_list.getLength()+"]"); if ( contact_check_result_list.getLength() == 0 ) { throw new epp_XMLException("missing check results"); } List check_list = (List) new ArrayList(); for (int count = 0; count < contact_check_result_list.getLength(); count++) { Node a_node = contact_check_result_list.item(count); epp_CheckResult check_result = new epp_CheckResult(); check_result.m_value = a_node.getFirstChild().getNodeValue(); check_result.m_exists = ( ((Element)a_node).getAttribute("x").equals("+") ? true : false ); check_list.add(check_result); } action_response_.m_results = (epp_CheckResult[]) convertListToArray((new epp_CheckResult()).getClass(), check_list); } catch (SAXException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } } } --- NEW FILE: EPPContactCreate.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/EPPContactCreate.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp0402.rtk.*; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.contact.*; 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.*; /** * Class for the EPP Contact Create command and response. * Extends the epp_ContactCreate interface from the EPP IDLs to provide * the XML translation for the EPP Contact Create command.</P> * The Create command allows a client to create an instance of an EPP object in the server.</P> * Usage is demonstrated in the com.tucows.oxrs.epp0402.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp0402.rtk.example.ContactExample * @see org.openrtk.idl.epp0402.epp_Action * @see org.openrtk.idl.epp0402.contact.epp_ContactCreate * @see org.openrtk.idl.epp0402.contact.epp_ContactCreateReq * @see org.openrtk.idl.epp0402.contact.epp_ContactCreateRsp * @see EPP Contact Spec for more information */ public class EPPContactCreate extends EPPContactBase implements epp_ContactCreate { private epp_ContactCreateReq action_request_; private epp_ContactCreateRsp action_response_; /** * Default constructor */ public EPPContactCreate () {} /** * Constructor with response XML string to automatically parse. * @param xml The EPP Contact Create response XML String * @throws org.openrtk.idl.epp0402.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see #fromXML(String) */ public EPPContactCreate (String xml) throws epp_XMLException, epp_Exception { String method_name = "EPPContactCreate(String)"; debug(DEBUG_LEVEL_TWO,method_name,"xml is ["+xml+"]"); fromXML(xml); } /** * Accessor method for the contact create request data. * Must be set to for this command. * @param value org.openrtk.idl.epp0402.epp_ContactCreateReq */ public void setRequestData(epp_ContactCreateReq value) { action_request_ = value; } /** * Accessor method for the contact create response data. * @return value org.openrtk.idl.epp0402.epp_ContactCreateRsp */ public epp_ContactCreateRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactCreateReq) * @see org.openrtk.idl.epp0402.epp_Action */ public String toXML() throws epp_XMLException { String method_name = "buildRequestXML(EPPTransID)"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if ( action_request_ == null || action_request_.m_cmd == null ) { throw new epp_XMLException("missing request data"); } Document doc = new DocumentImpl(); Element root = createDocRoot(doc); Element command = doc.createElement("command"); Element create = doc.createElement("create"); epp_Command command_data = action_request_.m_cmd; if ( command_data.m_creds != null ) { command.appendChild( prepareCreds( doc, command_data.m_creds ) ); } Element contact_create = doc.createElement("contact:create"); setCommonAttributes(contact_create); if ( action_request_.m_id == null ) { throw new epp_XMLException( "missing contact id" ); } addXMLElement(doc, contact_create, "contact:id", action_request_.m_id); Element ascii_address = addressToXML(doc, "contact:ascii", action_request_.m_ascii_address); if ( ascii_address != null ) { contact_create.appendChild(ascii_address); } Element i15d_address = addressToXML(doc, "contact:i15d", action_request_.m_i15d_address); if ( i15d_address != null ) { contact_create.appendChild(i15d_address); } if ( action_request_.m_voice != null ) { Element voice = addXMLElement(doc, contact_create, "contact:voice", action_request_.m_voice.m_value); if ( action_request_.m_voice.m_extension != null ) { voice.setAttribute("x", action_request_.m_voice.m_extension); } } if ( action_request_.m_fax != null ) { Element voice = addXMLElement(doc, contact_create, "contact:fax", action_request_.m_fax.m_value); if ( action_request_.m_fax.m_extension != null ) { voice.setAttribute("x", action_request_.m_fax.m_extension); } } if ( action_request_.m_email != null ) { addXMLElement(doc, contact_create, "contact:email", action_request_.m_email); } if ( action_request_.m_auth_info == null ) { throw new epp_XMLException( "missing auth info" ); } contact_create.appendChild( prepareAuthInfo( doc, "contact:authInfo", action_request_.m_auth_info ) ); create.appendChild( contact_create ); command.appendChild( create ); command.appendChild( prepareUnspecElement( doc, command_data.m_unspec ) ); if ( command_data.m_client_trid != null ) { addXMLElement(doc, command, "clTRID", command_data.m_client_trid); } root.appendChild( command ); doc.appendChild( root ); String request_xml; try { request_xml = createXMLFromDoc(doc); } catch (IOException xcp) { throw new epp_XMLException("IOException in building XML ["+xcp.getMessage()+"]"); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return request_xml; } /** * Parses a new XML String and populates the response data member. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @param A new XML String to parse * @throws epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp0402.epp_Action */ public void fromXML(String xml) throws epp_XMLException, epp_Exception { String method_name = "fromXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); xml_ = xml; try { Element epp_node = getDocumentElement(); Node response_node = epp_node.getElementsByTagName("response").item(0); if ( response_node == null ) { throw new epp_XMLException("unparsable or missing response"); } action_response_ = new epp_ContactCreateRsp(); action_response_.m_rsp = parseGenericResult(response_node); if ( action_response_.m_rsp.m_results[0].m_code >= epp_Session.EPP_UNKNOWN_COMMAND ) { throw new epp_Exception(action_response_.m_rsp.m_results); } Element response_data_element = getElement(response_node.getChildNodes(), "resData"); NodeList contact_create_data_list = response_data_element.getElementsByTagName("contact:creData").item(0).getChildNodes(); debug(DEBUG_LEVEL_TWO,method_name,"contact:creData's node count ["+contact_create_data_list.getLength()+"]"); if ( contact_create_data_list == null || contact_create_data_list.getLength() == 0 ) { throw new epp_XMLException("missing contact create response data"); } for (int count = 0; count < contact_create_data_list.getLength(); count++) { Node a_node = contact_create_data_list.item(count); if ( a_node.getNodeName().equals("contact:id") ) { action_response_.m_id = a_node.getFirstChild().getNodeValue(); } } } catch (SAXException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } } } --- NEW FILE: EPPContactDelete.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/EPPContactDelete.java,v 1.1 2003/03/21 16:35:36 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:36 $ */ package com.tucows.oxrs.epp0402.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp0402.rtk.*; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.contact.*; 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.*; /** * Class for the EPP Contact Delete command and response. * Extends the epp_ContactDelete interface from the EPP IDLs to provide * the XML translation for the EPP Contact Delete command.</P> * The Delete command allows a client to destroy an instance of an EPP object in the server. * The deletion of an EPP object is subject to constraints as stated in the EPP Spec.</P> * the XML translation for the EPP Contact Delete command. * Usage is demonstrated in the com.tucows.oxrs.epp0402.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp0402.rtk.example.ContactExample * @see org.openrtk.idl.epp0402.epp_Action * @see org.openrtk.idl.epp0402.contact.epp_ContactDelete * @see org.openrtk.idl.epp0402.contact.epp_ContactDeleteReq * @see org.openrtk.idl.epp0402.contact.epp_ContactDeleteRsp * @see EPP Contact Spec for more information */ public class EPPContactDelete extends EPPContactBase implements epp_ContactDelete { private epp_ContactDeleteReq action_request_; private epp_ContactDeleteRsp action_response_; /** * Default constructor */ public EPPContactDelete () {} /** * Constructor with response XML string to automatically parse. * @param xml The EPP Contact Delete response XML String * @throws org.openrtk.idl.epp0402.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see #fromXML(String) */ public EPPContactDelete (String xml) throws epp_XMLException, epp_Exception { String method_name = "EPPContactDelete(String)"; debug(DEBUG_LEVEL_TWO,method_name,"xml is ["+xml+"]"); fromXML(xml); } /** * Accessor method for the contact delete request data. * Must be set to for this command. * @param value org.openrtk.idl.epp0402.epp_ContactDeleteReq */ public void setRequestData(epp_ContactDeleteReq value) { action_request_ = value; } /** * Accessor method for the contact check response data. * @return value org.openrtk.idl.epp0402.epp_ContactDeleteRsp */ public epp_ContactDeleteRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactDeleteReq) * @see org.openrtk.idl.epp0402.epp_Action */ public String toXML() throws epp_XMLException { String method_name = "buildRequestXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if ( action_request_ == null || action_request_.m_cmd == null || action_request_.m_id == null ) { throw new epp_XMLException("missing request data or contact id"); } Document doc = new DocumentImpl(); Element root = createDocRoot(doc); Element command = doc.createElement("command"); Element delete = doc.createElement("delete"); epp_Command command_data = action_request_.m_cmd; if ( command_data.m_creds != null ) { command.appendChild( prepareCreds( doc, command_data.m_creds ) ); } Element contact_delete = doc.createElement("contact:delete"); setCommonAttributes(contact_delete); addXMLElement(doc, contact_delete, "contact:id", action_request_.m_id); delete.appendChild( contact_delete ); 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 ) { addXMLElement(doc, command, "clTRID", command_data.m_client_trid); } root.appendChild( command ); doc.appendChild( root ); String request_xml; try { request_xml = createXMLFromDoc(doc); } catch (IOException xcp) { throw new epp_XMLException("IOException in building XML ["+xcp.getMessage()+"]"); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return request_xml; } /** * Parses a new XML String and populates the response data member. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @param A new XML String to parse * @throws epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp0402.epp_Action */ public void fromXML(String xml) throws epp_XMLException, epp_Exception { String method_name = "fromXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); xml_ = xml; try { Element epp_node = getDocumentElement(); Node response_node = epp_node.getElementsByTagName("response").item(0); if ( response_node == null ) { throw new epp_XMLException("unparsable or missing response"); } action_response_ = new epp_ContactDeleteRsp(); action_response_.m_rsp = parseGenericResult(response_node); if ( action_response_.m_rsp.m_results[0].m_code >= epp_Session.EPP_UNKNOWN_COMMAND ) { throw new epp_Exception(action_response_.m_rsp.m_results); } } catch (SAXException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } } } --- NEW FILE: EPPContactInfo.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/EPPContactInfo.java,v 1.1 2003/03/21 16:35:36 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:36 $ */ package com.tucows.oxrs.epp0402.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp0402.rtk.*; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.contact.*; 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.*; /** * Class for the EPP Contact Info command and response. * Extends the epp_ContactInfo interface from the EPP IDLs to provide * the XML translation for the EPP Contact Info command.</P> * The Info command provides a way of retrieving extended information on an object. * Usage is demonstrated in the com.tucows.oxrs.epp0402.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp0402.rtk.example.ContactExample * @see org.openrtk.idl.epp0402.epp_Action * @see org.openrtk.idl.epp0402.contact.epp_ContactInfo * @see org.openrtk.idl.epp0402.contact.epp_ContactInfoReq * @see org.openrtk.idl.epp0402.contact.epp_ContactInfoRsp * @see EPP Contact Spec for more information */ public class EPPContactInfo extends EPPContactBase implements epp_ContactInfo { private epp_ContactInfoReq action_request_; private epp_ContactInfoRsp action_response_; /** * Default constructor */ public EPPContactInfo () {} /** * Constructor with response XML string to automatically parse. * @param xml The EPP Contact Info response XML String * @throws org.openrtk.idl.epp0402.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see #fromXML(String) */ public EPPContactInfo (String xml) throws epp_XMLException, epp_Exception { String method_name = "EPPContactInfo(String)"; debug(DEBUG_LEVEL_TWO,method_name,"xml is ["+xml+"]"); fromXML(xml); } /** * Accessor method for the contact info request data. * Must be set to for this command. * @param value org.openrtk.idl.epp0402.epp_ContactInfoReq */ public void setRequestData(epp_ContactInfoReq value) { action_request_ = value; } /** * Accessor method for the contact info response data. * @return value org.openrtk.idl.epp0402.epp_ContactInfoRsp */ public epp_ContactInfoRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactInfoReq) * @see org.openrtk.idl.epp0402.epp_Action */ public String toXML() throws epp_XMLException { String method_name = "buildRequestXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if ( action_request_ == null || action_request_.m_cmd == null || action_request_.m_id == null ) { throw new epp_XMLException("missing request data or contact id"); } Document doc = new DocumentImpl(); Element root = createDocRoot(doc); Element command = doc.createElement("command"); Element info = doc.createElement("info"); epp_Command command_data = action_request_.m_cmd; if ( command_data.m_creds != null ) { command.appendChild( prepareCreds( doc, command_data.m_creds ) ); } Element contact_info = doc.createElement("contact:info"); setCommonAttributes(contact_info); addXMLElement(doc, contact_info, "contact:id", action_request_.m_id); info.appendChild( contact_info ); 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 ) { addXMLElement(doc, command, "clTRID", command_data.m_client_trid); } root.appendChild( command ); doc.appendChild( root ); String request_xml; try { request_xml = createXMLFromDoc(doc); } catch (IOException xcp) { throw new epp_XMLException("IOException in building XML ["+xcp.getMessage()+"]"); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return request_xml; } /** * Parses a new XML String and populates the response data member. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @param xml A new XML String to parse * @throws epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp0402.epp_Action */ public void fromXML(String xml) throws epp_XMLException, epp_Exception { String method_name = "fromXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); xml_ = xml; try { Element epp_node = getDocumentElement(); Node response_node = epp_node.getElementsByTagName("response").item(0); if ( response_node == null ) { throw new epp_XMLException("unparsable or missing response"); } action_response_ = new epp_ContactInfoRsp(); action_response_.m_rsp = parseGenericResult(response_node); if ( action_response_.m_rsp.m_results[0].m_code >= epp_Session.EPP_UNKNOWN_COMMAND ) { throw new epp_Exception(action_response_.m_rsp.m_results); } Element response_data_element = getElement(response_node.getChildNodes(), "resData"); NodeList contact_info_result_list = response_data_element.getElementsByTagName("contact:infData").item(0).getChildNodes(); debug(DEBUG_LEVEL_TWO,method_name,"contact:infData's node count ["+contact_info_result_list.getLength()+"]"); if ( contact_info_result_list.getLength() == 0 ) { throw new epp_XMLException("missing info results"); } List statuses = (List)new ArrayList(); for (int count = 0; count < contact_info_result_list.getLength(); count++) { Node a_node = contact_info_result_list.item(count); if ( a_node.getNodeName().equals("contact:id") ) { action_response_.m_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:roid") ) { action_response_.m_roid = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:ascii") ) { action_response_.m_ascii_address = addressFromXML(a_node); } if ( a_node.getNodeName().equals("contact:i15d") ) { action_response_.m_i15d_address = addressFromXML(a_node); } if ( a_node.getNodeName().equals("contact:voice") ) { action_response_.m_voice = new epp_ContactPhone(); action_response_.m_voice.m_value = a_node.getFirstChild().getNodeValue(); action_response_.m_voice.m_extension = ((Element)a_node).getAttribute("x"); } if ( a_node.getNodeName().equals("contact:fax") ) { action_response_.m_fax = new epp_ContactPhone(); action_response_.m_fax.m_value = a_node.getFirstChild().getNodeValue(); action_response_.m_fax.m_extension = ((Element)a_node).getAttribute("x"); } if ( a_node.getNodeName().equals("contact:email") ) { action_response_.m_email = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:status") ) { epp_ContactStatus status = new epp_ContactStatus(); Node status_value_node = a_node.getFirstChild(); if ( status_value_node != null ) { status.m_value = status_value_node.getNodeValue(); } status.m_lang = ((Element)a_node).getAttribute("lang"); if ( ! contact_status_hash_.containsKey( ((Element)a_node).getAttribute("s") ) ) { status.m_value = "invalid contact status from server"; status.m_lang = "en-US"; status.m_type = null; } else { status.m_type = (epp_ContactStatusType)contact_status_hash_.get( ((Element)a_node).getAttribute("s") ); } statuses.add(status); } if ( a_node.getNodeName().equals("contact:clID") ) { action_response_.m_client_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:crID") ) { action_response_.m_created_by = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:crDate") ) { action_response_.m_created_date = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:upID") ) { action_response_.m_updated_by = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:upDate") ) { action_response_.m_updated_date = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:trDate") ) { action_response_.m_transfer_date = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:authInfo") ) { action_response_.m_auth_info = new epp_AuthInfo(); action_response_.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); action_response_.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); action_response_.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); } } if ( statuses.size() > 0 ) { action_response_.m_status = (epp_ContactStatus[]) convertListToArray((new epp_ContactStatus()).getClass(), statuses); } } catch (SAXException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } } private epp_ContactNameAddress addressFromXML(Node address_node) throws epp_XMLException { String method_name = "fromXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); epp_ContactNameAddress name_address = new epp_ContactNameAddress(); NodeList address_nodes = address_node.getChildNodes(); for (int count = 0; count < address_nodes.getLength(); count++) { Node a_node = address_nodes.item(count); if ( a_node.getNodeName().equals("contact:name") ) { name_address.m_name = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:org") ) { name_address.m_org = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:addr") ) { epp_ContactAddress address = new epp_ContactAddress(); address.m_street1 = address.m_street2 = address.m_street3 = null; NodeList address_sub_nodes = a_node.getChildNodes(); for (int count2 = 0; count2 < address_sub_nodes.getLength(); count2++) { Node an_inner_node = address_sub_nodes.item(count2); if ( an_inner_node.getNodeName().equals("contact:street") ) { if ( address.m_street1 == null ) { address.m_street1 = an_inner_node.getFirstChild().getNodeValue(); } else if ( address.m_street2 == null ) { address.m_street2 = an_inner_node.getFirstChild().getNodeValue(); } else if ( address.m_street3 == null ) { address.m_street3 = an_inner_node.getFirstChild().getNodeValue(); } // No "else"... just ignoring situation where the // server sends more street values than we expect. } if ( an_inner_node.getNodeName().equals("contact:city") ) { address.m_city = an_inner_node.getFirstChild().getNodeValue(); } if ( an_inner_node.getNodeName().equals("contact:sp") ) { address.m_state_province = an_inner_node.getFirstChild().getNodeValue(); } if ( an_inner_node.getNodeName().equals("contact:pc") ) { address.m_postal_code = an_inner_node.getFirstChild().getNodeValue(); } if ( an_inner_node.getNodeName().equals("contact:cc") ) { address.m_country_code = an_inner_node.getFirstChild().getNodeValue(); } } name_address.m_address = address; } } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return name_address; } } --- NEW FILE: EPPContactTransfer.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/EPPContactTransfer.java,v 1.1 2003/03/21 16:35:36 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:36 $ */ package com.tucows.oxrs.epp0402.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp0402.rtk.*; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.contact.*; 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.*; /** * Class for the EPP Contact Transfer command and response. * Extends the epp_ContactTransfer interface from the EPP IDLs to provide * the XML translation for the EPP Contact Transfer command.</P> * The Transfer command provides a way of changing the ownership of an object * from one sponsor to another. Various transfer operations allow a sponsor * to query the current state of a transfer, or request, approve, cancel or * reject a transfer.</P> * Usage is demonstrated in the com.tucows.oxrs.epp0402.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp0402.rtk.example.ContactExample * @see org.openrtk.idl.epp0402.epp_Action * @see org.openrtk.idl.epp0402.contact.epp_ContactTransfer * @see org.openrtk.idl.epp0402.contact.epp_ContactTransferReq * @see org.openrtk.idl.epp0402.contact.epp_ContactTransferRsp * @see The General EPP Spec and the EPP Contact Spec for more information on the Transfer command */ public class EPPContactTransfer extends EPPContactBase implements epp_ContactTransfer { private epp_ContactTransferReq action_request_; private epp_ContactTransferRsp action_response_; /** * Default constructor */ public EPPContactTransfer () {} /** * Constructor with response XML string to automatically parse. * @param xml The EPP Contact Transfer response XML String * @throws org.openrtk.idl.epp0402.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see #fromXML(String) */ public EPPContactTransfer (String xml) throws epp_XMLException, epp_Exception { String method_name = "EPPContactTransfer(String)"; debug(DEBUG_LEVEL_TWO,method_name,"xml is ["+xml+"]"); fromXML(xml); } /** * Accessor method for the contact transfer request data. * Must be set to for this command. * @param value org.openrtk.idl.epp0402.epp_ContactTransferReq */ public void setRequestData(epp_ContactTransferReq value) { action_request_ = value; } /** * Accessor method for the contact transfer response data. * @param value org.openrtk.idl.epp0402.epp_ContactTransferRsp */ public epp_ContactTransferRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactTransferReq) * @see org.openrtk.idl.epp0402.epp_Action */ public String toXML() throws epp_XMLException { String method_name = "toXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if ( action_request_ == null || action_request_.m_cmd == null || action_request_.m_trans == null || action_request_.m_id == null ) { throw new epp_XMLException("missing request data or contact id"); } epp_Command command_data = action_request_.m_cmd; epp_TransferRequest transfer_request_data = action_request_.m_trans; if ( transfer_request_data.m_op == null ) { debug(DEBUG_LEVEL_TWO,method_name,"transfer op is null, so assuming query"); transfer_request_data.m_op = epp_TransferOpType.QUERY; } Document doc = new DocumentImpl(); Element root = createDocRoot(doc); Element command = doc.createElement("command"); if ( command_data.m_creds != null ) { command.appendChild( prepareCreds( doc, command_data.m_creds ) ); } Element transfer = doc.createElement("transfer"); transfer.setAttribute("op", transfer_request_data.m_op.toString()); Element contact_transfer = doc.createElement("contact:transfer"); setCommonAttributes(contact_transfer); addXMLElement(doc, contact_transfer, "contact:id", action_request_.m_id); transfer.appendChild( contact_transfer ); if ( transfer_request_data.m_auth_info != null ) { contact_transfer.appendChild( prepareAuthInfo( doc, "contact:authInfo", transfer_request_data.m_auth_info ) ); } else if ( transfer_request_data.m_op == epp_TransferOpType.REQUEST ) { throw new epp_XMLException("missing request auth id"); } 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 ) { addXMLElement(doc, command, "clTRID", command_data.m_client_trid); } root.appendChild( command ); doc.appendChild( root ); String request_xml; try { request_xml = createXMLFromDoc(doc); } catch (IOException xcp) { throw new epp_XMLException("IOException in building XML ["+xcp.getMessage()+"]"); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return request_xml; } /** * Parses a new XML String and populates the response data member. * Implemented method from org.openrtk.idl.epp0402.epp_Action interface. * @param A new XML String to parse * @throws epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp0402.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp0402.epp_Action */ public void fromXML(String xml) throws epp_XMLException, epp_Exception { String method_name = "fromXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); xml_ = xml; try { Element epp_node = getDocumentElement(); Node response_node = epp_node.getElementsByTagName("response").item(0); if ( response_node == null ) { throw new epp_XMLException("unparsable or missing response"); } action_response_ = new epp_ContactTransferRsp(); action_response_.m_rsp = parseGenericResult(response_node); if ( action_response_.m_rsp.m_results[0].m_code >= epp_Session.EPP_UNKNOWN_COMMAND ) { throw new epp_Exception(action_response_.m_rsp.m_results); } Element response_data_element = getElement(response_node.getChildNodes(), "resData"); NodeList contact_transfer_data_list = response_data_element.getElementsByTagName("contact:trnData").item(0).getChildNodes(); debug(DEBUG_LEVEL_TWO,method_name,"contact:trnData's node count ["+contact_transfer_data_list.getLength()+"]"); if ( contact_transfer_data_list.getLength() == 0 ) { throw new epp_XMLException("missing contact transfer data"); } action_response_.m_trn_data = getTrnData(contact_transfer_data_list); } catch (SAXException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw new epp_XMLException("unable to parse xml ["+xcp.getClass().getNam... [truncated message content] |
From: Daniel M. <tub...@us...> - 2003-03-21 16:35:42
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/poll In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/com/tucows/oxrs/epp0402/rtk/xml/poll Added Files: PollResData.java contacttrnData.java domaintrnData.java Log Message: pulled in epp0402 java classes --- NEW FILE: PollResData.java --- package com.tucows.oxrs.epp0402.rtk.xml.poll; import org.openrtk.idl.epp0402.epp_PollResData; import org.openrtk.idl.epp0402.epp_XMLException; import org.w3c.dom.Node; /** * This interface is used by EPPPoll to instantiate a Poll parser * class without having to rely on a particular classname. * Implementors of this class have to be able to populate * an epp_PollResData structure (via fromXML()) and should * be able to pass this data back (via getPollResData()). */ public interface PollResData { /** * Converts a poll response data sub node (and its children nodes * to the appropriate epp struct depending on the implementing class. * An example of a res data subnode would be "domain:transfer". */ public void fromXML(Node res_data_sub_node) throws epp_XMLException; /** * Returns the epp_PollResData that was populated in the call * to "fromXML()". */ public epp_PollResData getPollResData(); } --- NEW FILE: 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 com.tucows.oxrs.epp0402.rtk.xml.poll; import com.tucows.oxrs.epp0402.rtk.xml.EPPXMLBase; import com.tucows.oxrs.epp0402.rtk.xml.EPPContactBase; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.contact.epp_ContactTrnData; import org.w3c.dom.*; /** * An implementation of PollResData for contact transfer poll * response data. * Populates the epp_PollResData with the epp_PollResDataUnion * and m_contact_transfer member set.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/poll/contacttrnData.java,v 1.1 2003/03/21 16:35:37 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:37 $<br> */ public class contacttrnData extends EPPXMLBase implements PollResData { private epp_ContactTrnData poll_res_data_; /** * Populates the poll res data with epp_PollContactTransfer * data. */ public void fromXML(Node res_data_sub_node) throws epp_XMLException { String method_name = "fromXML(Node)"; 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()+"]"); if ( contact_transfer_data_list.getLength() == 0 ) { throw new epp_XMLException("missing contact transfer data"); } poll_res_data_ = EPPContactBase.getTrnData(contact_transfer_data_list); } /** * Returns the epp_PollResData private member. * Should only be called after a successful fromXML() * otherwise, the poll res data will be null. */ public epp_PollResData getPollResData() { return poll_res_data_; } } --- NEW FILE: domaintrnData.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package com.tucows.oxrs.epp0402.rtk.xml.poll; import com.tucows.oxrs.epp0402.rtk.xml.EPPXMLBase; import com.tucows.oxrs.epp0402.rtk.xml.EPPDomainBase; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.domain.epp_DomainTrnData; import org.w3c.dom.*; /** * An implementation of PollResData for contact transfer poll * response data. * Populates the epp_PollResData with the epp_PollResDataUnion * and m_domain_transfer member set.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/poll/domaintrnData.java,v 1.1 2003/03/21 16:35:37 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:35:37 $<br> */ public class domaintrnData extends EPPXMLBase implements PollResData { private epp_DomainTrnData poll_res_data_; /** * Populates the poll res data with epp_PollDomainTransfer * data. */ public void fromXML(Node res_data_node) throws epp_XMLException { String method_name = "fromXML(Node)"; NodeList domain_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()+"]"); if ( domain_transfer_data_list.getLength() == 0 ) { throw new epp_XMLException("missing domain transfer data"); } poll_res_data_ = EPPDomainBase.getTrnData(domain_transfer_data_list); } /** * Returns the epp_PollResData private member. * Should only be called after a successful fromXML() * otherwise, the poll res data will be null. */ public epp_PollResData getPollResData() { return poll_res_data_; } } |
From: Daniel M. <tub...@us...> - 2003-03-21 16:35:42
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/unspec In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/com/tucows/oxrs/epp0402/rtk/xml/unspec Added Files: RTKVersion.java Log Message: pulled in epp0402 java classes --- 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/epp0402/rtk/xml/unspec/RTKVersion.java,v 1.1 2003/03/21 16:35:38 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:38 $ */ package com.tucows.oxrs.epp0402.rtk.xml.unspec; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp0402.rtk.*; import com.tucows.oxrs.epp0402.rtk.xml.*; import org.openrtk.idl.epp0402.*; 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: 2003/03/21 16:35:38 $ */ public class RTKVersion extends EPPXMLBase implements epp_Unspec { /** * Default constructor */ public RTKVersion() { } /** * Returns RTK version number. * * @return String */ public static String getVersion() { return RTKBase.RTK_VERSION; } /** * Converts the RTK version number into XML to be put into the unspec * section of the request. * Implemented method from org.openrrc.rtk.epp.epp_Unspec interface. * * @throws org.openrtk.idl.epp0402.epp_XMLException if required data is missing * @see org.openrtk.idl.epp0402.epp_Unspec */ public String toXML() throws epp_XMLException { String method_name = "toXML()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); Document doc = new DocumentImpl(); Element rtktag = doc.createElement( "rtk" ); Element vernum = doc.createElement( "version" ); vernum.appendChild( doc.createTextNode( RTK_VERSION ) ); rtktag.appendChild( vernum ); doc.appendChild( rtktag ); String ver_xml; try { ver_xml = createXMLFromDoc( doc ); } catch( IOException xcp ) { throw new epp_XMLException( "IOException in building XML [" + xcp.getMessage() + "]" ); } debug( DEBUG_LEVEL_THREE, method_name, "Returning:\"" + ver_xml + "\"" ); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return ver_xml; } /** * Parses an XML String of test number data from the unspec section of * a response from the Registry. * Implemented method from org.openrrc.rtk.epp.epp_Unspec interface. * <br><b>NOTE:</b> this method is empty because RTK version number will * never be send from server side to the client. * * @param A new test number Unspec XML String to parse * @throws org.openrtk.idl.epp0402.epp_XMLException if the response XML is not parsable or does not contain the expected data * @see org.openrtk.idl.epp0402.epp_Action */ public void fromXML( String xml ) throws epp_XMLException { } } // end of class com.tucows.oxrs.epp0402.rtk.xml.unspec.RTKVersion |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/com/tucows/oxrs/epp0402/rtk/transport Added Files: EPPTransportBase.java EPPTransportException.java EPPTransportSMTP.java EPPTransportTCP.java EPPTransportTCPTLS.java Log Message: pulled in epp0402 java classes --- NEW FILE: EPPTransportBase.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport/EPPTransportBase.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.transport; import com.tucows.oxrs.epp0402.rtk.*; import java.io.*; import java.net.*; import org.openrtk.idl.epp0402.*; /** * Base abstract class for the Transport classes. Defines common methods * and data members used by all or most Transport classes. */ public abstract class EPPTransportBase extends RTKBase { /** * The Host name of the EPP server. */ protected String epp_host_name_; /** * The Host port of the EPP server. */ protected int epp_host_port_; /** * The timeout to apply to persistent connections to the server. */ protected int epp_timeout_; /** * The default timeout in waiting for server responses. * Set to 20 seconds. */ public static final int DEFAULT_SOCKET_TIMEOUT = 20000; /** * Default constructor -- */ public EPPTransportBase() { } /** * Constructor with EPP Hostname, EPP Host port, and timeout. * Note that the timeout value might not have any effect * on particular transports. See the documentation of the * transport you wish to use to verify. * @param epp_host_name The EPP Hostname (eg. "host.domain.tld") * @param epp_host_port The EPP port * @param epp_timeout The timeout in milliseconds to apply to the connection. */ public EPPTransportBase(String epp_host_name, int epp_host_port, int epp_timeout) { epp_host_name_ = epp_host_name; epp_host_port_ = epp_host_port; epp_timeout_ = epp_timeout; } /** * Constructor with EPP Hostname and EPP Host port. * Default timeout value will be used, if applicable. * @param epp_host_name The EPP Hostname (eg. "host.domain.tld") * @param epp_host_port The EPP port */ public EPPTransportBase(String epp_host_name, int epp_host_port) { this(epp_host_name, epp_host_port, DEFAULT_SOCKET_TIMEOUT); } /** * Initializes the transport object with host name, host port and * timeout. * Note that the timeout value might not be applicable to all * transport subclasses. * @param epp_host_name The EPP Hostname (eg. "host.domain.tld") * @param epp_host_port The EPP port * @param epp_timeout The timeout value in milliseconds. */ public void initialize(String epp_host_name, int epp_host_port, int epp_timeout) { epp_host_name_ = epp_host_name; epp_host_port_ = epp_host_port; epp_timeout_ = epp_timeout; } /** * Accessor method for the EPP Hostname * @param value The hostname string (eg. "host.domain.tld" or "100.101.200.201") */ public void setEPPHostName(String value) { epp_host_name_ = value; } /** * Accessor method for the EPP Hostname * @return The EPP host name String */ public String getEPPHostName() { return epp_host_name_; } /** * Accessor method for the EPP Host port * @param value The int port value */ public void setEPPHostPort(int value) { epp_host_port_ = value; } /** * Accessor method for the EPP Host port */ public int getEPPHostPort() { return epp_host_port_; } /** * Accessor method for the EPP server timeout, in milliseconds * @param value The int timeout value, in milliseconds */ public void setEPPTimeout(int value) { epp_timeout_ = value; } /** * Accessor method for the EPP server timeout, in milliseconds */ public int getEPPTimeout() { return epp_timeout_; } /** * Establishes the connection to the Server * Abstract method to be implemented by subclasses. Though * in some subclasses (like SMTP) this method might not have * any effect. * @throws SocketException * @throws IOException * @throws UnknownHostException */ public abstract void connect() throws SocketException, IOException, UnknownHostException; /** * Closes the connection to the Server * Abstract method to be implemented by subclasses. Though * in some subclasses (like SMTP) this method might not have * any effect. * @throws IOException */ public abstract void disconnect() throws IOException; /** * Reads from the Server * Abstract method to be implemented by subclasses. * For asynchronous transports, like SMTP, this method should be * periodically called to "check mail". * @return The EPP message from the server. * @throws epp_Exception */ public abstract String readFromServer() throws epp_Exception; /** * Writes to the Server * Abstract method to be implemented by subclasses. * @param string_to_server The EPP message to the server. * @throws epp_Exception */ public abstract void writeToServer(String string_to_server) throws epp_Exception; } --- NEW FILE: EPPTransportException.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport/EPPTransportException.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.transport; /** * This class groups all exceptions having to do with the instantiation of * transports in EPPClient, such a ClassNotFoundException, * InstantiationException, etc... */ public class EPPTransportException extends Exception { /** * Basic construction for exceptions with messages. */ public EPPTransportException (String message) { super(message); } } --- NEW FILE: EPPTransportSMTP.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport/EPPTransportSMTP.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.transport; import org.openrtk.idl.epp0402.*; import java.io.*; import java.net.*; /** * Provides methods necessary to communicate via SMTP with an EPP Server. */ public class EPPTransportSMTP extends EPPTransportBase { /** * Default construtor */ public EPPTransportSMTP() { super(); } /** * Empty implemention of the connect method from EPPTransportBase. * Does nothing because there is no persistent connection to the * server in SMTP. */ public void connect() throws IOException, UnknownHostException { // nothing to be done return; } /** * Empty implemention of the disconnect method from EPPTransportBase. * Does nothing because there is no persistent connection to the * server in SMTP. */ public void disconnect() throws IOException { // nothing to be done return; } /** * Reads an EPP message received from the server via SMTP (i.e. an email). * Does nothing at this time. Code must be writen. */ public String readFromServer() throws epp_Exception { // Should write some code that works. return null; } /** * Sends an EPP message to the server via SMTP (i.e. an email). * Does nothing at this time. Code must be writen. */ public void writeToServer(String string_to_server) throws epp_Exception { // Should write some code that works. return; } } --- NEW FILE: EPPTransportTCP.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport/EPPTransportTCP.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.transport; import java.io.*; import java.net.*; import org.openrtk.idl.epp0402.*; /** * Provides methods necessary to establish connection and to communicate with * an EPP Server using plain socket (no encryption). */ public class EPPTransportTCP extends EPPTransportBase { /** * The socket to the server. */ protected Socket socket_to_server_; /** * Input stream from the server. * Begotten from the socket. */ protected BufferedReader reader_from_server_; /** * Output stream to the server. * Begotten from the socket. */ protected PrintWriter writer_to_server_; /** * Flag to indicate if the transports socket has been * preset externally. */ protected boolean preset_ = false; /** * Default Construtor */ public EPPTransportTCP() { super(); } /** * Construtor with established socket and timeout value * If the timeout value is zero, the default timeout value * from EPPTransportBase is used. * @param socket The Socket to the server * @param timeout The int socket timeout value, in milliseconds */ public EPPTransportTCP(Socket socket, int timeout) { socket_to_server_ = socket; epp_timeout_ = timeout > 0 ? timeout : DEFAULT_SOCKET_TIMEOUT; preset_ = true; } /** * Construtor with Hostname, Host port and timeout value * If the timeout value is zero, the default timeout value * from EPPTransportBase is used. * @param host_name The server Hostname * @param host_port The server Host port * @param timeout The int socket timeout value, in milliseconds */ public EPPTransportTCP(String host_name, int host_port, int timeout) { super(host_name, host_port, timeout > 0 ? timeout : DEFAULT_SOCKET_TIMEOUT); } /** * Connects to the Server using previously set Hostname and port. * If the socket was provided externally, the connection operation is * skipped, but the input and output buffers are still extracted. * The method also sets the SO timeout of the socket regardless * of its origins. */ public void connect() throws SocketException, IOException, UnknownHostException { String method_name = "connect()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if( ! preset_ ) { // Initialize to null the socket to the server socket_to_server_ = null; socket_to_server_ = new Socket(epp_host_name_, epp_host_port_); } socket_to_server_.setSoTimeout(epp_timeout_); reader_from_server_ = new BufferedReader(new InputStreamReader(socket_to_server_.getInputStream())); writer_to_server_ = new PrintWriter(new OutputStreamWriter(socket_to_server_.getOutputStream()),true); debug(DEBUG_LEVEL_TWO,method_name,"Connected to ["+socket_to_server_.getInetAddress()+":"+socket_to_server_.getPort()+"]"); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return; } /** * Reads a complete XML message from the Server. * @return Full XML String * @throws org.openrtk.idl.epp0402.epp_Exception if there was a socket error in * reading from the EPP Server * @see org.openrtk.idl.epp0402.epp_Session#RTK_COMMUNICATIONS_FAILURE * @see org.openrtk.idl.epp0402.epp_Session#RTK_UNEXPECTED_SERVER_DISCONNECT */ public String readFromServer() throws epp_Exception { String method_name = "readFromServer()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); String line; StringBuffer buf; try { buf = new StringBuffer(); while((line = reader_from_server_.readLine()) != null) { buf.append(line); if (line.trim().endsWith("</epp>")) break; } if (line == null) { debug(DEBUG_LEVEL_TWO,method_name,"Connection closed by server."); disconnect(); epp_Result[] result = new epp_Result[1]; result[0] = new epp_Result(); result[0].m_code = epp_Session.RTK_UNEXPECTED_SERVER_DISCONNECT; result[0].m_msg = "Unexpected server disconnect"; throw new epp_Exception( result ); } } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); epp_Result[] result = new epp_Result[1]; result[0] = new epp_Result(); result[0].m_code = epp_Session.RTK_COMMUNICATIONS_FAILURE; result[0].m_msg = "Failed to read from server ["+xcp.getClass().toString()+"] ["+xcp.getMessage()+"]"; throw new epp_Exception( result ); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return buf.toString(); } /** * Sends an XML string to the Server * @throws org.openrtk.idl.epp0402.epp_Exception if there was a socket error in writing to the EPP Server. * The epp_Exception will contain a result with the code epp_Session.RTK_COMMUNICATIONS_FAILURE * @see org.openrtk.idl.epp0402.epp_Session#RTK_COMMUNICATIONS_FAILURE */ public void writeToServer(String xml_to_server) throws epp_Exception { String method_name = "writeToServer(String)"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); try { String line; StringBuffer buf; BufferedReader reader_outbound_xml = new BufferedReader(new StringReader(xml_to_server)); buf = new StringBuffer(); while((line = reader_outbound_xml.readLine()) != null) { line = line.trim(); if (line.startsWith("#") || line.length() == 0) continue; if (!line.startsWith("<")) buf.append(' '); buf.append(line); if (line.endsWith("?>")) buf.append(CRLF); if (line.trim().endsWith("</epp>")) break; } String final_xml = buf.toString(); writer_to_server_.print(final_xml); writer_to_server_.print(CRLF); writer_to_server_.flush(); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); epp_Result[] result = new epp_Result[1]; result[0] = new epp_Result(); result[0].m_code = epp_Session.RTK_COMMUNICATIONS_FAILURE; result[0].m_msg = "Failed to write to server ["+xcp.getClass().toString()+"] ["+xcp.getMessage()+"]"; throw new epp_Exception( result ); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Closes the connection to the Server * @throws IOException if there was a Socket problem */ public void disconnect() throws IOException { String method_name = "disconnect()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); try { if ( socket_to_server_ != null ) { socket_to_server_.close(); } socket_to_server_ = null; if ( reader_from_server_ != null ) { reader_from_server_.close(); } reader_from_server_ = null; if ( writer_to_server_ != null ) { writer_to_server_.close(); } writer_to_server_ = null; } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); throw xcp; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } } --- NEW FILE: EPPTransportTCPTLS.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport/EPPTransportTCPTLS.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.transport; import java.io.*; import java.net.*; import javax.net.ssl.*; import java.util.*; import javax.security.cert.*; import java.security.*; /** * Provides methods necessary to build connection with EPP Server * using a SSL-TLS socket. It only overrides the connect() method * from EPPTransportTCP since the remaining socket operations are * identical to unencrypted sockets. * <P> * This class uses Sun's JSSE to establish a secure connection with the * server. It makes use of the RTK property "ssl.props.location" to * retrieve the ssl.properties. This properties file contains * information necessary to locate the java keystore, the names of the keys * and certificates contained inside it and the necessary passwords to * access the keystore. The epp-rtk/java/ssl director contains more information * regarding the data required to create a keystore and the steps to do so. * <P> * If the user does not wish to use the default Sun JSSE but rather a * third party SSL implemention, then the socket connection should * be established externally and an instance of EPPTransportTCP should be * created using the connected socket. * <P> * Please see the EPP RTK User's Guide for more information on secure * connections to EPP servers. */ public class EPPTransportTCPTLS extends EPPTransportTCP { private SSLContext ctx_ = null; private KeyStore ks_ = null; private KeyManagerFactory kmf_ = null; private SecureRandom rnd_ = null; /** * Default Construtor */ public EPPTransportTCPTLS() { super(); } /** * Construtor with Hostname, Host port and timeout value * @param host_name The server Hostname * @param host_port The server Host port * @param timeout The int socket timeout value, in milliseconds */ public EPPTransportTCPTLS(String host_name, int host_port, int timeout) { super(host_name, host_port, timeout); } /** * Connects to the Server using previously set Hostname and port. * If connection has been already established, the operation will be ignored. * The method also sets the SO timeout. * @throws SocketException * @throws IOException * @throws UnknownHostException */ public void connect() throws SocketException, IOException, UnknownHostException { String method_name = "connect()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); if( ! preset_ ) { // Initialize to null the socket to the server socket_to_server_ = null; debug(DEBUG_LEVEL_TWO,method_name,"Using SSL/TLS"); Properties system_props = System.getProperties(); String ssl_props_location = (String) system_props.getProperty("ssl.props.location"); if ( ssl_props_location == null || ssl_props_location.length() == 0 ) { throw new IOException("No ssl props location specified"); } Properties ssl_props = new Properties(); ssl_props.load(new FileInputStream(ssl_props_location + "/ssl.properties")); SSLSocketFactory ssl_factory = null; try { char[] passphrase1 = ((String)ssl_props.get("ssl.keystore.passphrase")).toCharArray(); char[] passphrase2 = ((String)ssl_props.get("ssl.signedcert.passphrase")).toCharArray(); if ( ctx_ == null ) { ctx_ = SSLContext.getInstance(((String)ssl_props.get("ssl.protocol"))); } if ( ks_ == null ) { ks_ = KeyStore.getInstance(((String)ssl_props.get("ssl.keystore.format"))); ks_.load(new FileInputStream(ssl_props_location + "/" + ((String)ssl_props.get("ssl.keystore.file"))), passphrase1); } if ( kmf_ == null ) { kmf_ = KeyManagerFactory.getInstance(((String)ssl_props.get("ssl.keymanagerfactory.format"))); kmf_.init(ks_, passphrase2); } // SSL Performance improvement from wessorh try{ byte seed[] = new byte[1024]; FileInputStream is = new FileInputStream("/dev/urandom"); is.read(seed); is.close(); rnd_ = java.security.SecureRandom.getInstance("SHA1PRNG"); rnd_.setSeed(seed); debug(DEBUG_LEVEL_TWO,method_name,"SecureRandom seed set."); } catch (Exception xcp) { debug(DEBUG_LEVEL_TWO,method_name,"Error initializing SecureRandom ["+xcp.getMessage()+"], using default initialization."); rnd_ = null; } ctx_.init(kmf_.getKeyManagers(), null, rnd_); ssl_factory = ctx_.getSocketFactory(); } catch (Exception xcp) { throw new IOException(xcp.getMessage()); } socket_to_server_ = (Socket)ssl_factory.createSocket(epp_host_name_, epp_host_port_); } socket_to_server_.setSoTimeout(epp_timeout_); reader_from_server_ = new BufferedReader(new InputStreamReader(socket_to_server_.getInputStream())); writer_to_server_ = new PrintWriter(new OutputStreamWriter(socket_to_server_.getOutputStream()),true); debug(DEBUG_LEVEL_TWO,method_name,"Connected to ["+socket_to_server_.getInetAddress()+":"+socket_to_server_.getPort()+"]"); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return; } } |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/com/tucows/oxrs/epp0402/rtk/example Added Files: ContactExample.java DomainExample.java HostExample.java PollExample.java SessionExample.java Log Message: pulled in epp0402 java classes --- NEW FILE: ContactExample.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/example/ContactExample.java,v 1.1 2003/03/21 16:35:34 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:34 $ */ package com.tucows.oxrs.epp0402.rtk.example; import java.util.*; import com.tucows.oxrs.epp0402.rtk.*; import com.tucows.oxrs.epp0402.rtk.xml.*; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.domain.*; import org.openrtk.idl.epp0402.contact.*; /** * Example code for the EPP Contact object. Also shows creation of * EPPClient instance, login, logout and disconnect. * * @author Daniel Manley * @version $Revision: 1.1 $ $Date: 2003/03/21 16:35:34 $ * @see com.tucows.oxrs.epp0402.rtk.EPPClient * @see com.tucows.oxrs.epp0402.rtk.xml.EPPGreeting * @see com.tucows.oxrs.epp0402.rtk.xml.EPPContactCheck * @see com.tucows.oxrs.epp0402.rtk.xml.EPPContactInfo * @see com.tucows.oxrs.epp0402.rtk.xml.EPPContactCreate * @see com.tucows.oxrs.epp0402.rtk.xml.EPPContactUpdate * @see com.tucows.oxrs.epp0402.rtk.xml.EPPContactTransfer * @see com.tucows.oxrs.epp0402.rtk.xml.EPPContactDelete **/ public class ContactExample { private static String USAGE = "Usage: com.tucows.oxrs.epp0402.rtk.example.ContactExample epp_contact_name epp_contact_port epp_client_id epp_password"; /** * Main of the example. Performs Contact check, info, create, update, transfer and delete. **/ public static void main(String args[]) { System.out.println("Start of the Contact example"); epp_AuthInfo contact_auth_info = null; String default_contact_id; epp_Command command_data = null; try { if (args.length < 4) { System.err.println(USAGE); System.exit(1); } // calling setDebugLevel() with no params makes the RTK // read the "rtk.debuglevel" property from rtk.properties file RTKBase.setDebugLevel(); String epp_contact_name = args[0]; String epp_contact_port_string = args[1]; String epp_client_id = args[2]; String epp_password = args[3]; int epp_contact_port = Integer.parseInt(epp_contact_port_string); // This example uses the client trid to generate a unique contact id // so the create doesn't fail throw the whole example out the window // (we're dividing the current time by 1000 because without it // the contact id is too long) default_contact_id = epp_client_id + (System.currentTimeMillis() / 1000); EPPClient epp_client = new EPPClient(epp_contact_name, epp_contact_port, epp_client_id, epp_password); epp_client.setLang("en"); // The protocol used is set by the rtk.transport property // in etc/rtk.properties System.out.println("Connecting to the EPP Server and getting the greeting"); epp_Greeting greeting = epp_client.connectAndGetGreeting(); 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(); String client_trid = getClientTrid(epp_client_id); System.out.println("Logging into the EPP Server"); // If epp_client.setEPPServices() or epp_client.setEPPUnspecServices() // have been called, epp_client.login() uses services values set by user, // otherwise, epp_client.login() fills in default service values for you // which are contact, domain and host (pretty standard stuff). epp_client.login(client_trid); try { // *************************** // Contact Check // *************************** System.out.println("Creating the Contact Check command"); epp_ContactCheckReq contact_check_request = new epp_ContactCheckReq(); command_data = new epp_Command(); // The client trid is optional. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = getClientTrid(epp_client_id); contact_check_request.m_cmd = command_data; List contact_list = (List)new ArrayList(); contact_list.add("C100-LRMS"); contact_list.add("C102-LRMS"); contact_list.add("C999-LRMS"); contact_check_request.m_ids = EPPXMLBase.convertListToStringArray(contact_list); EPPContactCheck contact_check = new EPPContactCheck(); contact_check.setRequestData(contact_check_request); contact_check = (EPPContactCheck) epp_client.processAction(contact_check); // or, alternatively, this method can be used... //contact_check.fromXML(epp_client.processXML(contact_check.toXML())); epp_ContactCheckRsp contact_check_response = contact_check.getResponseData(); epp_Response response = contact_check_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("ContactCheck results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); epp_CheckResult[] check_results = contact_check_response.m_results; System.out.println("ContactCheck results: contact [C100-LRMS] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "C100-LRMS")+"]"); System.out.println("ContactCheck results: contact [C102-LRMS] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "C102-LRMS")+"]"); System.out.println("ContactCheck results: contact [C999-LRMS] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "C999-LRMS")+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; System.err.println("\tcode: ["+results[0].m_code+"] lang: ["+results[0].m_lang+"] msg: ["+results[0].m_msg+"]"); if ( results[0].m_values != null && results[0].m_values.length > 0 ) { System.err.println("\tvalue: ["+results[0].m_values[0]+"]"); } } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Contact Check failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Contact Create // *************************** System.out.println("Creating the Contact Create command"); epp_ContactCreateReq contact_create_request = new epp_ContactCreateReq(); command_data = new epp_Command(); // The client trid is optional. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = getClientTrid(epp_client_id); contact_create_request.m_cmd = command_data; contact_create_request.m_id = default_contact_id; epp_ContactNameAddress name_address = new epp_ContactNameAddress(); name_address.m_name = "John Doe"; name_address.m_org = "ACME Solutions"; name_address.m_address = new epp_ContactAddress(); // Up to three street values may be specified. name_address.m_address.m_street1 = "100 Centre St"; name_address.m_address.m_city = "Townsville"; name_address.m_address.m_state_province = "County Derry"; name_address.m_address.m_postal_code = "Z1Z1Z1"; // The country code must be a valid ISO country code. name_address.m_address.m_country_code = "CA"; // Now assign that name/address set to the contact's // ASCII address. If you wish to also use UTF-8 // characters in the name/address data, set the // m_i15d_address data member. contact_create_request.m_ascii_address = name_address; // The voice, fax and the email values can only be in ASCII. // The voice value may contain an optional extension. // Ceate a voice value with an extenstion. contact_create_request.m_voice = new epp_ContactPhone("1234", "+1.4165559999"); contact_create_request.m_fax = new epp_ContactPhone("9876", "+1.4165558888"); contact_create_request.m_email = "jd...@co..."; // Contact Auth Info must be set, just give a fixed value now contact_auth_info = new epp_AuthInfo(); contact_auth_info.m_value = "test_contact"; // For the current spec of EPP, PW is the only allowed type // of auth info. So, the type can be left null and the RTK will // fill in the value for you. contact_auth_info.m_type = epp_AuthInfoType.PW; contact_create_request.m_auth_info = contact_auth_info; EPPContactCreate contact_create = new EPPContactCreate(); contact_create.setRequestData(contact_create_request); contact_create = (EPPContactCreate) epp_client.processAction(contact_create); // or, alternatively, this method can be used... //contact_create.fromXML(epp_client.processXML(contact_create.toXML())); epp_ContactCreateRsp contact_create_response = contact_create.getResponseData(); epp_Response response = contact_create_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("ContactCreate results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); System.out.println("ContactCreate results: contact id ["+contact_create_response.m_id+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresults: "+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Contact Create failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Contact Info // *************************** System.out.println("Creating the Contact Info command"); epp_ContactInfoReq contact_info_request = new epp_ContactInfoReq(); command_data = new epp_Command(); // The client trid is optional. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = getClientTrid(epp_client_id); contact_info_request.m_cmd = command_data; // Used the ROID saved from the contact create. contact_info_request.m_id = default_contact_id; EPPContactInfo contact_info = new EPPContactInfo(); contact_info.setRequestData(contact_info_request); contact_info = (EPPContactInfo) epp_client.processAction(contact_info); // or, alternatively, this method can be used... //contact_info.fromXML(epp_client.processXML(contact_info.toXML())); epp_ContactInfoRsp contact_info_response = contact_info.getResponseData(); epp_Response response = contact_info_response.m_rsp; epp_Result[] results = response.m_results; // You can also save the auID (auth ID) from an info where // the calling registrar is the sponsoring client for the // object. contact_auth_info = contact_info_response.m_auth_info; System.out.println("ContactInfo results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); System.out.println(" Voice: ["+contact_info_response.m_voice+"]"); System.out.println(" Fax: ["+contact_info_response.m_fax+"]"); System.out.println(" Auth Info: ["+contact_auth_info.m_value+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresults: "+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Contact Info failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Contact Update // *************************** System.out.println("Creating the Contact Update command"); epp_ContactUpdateReq contact_update_request = new epp_ContactUpdateReq(); command_data = new epp_Command(); // The client trid is optional. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = getClientTrid(epp_client_id); contact_update_request.m_cmd = command_data; contact_update_request.m_id = default_contact_id; // You can ADD or REMOVE contact status here, like // epp_ContactUpdateAddRemove add = new epp_ContactUpdateAddRemove(); // add.m_status = new epp_ContactStatus[1]; // add.m_status[0] = new epp_ContactStatus(); // add.m_status[0].m_type = epp_ContactStatusType.CLIENT_DELETE_PROHIBITED; // contact_update_request.m_add = add; epp_ContactUpdateChange contact_update_change = new epp_ContactUpdateChange(); epp_ContactNameAddress name_address = new epp_ContactNameAddress(); // In a contact change request, you only need to explicitly // specify the values that are changing, leaving the remain // values set to null (although, there is no harm in sending the // complete contact information). If an optional value is // to be removed, then specify an empty string for the new value. name_address.m_name = "Jane Doe"; name_address.m_org = "ACME Systems"; name_address.m_address = new epp_ContactAddress(); // Up to three street values may be specified. name_address.m_address.m_street1 = "999 Front St"; name_address.m_address.m_city = "Townsville"; name_address.m_address.m_postal_code = "A9A9A9"; name_address.m_address.m_country_code = "CA"; // The contact update operation allows changes to both // the ASCII and "i15d" name/address information. contact_update_change.m_ascii_address = name_address; // The voice and email values are not changing, but we want // to remove the fax value. Can't just use null here // because then it would not be present in the request XML, // so the server would affect no change to the fax. contact_update_change.m_fax = new epp_ContactPhone("", ""); // You can also change the contact auth info here epp_AuthInfo contact_auth_info_new = new epp_AuthInfo(); contact_auth_info_new.m_value = "test_contact_new"; contact_update_change.m_auth_info = contact_auth_info_new; contact_auth_info = contact_auth_info_new; contact_update_request.m_change = contact_update_change; EPPContactUpdate contact_update = new EPPContactUpdate(); contact_update.setRequestData(contact_update_request); contact_update = (EPPContactUpdate) epp_client.processAction(contact_update); // or, alternatively, this method can be used... //contact_update.fromXML(epp_client.processXML(contact_update.toXML())); epp_ContactUpdateRsp contact_update_response = contact_update.getResponseData(); epp_Response response = contact_update_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("ContactUpdate results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresults: "+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Contact Update failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Contact Transfer (Query) // *************************** System.out.println("Creating the Contact Transfer command"); epp_ContactTransferReq contact_transfer_request = new epp_ContactTransferReq(); command_data = new epp_Command(); // The client trid is optional. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = getClientTrid(epp_client_id); contact_transfer_request.m_cmd = command_data; // The Contact Transfer request is an EPP "transfer" request, // meaning it requires an "op" value and the object's // current auID (auth ID) for successful processing. epp_TransferRequest transfer_request = new epp_TransferRequest(); // A transfer query will only query the status of the current // pending transfer or the last completed/cancelled/rejected // transfer. To request a transfer, the "op" should be set to // REQUEST. // // QUERY is the default transfer op type, so it // could have been left null here. transfer_request.m_op = epp_TransferOpType.QUERY; // contact_auth_info is REQUIRED only when transfer op type // is REQUEST, so the line below is unnecessary, it will // be ignored by the server transfer_request.m_auth_info = contact_auth_info; contact_transfer_request.m_trans = transfer_request; // Set the contact id. contact_transfer_request.m_id = default_contact_id; EPPContactTransfer contact_transfer = new EPPContactTransfer(); contact_transfer.setRequestData(contact_transfer_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. contact_transfer = (EPPContactTransfer) epp_client.processAction(contact_transfer); // or, alternatively, this method can be used... //contact_transfer.fromXML(epp_client.processXML(contact_transfer.toXML())); epp_ContactTransferRsp contact_transfer_response = contact_transfer.getResponseData(); epp_Response response = contact_transfer_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("ContactTransfer results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresults: "+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Contact Transfer (Query) failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Contact Delete // *************************** System.out.println("Creating the Contact Delete command"); epp_ContactDeleteReq contact_delete_request = new epp_ContactDeleteReq(); command_data = new epp_Command(); // The client trid is optional. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = getClientTrid(epp_client_id); contact_delete_request.m_cmd = command_data; // Used the ROID from the contact create. contact_delete_request.m_id = default_contact_id; EPPContactDelete contact_delete = new EPPContactDelete(); contact_delete.setRequestData(contact_delete_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. contact_delete = (EPPContactDelete) epp_client.processAction(contact_delete); // or, alternatively, this method can be used... //contact_delete.fromXML(epp_client.processXML(contact_delete.toXML())); epp_ContactDeleteRsp contact_delete_response = contact_delete.getResponseData(); epp_Response response = contact_delete_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("ContactDelete results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresults: "+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Contact Delete failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } System.out.println("Logging out from the EPP Server"); epp_client.logout(getClientTrid(epp_client_id)); System.out.println("Disconnecting from the EPP Server"); epp_client.disconnect(); } catch ( epp_XMLException xcp ) { System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresults: "+results[0]+"]"); } catch ( Exception xcp ) { System.err.println("Exception! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } } protected static String getClientTrid(String epp_client_id) { return "ABC:"+epp_client_id+":"+System.currentTimeMillis(); } } --- NEW FILE: DomainExample.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/example/DomainExample.java,v 1.1 2003/03/21 16:35:35 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:35 $ */ package com.tucows.oxrs.epp0402.rtk.example; import java.util.*; import java.io.*; import com.tucows.oxrs.epp0402.rtk.*; import com.tucows.oxrs.epp0402.rtk.xml.*; import org.openrtk.idl.epp0402.*; import org.openrtk.idl.epp0402.domain.*; import org.openrtk.idl.epp0402.contact.*; /** * Example code for the EPP Domain object. Also shows creation of * EPPClient instance, login, logout and disconnect. * * @author Daniel Manley * @version $Revision: 1.1 $ $Date: 2003/03/21 16:35:35 $ * @see com.tucows.oxrs.epp0402.rtk.EPPClient * @see com.tucows.oxrs.epp0402.rtk.xml.EPPGreeting * @see com.tucows.oxrs.epp0402.rtk.xml.EPPDomainCheck * @see com.tucows.oxrs.epp0402.rtk.xml.EPPDomainInfo * @see com.tucows.oxrs.epp0402.rtk.xml.EPPDomainCreate * @see com.tucows.oxrs.epp0402.rtk.xml.EPPDomainUpdate * @see com.tucows.oxrs.epp0402.rtk.xml.EPPDomainRenew * @see com.tucows.oxrs.epp0402.rtk.xml.EPPDomainTransfer * @see com.tucows.oxrs.epp0402.rtk.xml.EPPDomainDelete **/ public class DomainExample { private static String USAGE = "Usage: com.tucows.oxrs.epp0402.rtk.example.DomainExample epp_host_name epp_host_port epp_client_id epp_password epp_domain_name"; /** * Main of the example. Performs Domain check, info, create, update, renew, transfer and delete. **/ public static void main(String args[]) { System.out.println("Start of the Domain example"); epp_Command command_data = null; epp_AuthInfo domain_auth_info = null; Date domain_exp_date = null; try { if (args.length < 5) { System.err.println(USAGE); System.exit(1); } // calling setDebugLevel() with no params makes the RTK // read the "rtk.debuglevel" property from rtk.properties file RTKBase.setDebugLevel(); String epp_host_name = args[0]; String epp_host_port_string = args[1]; String epp_client_id = args[2]; String epp_password = args[3]; String epp_domain_name = args[4]; int epp_host_port = Integer.parseInt(epp_host_port_string); EPPClient epp_client = new EPPClient(epp_host_name, epp_host_port, epp_client_id, epp_password); epp_client.setLang("en"); // The protocol used is set by the rtk.transport property // in etc/rtk.properties System.out.println("Connecting to the EPP Server and getting the greeting"); epp_Greeting greeting = epp_client.connectAndGetGreeting(); 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(); String client_trid = getClientTrid(epp_client_id); System.out.println("Logging into the EPP Server"); // If epp_client.setEPPServices() or epp_client.setEPPUnspecServices() // have been called, epp_client.login() uses services values set by user, // otherwise, epp_client.login() fills in default service values for you // which are contact, domain and host (pretty standard stuff). epp_client.login(client_trid); try { // *************************** // Poll (for waiting messages) // *************************** System.out.println("Creating the Poll command"); epp_PollReq poll_request = new epp_PollReq(); command_data = new epp_Command(); command_data.m_client_trid = getClientTrid(epp_client_id); poll_request.m_cmd = command_data; // Set the Poll "op" to REQ (i.e. request). This will // query the message queue for the first message available. // Note that the REQ op does not dequeue the message. // The ACK op is required to acknowledge messages and // remove them from the waiting queue. // // Note that the Poll op type of REQ is the default, so // it could have been left null here. poll_request.m_op = epp_PollOpType.REQ; EPPPoll poll = new EPPPoll(); poll.setRequestData(poll_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. poll = (EPPPoll) epp_client.processAction(poll); // or, alternatively, this method can be used... //poll.fromXML(epp_client.processXML(poll.toXML())); epp_PollRsp poll_response = poll.getResponseData(); epp_Response response = poll_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("Poll results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; System.err.println("\tcode: ["+results[0].m_code+"] lang: ["+results[0].m_lang+"] msg: ["+results[0].m_msg+"]"); if ( results[0].m_values != null && results[0].m_values.length > 0 ) { System.err.println("\tvalue: ["+results[0].m_values[0]+"]"); } // This single line will show you all data contained inside // this first result array element. //System.err.println("\tresult: ["+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("EPP Poll failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Domain Check // *************************** System.out.println("Creating the Domain Check command"); epp_DomainCheckReq domain_check_request = new epp_DomainCheckReq(); command_data = new epp_Command(); // The client trid is optional by EPP. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests. // Some registries make it mandatory and unique per session. command_data.m_client_trid = getClientTrid(epp_client_id); domain_check_request.m_cmd = command_data; // The Domain Check request can accept an array of domain // names. In this example, an ArrayList is used to dynamically // create the List of domain names and then EPPXMLBase's // utility method convertListToStringArray() is used // to convert the List to a String array. List domain_list = (List)new ArrayList(); domain_list.add(epp_client_id+"1.info"); domain_list.add(epp_client_id+"2.info"); domain_list.add(epp_domain_name); domain_check_request.m_names = EPPXMLBase.convertListToStringArray(domain_list); EPPDomainCheck domain_check = new EPPDomainCheck(); domain_check.setRequestData(domain_check_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. domain_check = (EPPDomainCheck) epp_client.processAction(domain_check); // or, alternatively, this method can be used... //domain_check.fromXML(epp_client.processXML(domain_check.toXML())); epp_DomainCheckRsp domain_check_response = domain_check.getResponseData(); epp_Response response = domain_check_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("DomainCheck results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); // All EPP Check requests, regardless of the object being checked, // will return a generic epp_CheckResult array. To find the // check results for a particular object, EPPXMLBase's utility // method getCheckResultFor() can be used. This method returns // a Boolean object or null if the value was not found in the // epp_CheckResult array. epp_CheckResult[] check_results = domain_check_response.m_results; System.out.println("DomainCheck results: domain ["+epp_client_id+"1.info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, epp_client_id+"1.info")+"]"); System.out.println("DomainCheck results: domain ["+epp_client_id+"2.info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, epp_client_id+"2.info")+"]"); System.out.println("DomainCheck results: domain ["+epp_domain_name+"] exists? ["+EPPXMLBase.getCheckResultFor(check_results, epp_domain_name)+"]"); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; System.err.println("\tcode: ["+results[0].m_code+"] lang: ["+results[0].m_lang+"] msg: ["+results[0].m_msg+"]"); if ( results[0].m_values != null && results[0].m_values.length > 0 ) { System.err.println("\tvalue: ["+results[0].m_values[0]+"]"); } } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Domain Check failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } // Need to create a contact to be used by domain create // because some registries have minimum requirements for // contacts associated with domains (i.e. usually, one of // each type, plus the registrant) // declaring the contact create request outside the try block // because the contact id it contains is required elsewhere. System.out.println("Creating the Contact Create command"); epp_ContactCreateReq contact_create_request = new epp_ContactCreateReq(); try { // *************************** // Contact Create // *************************** // Please see the ContactExample.java source file for more information // on the Contact Create operation. It is included here only because // a contact must exist before creating a domain. command_data = new epp_Command(); command_data.m_client_trid = getClientTrid(epp_client_id); contact_create_request.m_cmd = command_data; // This example uses the client trid to generate a unique contact id // so the create doesn't fail throw the whole example out the window // (we're dividing the current time by 1000 because without it // the contact id is too long) contact_create_request.m_id = epp_client_id+(System.currentTimeMillis()/1000); epp_ContactNameAddress name_address = new epp_ContactNameAddress(); name_address.m_name = "John Doe"; name_address.m_address = new epp_ContactAddress(); name_address.m_address.m_street1 = "100 Centre St"; name_address.m_address.m_city = "Townsville"; name_address.m_address.m_state_province = "County Derry"; name_address.m_address.m_postal_code = "Z1Z1Z1"; // The country code must be a valid ISO country code. // Note that UK is not a valid ISO country code, use GB instead. name_address.m_address.m_country_code = "CA"; contact_create_request.m_ascii_address = name_address; contact_create_request.m_email = "jd...@co..."; // Contact Auth Info must be set, just give a fixed value now epp_AuthInfo contact_auth_info = new epp_AuthInfo(); contact_auth_info.m_value = "changeme"; contact_auth_info.m_type = epp_AuthInfoType.PW; contact_create_request.m_auth_info = contact_auth_info; EPPContactCreate contact_create = new EPPContactCreate(); contact_create.setRequestData(contact_create_request); contact_create = (EPPContactCreate) epp_client.processAction(contact_create); epp_ContactCreateRsp contact_create_response = contact_create.getResponseData(); epp_Response response = contact_create_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("ContactCreate results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); System.out.println("ContactCreate results: contact id ["+contact_create_response.m_id+"]"); } catch ( epp_XMLException xcp ) { System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresult: ["+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Contact Create failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Domain Create // *************************** System.out.println("Creating the Domain Create command"); epp_DomainCreateReq domain_create_request = new epp_DomainCreateReq(); command_data = new epp_Command(); // The client trid is optional by EPP. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests. // Some registries make it mandatory and unique per session. command_data.m_client_trid = getClientTrid(epp_client_id); domain_create_request.m_cmd = command_data; domain_create_request.m_name = epp_domain_name; // The domain's period is optional. It is specified with // an object that contains the unit of measurement (years or // months) and the actual period value. domain_create_request.m_period = new epp_DomainPeriod(); domain_create_request.m_period.m_unit = epp_DomainPeriodUnitType.YEAR; domain_create_request.m_period.m_value = (short) 2; // At domain creation, if the registry requires nameservers, // you must specify another domain's nameserver's in the request. // You can't use nameserver in the same namespace as the domain, // but those host objects don't exist yet. List name_server_list = (List)new ArrayList(); // quick little note -- it just happens that these // nameservers exist in many OT&E domain registries // out there, so they were chosen to make sure the // create succeeds. Feel free to use other values // in this example. name_server_list.add("ns1.domaindirect.com"); name_server_list.add("ns2.domaindirect.com"); domain_create_request.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); BufferedReader buffed_reader = new BufferedReader(new InputStreamReader(System.in)); domain_auth_info = new epp_AuthInfo(); System.out.print("Dear registrant, please enter a passphrase for your new domain(min 6, max 16): "); while ( domain_auth_info.m_value == null || domain_auth_info.m_value.length() == 0 ) { domain_auth_info.m_value = buffed_reader.readLine(); } // For the current spec of EPP, PW is the only allowed type // of auth info. So, the type can be left null and the RTK will // fill in the value for you. domain_auth_info.m_type = epp_AuthInfoType.PW; domain_create_request.m_auth_info = domain_auth_info; // Some registries require a minimum number of contacts for a domain Vector contacts = new Vector(); contacts.add(new epp_DomainContact(epp_DomainContactType.TECH,"ABC-contact")); contacts.add(new epp_DomainContact(epp_DomainContactType.ADMIN,"ABC-contact")); contacts.add(new epp_DomainContact(epp_DomainContactType.BILLING,"ABC-contact")); domain_create_request.m_contacts = (epp_DomainContact[])contacts.toArray(new epp_DomainContact[1]); domain_create_request.m_registrant = contact_create_request.m_id; EPPDomainCreate domain_create = new EPPDomainCreate(); domain_create.setRequestData(domain_create_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. domain_create = (EPPDomainCreate) epp_client.processAction(domain_create); // or, alternatively, this method can be used... //domain_create.fromXML(epp_client.processXML(domain_create.toXML())); epp_DomainCreateRsp domain_create_response = domain_create.getResponseData(); epp_Response response = domain_create_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("DomainCreate results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); // The domain's name and expiration date are returned on a // successful domain creation. System.out.println("DomainCreate results: domain name ["+domain_create_response.m_name+"] exp date ["+domain_create_response.m_expiration_date+"]"); // Save the expiration date for the renew command later domain_exp_date = RTKBase.UTC_FMT.parse(domain_create_response.m_expiration_date); } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresult: ["+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Domain Create failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Domain Info // *************************** System.out.println("Creating the Domain Info command"); epp_DomainInfoReq domain_info_request = new epp_DomainInfoReq(); command_data = new epp_Command(); // The client trid is optional by EPP. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests. // Some registries make it mandatory and unique per session. command_data.m_client_trid = getClientTrid(epp_client_id); domain_info_request.m_cmd = command_data; // The only domain-specific parameter is the domain name itself. domain_info_request.m_name = epp_domain_name; EPPDomainInfo domain_info = new EPPDomainInfo(); domain_info.setRequestData(domain_info_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. domain_info = (EPPDomainInfo) epp_client.processAction(domain_info); // or, alternatively, this method can be used... //domain_info.fromXML(epp_client.processXML(domain_info.toXML())); epp_DomainInfoRsp domain_info_response = domain_info.getResponseData(); epp_Response response = domain_info_response.m_rsp; epp_Result[] results = response.m_results; // You can also save the authorization information from an info where // the calling registrar is the sponsoring client for the // object. domain_auth_info = domain_info_response.m_auth_info; System.out.println("DomainInfo results: ["+results[0].m_code+"] ["+results[0].m_msg+"]"); // The Info command returns some standard information like // the current sponsoring client id, the creator client id, // the create time and the last update time. // For a Domain Info, the domain's nameservers, hosts, status // last transfer client id, last transfer date, // expiration date and domain ROID are returned. System.out.println("DomainInfo results: clID ["+domain_info_response.m_client_id+"] crID ["+domain_info_response.m_created_by+"]"); System.out.println("DomainInfo results: crDate ["+domain_info_response.m_created_date+"] upDate ["+domain_info_response.m_updated_date+"]"); System.out.println("DomainInfo results: exDate ["+domain_info_response.m_expiration_date+"]"); // Save the expiration date for the renew command later domain_exp_date = RTKBase.UTC_FMT.parse(domain_info_response.m_expiration_date); if ( domain_auth_info != null ) { System.out.println("Domain's authID ["+domain_auth_info.m_value+"]"); } } catch ( epp_XMLException xcp ) { // Either the request was missing some required data in // validation before sending to the server, or the server's // response was either unparsable or missing some required data. System.err.println("epp_XMLException! ["+xcp.m_error_message+"]"); } catch ( epp_Exception xcp ) { // The EPP Server has responded with an error code with // some optional messages to describe the error. System.err.println("epp_Exception!"); epp_Result[] results = xcp.m_details; // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresult: ["+results[0]+"]"); } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Domain Info failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Domain Update // *************************** System.out.println("Creating the Domain Update command"); epp_DomainUpdateReq domain_update... [truncated message content] |
From: Daniel M. <tub...@us...> - 2003-03-21 16:35:38
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv10218/src/com/tucows/oxrs/epp0402/rtk Added Files: EPPClient.java RTKBase.java Log Message: pulled in epp0402 java classes --- NEW FILE: EPPClient.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/EPPClient.java,v 1.1 2003/03/21 16:35:34 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:34 $ */ package com.tucows.oxrs.epp0402.rtk; import java.io.*; import java.net.*; import org.openrtk.idl.epp0402.*; import com.tucows.oxrs.epp0402.rtk.xml.*; import com.tucows.oxrs.epp0402.rtk.transport.*; /** * EPP Client -- encapsulates all the connection and communication with the * EPP Server. * * @author Daniel Manley * @version $Revision: 1.1 $ $Date: 2003/03/21 16:35:34 $ * @see com.tucows.oxrs.epp0402.rtk.example.DomainExample * @see com.tucows.oxrs.epp0402.rtk.example.ContactExample * @see com.tucows.oxrs.epp0402.rtk.example.HostExample **/ public class EPPClient extends RTKBase implements epp_Session { // Public class constants /** * The current EPP version. Sent to the EPP Server on login. */ public static final String VERSION = "1.0"; /** * The default language/locale: "en". Sent to the EPP Server on login. */ public static final String DEFAULT_LANG = "en"; /** * The default transport class if none is set in the rtk.properties file. */ public static final String DEFAULT_TRANSPORT_CLASS = "EPPTransportTCPTLS"; /** * The default transport package if none is set in the rtk.properties file. */ public static final String DEFAULT_TRANSPORT_PACKAGE = "com.tucows.oxrs.epp0402.rtk.transport"; // private memeber variable private String epp_host_name_; private int epp_host_port_; private int epp_timeout_; private String epp_client_id_; private String epp_password_; private epp_Service[] epp_services_; private epp_Service[] epp_unspec_services_; private String version_; private String lang_; private EPPTransportBase transport_; // keep track of the time of the last successfull responce from the server // used to determine when we need to send a keepAlive message. private long lastNetTransaction = 0; // is the session current/valid, used to check if an exception // occured and the session needs to be restarted. private boolean isValid = false; // Is RTK version number included as unspec in login private boolean sendver_ = true; /** * Default constructor -- uses default version, lang values. */ public EPPClient() { version_ = VERSION; lang_ = DEFAULT_LANG; } /** * Construtor with client id and password * @param epp_client_id The EPP client id * @param epp_password The password associated with the client id */ public EPPClient(String epp_client_id, String epp_password) { this(); epp_client_id_ = epp_client_id; epp_password_ = epp_password; } /** * Constructor with EPP Hostname, EPP Host port, client id and password, * in that order. * @param epp_host_name The EPP Hostname (eg. "host.domain.tld") * @param epp_host_port The EPP port * @param epp_client_id The EPP client id * @param epp_password The password associated with the client id */ public EPPClient(String epp_host_name, int epp_host_port, String epp_client_id, String epp_password) { this(epp_client_id, epp_password); epp_host_name_ = epp_host_name; epp_host_port_ = epp_host_port; } /** * Accessor method for the EPP version * The EPP version is sent to the server on login. * @param value The version string */ public void setVersion(String value) { version_ = value; } /** * Accessor method for the version * @return String the version */ public String getVersion() { return version_; } /** * Accessor method for the lang * The lang setting is used in the creds portion of * EPP commands (such as the login). * @param value The lang/locale String (eg. "fr_CA") */ public void setLang(String value) { lang_ = value; } /** * Accessor method for the lang * @return The langue */ public String getLang() { return lang_; } /** * Accessor method for the EPP Hostname * @param value The hostname string (eg. "host.domain.tld" or "100.101.200.201") */ public void setEPPHostName(String value) { epp_host_name_ = value; } /** * Accessor method for the EPP Hostname * @return The EPP host name String */ public String getEPPHostName() { return epp_host_name_; } /** * Accessor method for the EPP Host port * @param value The int port value */ public void setEPPHostPort(int value) { epp_host_port_ = value; } /** * Accessor method for the EPP Host port */ public int getEPPHostPort() { return epp_host_port_; } /** * Accessor method for the EPP server timeout, in milliseconds * Setting this value after a connection has been established * has no effect. * @param value The int timeout value, in milliseconds */ public void setEPPTimeout(int value) { epp_timeout_ = value; } /** * Accessor method for the EPP server timeout, in milliseconds * @return The current timeout setting. in milliseconds */ public int getEPPTimeout() { return epp_timeout_; } /** * Accessor method for the client id. * This value is also used in the creation of the default EPPTransID. * Changing this value after a session has been logged in will * have no effect. * @param value The client id String */ public void setEPPClientID(String value) { epp_client_id_ = value; } /** * Accessor method for the client id. * @return The current client id. */ public String getEPPClientID() { return epp_client_id_; } /** * Accessor method for the password * @param value The password String */ public void setEPPPassword(String value) { epp_password_ = value; } /** * Accessor method for the password * @return The current EPP Password */ public String getEPPPassword() { return epp_password_; } /** * Accessor method for the epp services. * This value is used in the EPP Login command. * @param services The epp_Service class array */ public void setEPPServices(epp_Service[] services) { epp_services_ = services; } /** * Accessor method for the epp services. * @return The current services in an array. */ public epp_Service[] getEPPServices() { return epp_services_; } /** * Accessor method for the epp unspecified services * @param unspec_services The epp_Service class array */ public void setEPPUnspecServices(epp_Service[] unspec_services) { epp_unspec_services_ = unspec_services; } /** * Accessor method for the epp unspecified services. * @return The current unspec services in an array. */ public epp_Service[] getEPPUnspecServices() { return epp_unspec_services_; } /** * Accessor method for the time of the last successfull * network transaction. * * Useful for tracking when a keepAlive (poll) transaction * needs to be sent. * @return Last transation time in seconds. */ public long getLastNetTransaction() { return this.lastNetTransaction; } /** * returns if the connections is valid. * A connection is valid if the following are true * <ul> * <li> a coonection has been established to the server * <li> an I/O Error has not been thrown * <li> a login has been successfully completed * </ul> * @return The flag indicating the state of the connection to the server */ public boolean isValid() { return this.isValid; } /** * Bypass to the EPPClient's connect() methods. Allows a connection * to be established externally. * Mostly useful if opting to not use JSSE * in favour of another SSL package. This method also sets the SO Timeout * to the value from getEPPTimeout(). Creates a new instance of * EPPTransportTCP using the given socket. * @param value The Socket to the EPP Server * @throws epp_Exception * @throws UnknownHostException if the EPP host cannot be found * @throws SocketException * @throws IOException * @see #getEPPTimeout() * @see com.tucows.oxrs.epp0402.rtk.transport.EPPTransportTCP */ public void setSocketToEPPServer(Socket value) throws epp_Exception, UnknownHostException, SocketException, IOException { String method_name = "setSocketToEPPServer"; debug(DEBUG_LEVEL_THREE,method_name,"Enterd"); transport_ = new EPPTransportTCP(value, epp_timeout_); transport_.connect(); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Bypass to the EPPClient's connect() methods. Allows a connection * and transport to be established externally. * Mostly useful if opting to not use JSSE * in favour of another SSL package. * @param value The Transport to the EPP Server */ public void setTransport(EPPTransportBase value) { String method_name = "setTransport"; debug(DEBUG_LEVEL_THREE,method_name,"Enterd"); transport_ = value; debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Connects to the EPP Server using the given hostname and port and * using the previously set client id and password. * It is recommended to use connectAndGetGreeting() to connect and * retrieve the EPPGreeting in one single call. * @param epp_host_name The EPP Hostname (eg. "host.domain.tld") * @param epp_host_port The EPP port * @throws epp_Exception * @throws UnknownHostException if the EPP host cannot be found * @throws SocketException * @throws IOException * @throws EPPTransportException if there are problem initializing the transport class * @see #connectAndGetGreeting() */ public void connect(String epp_host_name, int epp_host_port) throws epp_Exception, UnknownHostException, SocketException, IOException, EPPTransportException { setEPPHostName(epp_host_name); setEPPHostPort(epp_host_port); connect(); } /** * Connects to the EPP Server using the given client id and password and * using the previously set EPP hostname and port. * It is recommended to use connectAndGetGreeting() to connect and * retrieve the EPPGreeting in one single call. * @param epp_client_id The EPP client id * @param epp_password The password associated with the client id * @throws epp_Exception * @throws UnknownHostException if the EPP host cannot be found * @throws SocketException * @throws IOException * @throws EPPTransportException if there are problem initializing the transport class * @see #connectAndGetGreeting() */ public void connect(String epp_client_id, String epp_password) throws epp_Exception, UnknownHostException, SocketException, IOException, EPPTransportException { setEPPClientID(epp_client_id); setEPPPassword(epp_password); connect(); } /** * Connects to and logs into the EPP Server using the given hostname, * port, client id and password * It is recommended to use connectAndGetGreeting() to connect and * retrieve the EPPGreeting in one single call. * @param epp_host_name The EPP Hostname (eg. "host.domain.tld") * @param epp_host_port The EPP port * @param epp_client_id The EPP client id * @param epp_password The password associated with the client id * @throws epp_Exception * @throws UnknownHostException if the EPP host cannot be found * @throws SocketException * @throws IOException * @throws EPPTransportException if there are problem initializing the transport class * @see #connectAndGetGreeting() */ public void connect(String epp_host_name, int epp_host_port, String epp_client_id, String epp_password) throws epp_Exception, UnknownHostException, SocketException, IOException, EPPTransportException { setEPPHostName(epp_host_name); setEPPHostPort(epp_host_port); setEPPClientID(epp_client_id); setEPPPassword(epp_password); connect(); } /** * Connects to the EPP Server using previously set hostname and port. * It is recommended to use connectAndGetGreeting() to connect and * retrieve the EPPGreeting in one single call. * @throws epp_Exception * @throws UnknownHostException if the EPP host cannot be found * @throws SocketException * @throws IOException * @throws EPPTransportException if there are problem initializing the transport class * @see #connectAndGetGreeting() */ public void connect() throws epp_Exception, UnknownHostException, SocketException, IOException, EPPTransportException { String method_name = "connect()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); //keep current isValid value; boolean valid = this.isValid; this.isValid = false; // not actually storing anything from the return of getTransport() because // it initializes the transport_ variable directly. getTransport(); transport_.connect(); //if no exception occured, give the isValid value back this.isValid = valid; debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return; } // map transport_ to appropriate class according to previously set protocol or configuration file. private EPPTransportBase getTransport() throws IOException, EPPTransportException { String method_name = "getTransport()"; String transport_str = null; // if the transport has been previously set, like through // setTransport(), then return it here. if ( transport_ != null ) { return transport_; } try { transport_str = (String) RTKBase.getRTKProperties().getProperty("rtk.transport"); } catch (Exception xcp) { debug(DEBUG_LEVEL_ONE,method_name,"Configuration file not found or file read error! Default protocol will be taken."); transport_str = DEFAULT_TRANSPORT_CLASS; } if ( transport_str.indexOf('.') == -1 ) { transport_str = DEFAULT_TRANSPORT_PACKAGE + "." + transport_str; } // now try to instantiate the transport... try { debug(DEBUG_LEVEL_TWO,method_name,"Trying to instantiate transport class ["+transport_str+"]"); transport_ = (EPPTransportBase) Class.forName( transport_str ).newInstance(); } catch (IllegalAccessException xcp) { throw new EPPTransportException("Transport class ["+transport_str+"] could not be instantiated. Access error."); } catch (InstantiationException xcp) { throw new EPPTransportException("Transport class ["+transport_str+"] could not be instantiated. ["+xcp.getMessage()+"]"); } catch (ClassNotFoundException xcp) { throw new EPPTransportException("Transport class ["+transport_str+"] not found. Please check your classpath and the package name for the transport."); } transport_.initialize(epp_host_name_, epp_host_port_, epp_timeout_); return transport_; } /** * Reads a complete XML message from the EPP Server. * Uses the instance transport to read from the server. * You would normally pass the returned XML response to * a fromXML() in the class that created the request in the first place. * eg. EPPDomainCreate * If an exception occurs, it is internall caught here, the isValid * value is set to false and the exception is rethrown. * @return Full XML String * @throws org.openrtk.idl.epp0402.epp_Exception if there was a socket error in reading from the EPP Server */ public String readFromServer() throws epp_Exception { String method_name = "readFromServer()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); String xml_from_server = null; try { xml_from_server = transport_.readFromServer(); } catch (epp_Exception excp) { this.isValid = false; throw excp; } this.lastNetTransaction = System.currentTimeMillis(); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return xml_from_server; } /** * Sends raw XML to the server and returns the XML response. * Method required by the epp_Action interface. * @param request_xml The XML request String to send to the server. * @return The raw XML String response from the server. * @throws org.openrtk.idl.epp0402.epp_Exception if a communication error occurs */ public String processXML(String request_xml) throws epp_Exception { String method_name = "processXML(String)"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); debug(DEBUG_LEVEL_TWO,method_name,"Request XML is ["+request_xml+"]"); writeToServer(request_xml); String response_xml = readFromServer(); debug(DEBUG_LEVEL_TWO,method_name,"Response XML is ["+response_xml+"]"); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return response_xml; } /** * Sends EPP request to the server and retrieves the response. * Method required by the epp_Action interface.<br> * Calls processXML(). * @param request epp_Action The action to send to the registry * @throws org.openrtk.idl.epp0402.epp_XMLException if any request data or response data is missing * @throws org.openrtk.idl.epp0402.epp_Exception if a communication error occurs or if the server returns an error code * @see #processXML(String) */ public epp_Action processAction(epp_Action request) throws epp_XMLException, epp_Exception { String method_name = "processAction(epp_Action)"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); String request_xml = request.toXML(); epp_Action response = request; String response_xml = processXML(request_xml); response.fromXML(response_xml); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return response; } /** * Sends an XML string to the EPP Server. * Uses the instance transport to send the message to the server.<br> * readFromServer() should be called to read the response. * If an exception occurs, it is internall caught here, the isValid * value is set to false and the exception is rethrown. * @param outbound_xml String The EPP XML String to send to the server. * @throws org.openrtk.idl.epp0402.epp_Exception if there was a socket error in writing to the EPP Server. * The epp_Exception will contain a result with the cope epp_Session.RTK_COMMUNICATIONS_FAILURE */ public void writeToServer(String outbound_xml) throws epp_Exception { String method_name = "writeToServer(String)"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); try { transport_.writeToServer(outbound_xml); } catch (epp_Exception excp) { this.isValid = false; throw excp; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Connects to the EPP Server and reads the greeting from it. * Calls the connect() method to establish a connection to the * EPP server. And calls getGreeting() to read the greeting from * the server. * If an exception occurs, it is internall caught here, the isValid * value is set to false and the exception is rethrown. * @return The greeting from the EPP Server. * @throws IOException if there was a socket error in connecting to the EPP Server * @throws org.openrtk.idl.epp0402.epp_Exception if the server greeting is not present * @throws org.openrtk.idl.epp0402.epp_XMLException if the server's greeting is not parsable * @throws com.tucows.oxrs.epp0402.rtk.transport.EPPTransportException if there are problems initializing the transport * @see #connect() * @see #getGreeting() */ public epp_Greeting connectAndGetGreeting() throws epp_Exception, IOException, epp_XMLException, EPPTransportException { String method_name = "connectAndGetGreeting()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); epp_Greeting hello_from_server; try { connect(); hello_from_server = getGreeting(); } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); this.isValid = false; throw xcp; } catch (EPPTransportException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); this.isValid = false; throw xcp; } catch (epp_XMLException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); this.isValid = false; throw xcp; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return hello_from_server; } /** * Retrieves the greeting from the EPP Server and returns it. * This method is useful if a new connection is provided to the * EPPClient (eg. in the case of an SSL connection not using the * JSSE standard) and the greeting must be read separately. * If an exception occurs, it is internall caught here, the isValid * value is set to false and the exception is rethrown. * @return The greeting from the EPP Server * @throws org.openrtk.idl.epp0402.epp_Exception if the server greeting is not present * @throws org.openrtk.idl.epp0402.epp_XMLException if the server's greeting is not parsable */ public epp_Greeting getGreeting() throws epp_Exception, epp_XMLException { String method_name = "connectAndGetGreeting()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); EPPGreeting hello_from_server; try { String xml_from_server = readFromServer(); debug(DEBUG_LEVEL_TWO,method_name,"Greeting from server: ["+xml_from_server+"]"); hello_from_server = new EPPGreeting(); hello_from_server.fromXML(xml_from_server); } catch (epp_XMLException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); this.isValid = false; throw xcp; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); this.isValid = true; return hello_from_server.getResponseData(); } /** * Issues a hello request to the EPP Server. * This forces the server to respond with an epp_Greeting, which * is otherwise only sent on initial connections to the EPP Server. * @return The greeting from the EPP Server * @throws org.openrtk.idl.epp0402.epp_Exception if the server greeting is not present * @throws org.openrtk.idl.epp0402.epp_XMLException if the server's greeting is not parsable */ public epp_Greeting hello() throws epp_Exception, epp_XMLException { String method_name = "hello()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); EPPGreeting hello_from_server; hello_from_server = new EPPGreeting(); hello_from_server = (EPPGreeting) processAction( (epp_Action) hello_from_server ); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return hello_from_server.getResponseData(); } /** * Closes the connection to the EPP Server. * Nulls the transport so it must be recreated for subsequent * connections with the same instance of EPPClient. If * setTransport() or setSocketToEPPServer() were called to * create the transport, then they must be called again. * @throws IOException if there was a Socket problem */ public void disconnect() throws IOException { String method_name = "disconnect()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); this.isValid = false; if ( transport_ != null ) { transport_.disconnect(); transport_ = null; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Logs into the EPP Server using previously set client id and password. * Call setEPPServices() or setEPPUnspecServices() before this method if you want to add epp services * or epp unspecified services. * @param client_tr_id The client TRID String * @throws org.openrtk.idl.epp0402.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp0402.epp_Exception if the EPP Server responded with an error code */ public void login(String client_tr_id) throws epp_XMLException, epp_Exception { login(client_tr_id, null); } /** * Logs into the EPP Server using the given client id, password. * Call setEPPServices() or setEPPUnspecServices() before this method if you want to add epp services * or epp unspecified services. * @param String the client TRID * @param client_id The EPP client id * @param password The password associated with the client id * @throws org.openrtk.idl.epp0402.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp0402.epp_Exception if the EPP Server responded with an error code */ public void login(String client_tr_id, String epp_client_id, String epp_password) throws epp_XMLException, epp_Exception { setEPPClientID(epp_client_id); setEPPPassword(epp_password); login(client_tr_id, null); } /** * Logs into the EPP Server using the given client id, password and new password. * Use this method if you want to change your EPP client password in the server.<BR> * Call setEPPServices() or setEPPUnspecServices() before this method if you want to add epp services * or epp unspecified services. * @param client_tr_id The client TRID String * @param client_id The EPP client id * @param password The password associated with the client id * @param new_password The password associated with the client id, use null if you do not want to change the password * @throws org.openrtk.idl.epp0402.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp0402.epp_Exception if the EPP Server responded with an error code */ public void login(String client_tr_id, String client_id, String password, String new_password) throws epp_XMLException, epp_Exception { setEPPClientID(client_id); setEPPPassword(password); login(client_tr_id, new_password); } /** * Logs into the EPP Server using the previously set client id, and password. * If the new password is not null, it is also passed to the server to * change your EPP client password.<BR> * This method also includes default domain, host and contact object/XML information * in the services section. If you wish to set your own services and unspecified services, * call setEPPServices() and setEPPUnspecServices() before this method, * or you'll have to populate the EPPLogin command manually and call * processAction() yourself.<br> * If an exception occurs, it is internall caught here, the isValid * value is set to false and the exception is rethrown. * @param String the client TRID * @param new_password The password associated with the client id. Use null if you do not want to change the password * @throws org.openrtk.idl.epp0402.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp0402.epp_Exception if the EPP Server responded with an error code */ public void login(String client_tr_id, String new_password) throws epp_XMLException, epp_Exception { String method_name = "login()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); epp_LoginReq login_req = new epp_LoginReq(); epp_Credentials creds = new epp_Credentials(epp_client_id_, epp_password_, new_password, null); creds.setOptions( new epp_Options(version_, lang_) ); epp_Command command_data = new epp_Command(creds, null, client_tr_id); if( sendver_ ) command_data.setUnspec( new com.tucows.oxrs.epp0402.rtk.xml.unspec.RTKVersion() ); if ( epp_services_ != null ) login_req.setServices( epp_services_ ); else { epp_Service[] services = new epp_Service[3]; services[0] = new epp_Service("domain", "urn:iana:xml:ns:domain-1.0", "urn:iana:xml:ns:domain-1.0 domain-1.0.xsd"); services[1] = new epp_Service("host", "urn:iana:xml:ns:host-1.0", "urn:iana:xml:ns:host-1.0 host-1.0.xsd"); services[2] = new epp_Service("contact", "urn:iana:xml:ns:contact-1.0", "urn:iana:xml:ns:contact-1.0 contact-1.0.xsd"); login_req.setServices( services ); } if ( epp_unspec_services_ != null ) login_req.setUnspecServices( epp_unspec_services_ ); login_req.setCmd( command_data ); EPPLogin login_action = new EPPLogin(); login_action.setRequestData(login_req); try{ processAction((epp_Action)login_action); }catch(epp_XMLException e){ isValid = false; throw e; } catch(epp_Exception e){ isValid = false; throw e; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Logs out of EPP Server * @param client_trid the client TRID, can be null * @throws org.openrtk.idl.epp0402.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp0402.epp_Exception if the EPP Server responded with an error code */ public void logout(String client_trid) throws epp_XMLException, epp_Exception { String method_name = "logout()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); EPPLogout logout_action = new EPPLogout(); epp_LogoutReq logout_request = new epp_LogoutReq(); logout_request.m_client_trid = client_trid; logout_action.setRequestData(logout_request); processAction((epp_Action)logout_action); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Returns whether RTK version number will be send on Login. * * @return true in case RTK version number will be send on Login, else false */ public boolean isVersionSentOnLogin() { return sendver_; } /** * Set whether to send RTK version number on Login. * * @param send If true, RTK version number will be send in unspec section on * Login */ public void setVersionSentOnLogin( boolean send ) { sendver_ = send; } /** * Sends a poll request to the server. * If there is a message in the response, the user should subsequently * call poll(String, String), providing the message's id to acknowledge * receipt of the message from the server. * @param client_tr_id The client TRID for the EPP request * @return The poll response as epp_PollRsp * @throws org.openrtk.idl.epp0402.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp0402.epp_Exception if the EPP Server responded with an error code * @see #poll(String, String) */ public epp_PollRsp poll(String client_tr_id) throws epp_XMLException, epp_Exception { return poll(client_tr_id, null); } /** * Sends a poll request or acknowledge to the server. * @param client_tr_id The client TRID for the EPP request * @param message_id The id of the message to ACK. If null, the Poll op will be REQ. * @return The poll response as epp_PollRsp * @throws org.openrtk.idl.epp0402.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp0402.epp_Exception if the EPP Server responded with an error code */ public epp_PollRsp poll(String client_tr_id, String message_id) throws epp_XMLException, epp_Exception { String method_name = "Poll()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); epp_PollReq poll_request = new epp_PollReq(); epp_Command command_data = new epp_Command(null, null, client_tr_id); poll_request.m_cmd = command_data; if ( message_id == null ) { poll_request.m_op = epp_PollOpType.REQ; } else { poll_request.m_op = epp_PollOpType.ACK; poll_request.m_msgID = message_id; } EPPPoll poll = new EPPPoll(); poll.setRequestData(poll_request); poll = (EPPPoll) processAction(poll); epp_PollRsp poll_response = poll.getResponseData(); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return poll_response; } } --- NEW FILE: RTKBase.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/RTKBase.java,v 1.1 2003/03/21 16:35:34 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 16:35:34 $ */ package com.tucows.oxrs.epp0402.rtk; import java.text.*; import java.util.*; import java.io.*; /** * RTK Base -- Base of the registrar tool kit. All RTK classes inherit from this one. * Defines: debug method and constants; date formats. * Note that despite this class extending a CORBA Object class, it does not make * any promises of CORBA functionality. Extension of the CORBA ObjectImpl was required * because of the methods required by the RTK IDL interfaces. * * @author Daniel Manley * @version $Revision: 1.1 $ $Date: 2003/03/21 16:35:34 $ **/ public abstract class RTKBase extends org.omg.CORBA.portable.ObjectImpl { /** * RTK Version number. */ public static final String RTK_VERSION = "0.4.3"; /** * Defined as "\r\n". Used to complete a request to the EPP Server. */ protected static final String CRLF = "\r\n"; /** * Debug level for no debug output. */ public static final int DEBUG_NONE = 0; /** * Debug level for sending exceptions to System.err. */ public static final int DEBUG_LEVEL_ONE = 1; /** * Debug level for debugging points on interest throughout the RTK code, * including display of XML messages to and from the EPP Server */ public static final int DEBUG_LEVEL_TWO = 2; /** * Debug level for showing all debugging output, which * include entry and exit of methods. */ public static final int DEBUG_LEVEL_THREE = 3; private static int debug_level_ = DEBUG_NONE; private static PrintStream debug_print_stream_ = System.err; private static Properties rtk_properties_ = null; /** * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.0'Z'". * This is the format returned by the EPP Server in timestamps * (eg. expiration date, last modified date, etc...). It can be used * to convert String dates into Date objects. eg:</P> * <PRE>java.util.Date date_object = UTC_FMT.parse(date_string); </PRE> */ public static final DateFormat UTC_FMT = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.0'Z'"); /** * DateFormat for "yyyy-MM-dd". * It can be used to convert String dates into Date objects * and vice versa. eg:</P> * <PRE>String date_string = DATE_FMT.format(date_object); </PRE> */ public static final DateFormat DATE_FMT = new SimpleDateFormat("yyyy-MM-dd"); /** * Accessor method for the debug level. Use DEBUG_LEVEL_NONE, * DEBUG_LEVEL_ONE, DEBUG_LEVEL_TWO, or DEBUG_LEVEL_THREE. * @param value The debug level */ public static void setDebugLevel(int value) { debug_level_ = value; } /** * Accessor method for the debug level. * Sets the debug level using the setting found in the RTK properties. * Uses a default of DEBUG_LEVEL_ONE if the setting is not found * in the properties or if the setting is invalid. */ public static void setDebugLevel() { int rtk_debuglevel = RTKBase.DEBUG_LEVEL_ONE; try { String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debuglevel"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } catch (Exception xcp) { // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. System.err.println("couldn't parse the rtk.debuglevel ... maybe it wasn't a number"); } RTKBase.setDebugLevel(rtk_debuglevel); } /** * Accessor method for the debug level * @return The current debug level */ public static int getDebugLevel() { return debug_level_; } /** * Accessor method for the debug output stream. * The default is System.err * @param stream The debug's new output stream */ public static void setDebugPrintStream(PrintStream stream) { if ( stream != null ) { debug_print_stream_ = stream; } } /** * Accessor method for the debug output stream * @return The current debug output stream */ public static PrintStream getDebugPrintStream() { return debug_print_stream_; } /** * Prints a debug message to System.err. If the set debug level * is greater than or equal to the given level, then the message * is printed. The print out includes the class name, the given * method name, the current date and time, the given debug level * of this message, and the message itself. * @param level the debug level of this message * @param method_name the method name String * @param message the message String */ public void debug(int level, String method_name, String message) { if ( debug_level_ >= level ) { debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } /** * Prints an exception to System.err, including its stack trace. * If the set debug level is greater than or equal to the given level, * then the exception is reported is reported. * The print out includes the class name, the given * method name, the current date and time, the given debug level * of this exception, the exception class name and the exception's message. * This is followed by the stack trace. * @param level the debug level of this message * @param method_name the method name String * @param xcp the exception to be reported */ public void debug(int level, String method_name, Exception xcp) { if ( debug_level_ >= level ) { debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(debug_print_stream_); } } /** * 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; } /** * Returns the global properties for the RTK. * By default the properties are empty. If the RTK user specifies * the system property "rtk.props.file", then that file will be loaded. * If there is a problem loading that file, then an exception will * be thrown. * @return The RTK Properties contained in the rtk.properties file. * @throws FileNotFoundException If rtk.props.file System property doesn't point to the rtk.properties file * @throws IOException If there are problems reading the rtk.properties file */ public static Properties getRTKProperties() throws FileNotFoundException, IOException { if ( rtk_properties_ == null ) { Properties system_props = System.getProperties(); String rtk_props_file = (String) system_props.getProperty("rtk.props.file"); rtk_properties_ = new Properties(); if ( rtk_props_file != null && rtk_props_file.length() != 0 ) { // so only try to load the properties from a file // if one was specified. If the file is not found, // well, then, a real exception will be thrown. rtk_properties_.load(new FileInputStream(rtk_props_file)); } } return rtk_properties_; } } |
From: Daniel M. <tub...@us...> - 2003-03-21 16:35:19
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport In directory sc8-pr-cvs1:/tmp/cvs-serv9422/transport Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/transport added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:35:19
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv9422/xml Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml added to the repository |