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 17:15:47
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml/unspec In directory sc8-pr-cvs1:/tmp/cvs-serv31010/unspec Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml/unspec added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:15:18
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02 In directory sc8-pr-cvs1:/tmp/cvs-serv31385/epp02 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02 added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:14:19
|
Update of /cvsroot/epp-rtk/epp-rtk/java/doc/02 In directory sc8-pr-cvs1:/tmp/cvs-serv1027/02 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/doc/02 added to the repository |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/domain In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/org/openrtk/idl/epp02/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_DomainUpdate.java epp_DomainUpdateAddRemove.java epp_DomainUpdateChange.java epp_DomainUpdateOperations.java epp_DomainUpdateReq.java epp_DomainUpdateRsp.java Log Message: pulled in epp02 java RTK classes --- NEW FILE: epp_DomainCheck.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCheck.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainCheck extends epp_DomainCheckOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainCheck --- NEW FILE: epp_DomainCheckOperations.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCheckOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainCheckOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.domain.epp_DomainCheckReq parms); org.openrtk.idl.epp02.domain.epp_DomainCheckRsp getResponseData (); } // interface epp_DomainCheckOperations --- NEW FILE: epp_DomainCheckReq.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCheckReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ //////////////////// public class epp_DomainCheckReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_names[] = null; public epp_DomainCheckReq () { } // ctor public epp_DomainCheckReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String[] _m_names) { m_cmd = _m_cmd; m_names = _m_names; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setNames(String[] value) { m_names = value; } public String[] getNames() { return m_names; } 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 --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCheckRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainCheckRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public org.openrtk.idl.epp02.epp_CheckResult m_results[] = null; public epp_DomainCheckRsp () { } // ctor public epp_DomainCheckRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, org.openrtk.idl.epp02.epp_CheckResult[] _m_results) { m_rsp = _m_rsp; m_results = _m_results; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setResults(org.openrtk.idl.epp02.epp_CheckResult[] value) { m_results = value; } public org.openrtk.idl.epp02.epp_CheckResult[] getResults() { return m_results; } 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 --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainContact.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainContact implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.domain.epp_DomainContactType m_type = null; public String m_roid = null; public epp_DomainContact () { } // ctor public epp_DomainContact (org.openrtk.idl.epp02.domain.epp_DomainContactType _m_type, String _m_roid) { m_type = _m_type; m_roid = _m_roid; } // ctor public void setType(org.openrtk.idl.epp02.domain.epp_DomainContactType value) { m_type = value; } public org.openrtk.idl.epp02.domain.epp_DomainContactType getType() { return m_type; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_roid ["+m_roid+"] }"; } } // class epp_DomainContact --- NEW FILE: epp_DomainContactType.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainContactType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainContactType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 3; private static org.openrtk.idl.epp02.domain.epp_DomainContactType[] __array = new org.openrtk.idl.epp02.domain.epp_DomainContactType [__size]; public static final int _ADMIN = 0; public static final org.openrtk.idl.epp02.domain.epp_DomainContactType ADMIN = new org.openrtk.idl.epp02.domain.epp_DomainContactType(_ADMIN); public static final int _BILLING = 1; public static final org.openrtk.idl.epp02.domain.epp_DomainContactType BILLING = new org.openrtk.idl.epp02.domain.epp_DomainContactType(_BILLING); public static final int _TECH = 2; public static final org.openrtk.idl.epp02.domain.epp_DomainContactType TECH = new org.openrtk.idl.epp02.domain.epp_DomainContactType(_TECH); public int value () { return __value; } public static org.openrtk.idl.epp02.domain.epp_DomainContactType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_DomainContactType (int value) { __value = value; __array[__value] = this; } } // class epp_DomainContactType --- NEW FILE: epp_DomainCreate.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCreate.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainCreate extends epp_DomainCreateOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainCreate --- NEW FILE: epp_DomainCreateOperations.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCreateOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainCreateOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.domain.epp_DomainCreateReq parms); org.openrtk.idl.epp02.domain.epp_DomainCreateRsp getResponseData (); } // interface epp_DomainCreateOperations --- NEW FILE: epp_DomainCreateReq.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCreateReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ ///////////////////// public class epp_DomainCreateReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public org.openrtk.idl.epp02.domain.epp_DomainPeriod m_period = null; public String m_name_servers[] = null; public String m_registrant = null; public org.openrtk.idl.epp02.domain.epp_DomainContact m_contacts[] = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_DomainCreateReq () { } // ctor public epp_DomainCreateReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp02.domain.epp_DomainPeriod _m_period, String[] _m_name_servers, String _m_registrant, org.openrtk.idl.epp02.domain.epp_DomainContact[] _m_contacts, org.openrtk.idl.epp02.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 public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setPeriod(org.openrtk.idl.epp02.domain.epp_DomainPeriod value) { m_period = value; } public org.openrtk.idl.epp02.domain.epp_DomainPeriod getPeriod() { return m_period; } public void setNameServers(String[] value) { m_name_servers = value; } public String[] getNameServers() { return m_name_servers; } public void setRegistrant(String value) { m_registrant = value; } public String getRegistrant() { return m_registrant; } public void setContacts(org.openrtk.idl.epp02.domain.epp_DomainContact[] value) { m_contacts = value; } public org.openrtk.idl.epp02.domain.epp_DomainContact[] getContacts() { return m_contacts; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } 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 --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainCreateRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainCreateRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_name = null; public String m_roid = null; public String m_expiration_date = null; public epp_DomainCreateRsp () { } // ctor public epp_DomainCreateRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_name, String _m_roid, String _m_expiration_date) { m_rsp = _m_rsp; m_name = _m_name; m_roid = _m_roid; m_expiration_date = _m_expiration_date; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setExpirationDate(String value) { m_expiration_date = value; } public String getExpirationDate() { return m_expiration_date; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_name ["+m_name+"] m_roid ["+m_roid+"] m_expiration_date ["+m_expiration_date+"] }"; } } // class epp_DomainCreateRsp --- NEW FILE: epp_DomainDelete.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainDelete.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainDelete extends epp_DomainDeleteOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainDelete --- NEW FILE: epp_DomainDeleteOperations.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainDeleteOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainDeleteOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.domain.epp_DomainDeleteReq parms); org.openrtk.idl.epp02.domain.epp_DomainDeleteRsp getResponseData (); } // interface epp_DomainDeleteOperations --- NEW FILE: epp_DomainDeleteReq.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainDeleteReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ //////////////////// public class epp_DomainDeleteReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public epp_DomainDeleteReq () { } // ctor public epp_DomainDeleteReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_DomainDeleteReq --- NEW FILE: epp_DomainDeleteRsp.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainDeleteRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainDeleteRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_DomainDeleteRsp () { } // ctor public epp_DomainDeleteRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_DomainDeleteRsp --- NEW FILE: epp_DomainInfo.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainInfo.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainInfo extends epp_DomainInfoOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainInfo --- NEW FILE: epp_DomainInfoOperations.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainInfoOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainInfoOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.domain.epp_DomainInfoReq parms); org.openrtk.idl.epp02.domain.epp_DomainInfoRsp getResponseData (); } // interface epp_DomainInfoOperations --- NEW FILE: epp_DomainInfoReq.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainInfoReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ /////////////////// public class epp_DomainInfoReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public epp_DomainInfoReq () { } // ctor public epp_DomainInfoReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_DomainInfoReq --- NEW FILE: epp_DomainInfoRsp.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainInfoRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainInfoRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_name = null; public String m_roid = null; public org.openrtk.idl.epp02.domain.epp_DomainStatus m_status[] = null; public String m_registrant = null; public org.openrtk.idl.epp02.domain.epp_DomainContact m_contacts[] = null; public String m_name_servers[] = null; public String m_hosts[] = null; public String m_client_id = null; public String m_created_by = null; public String m_created_date = null; public String m_updated_by = null; public String m_updated_date = null; public String m_expiration_date = null; public String m_transfer_date = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_DomainInfoRsp () { } // ctor public epp_DomainInfoRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_name, String _m_roid, org.openrtk.idl.epp02.domain.epp_DomainStatus[] _m_status, String _m_registrant, org.openrtk.idl.epp02.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.epp02.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 public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setStatus(org.openrtk.idl.epp02.domain.epp_DomainStatus[] value) { m_status = value; } public org.openrtk.idl.epp02.domain.epp_DomainStatus[] getStatus() { return m_status; } public void setRegistrant(String value) { m_registrant = value; } public String getRegistrant() { return m_registrant; } public void setContacts(org.openrtk.idl.epp02.domain.epp_DomainContact[] value) { m_contacts = value; } public org.openrtk.idl.epp02.domain.epp_DomainContact[] getContacts() { return m_contacts; } public void setNameServers(String[] value) { m_name_servers = value; } public String[] getNameServers() { return m_name_servers; } public void setHosts(String[] value) { m_hosts = value; } public String[] getHosts() { return m_hosts; } public void setClientId(String value) { m_client_id = value; } public String getClientId() { return m_client_id; } public void setCreatedBy(String value) { m_created_by = value; } public String getCreatedBy() { return m_created_by; } public void setCreatedDate(String value) { m_created_date = value; } public String getCreatedDate() { return m_created_date; } public void setUpdatedBy(String value) { m_updated_by = value; } public String getUpdatedBy() { return m_updated_by; } public void setUpdatedDate(String value) { m_updated_date = value; } public String getUpdatedDate() { return m_updated_date; } public void setExpirationDate(String value) { m_expiration_date = value; } public String getExpirationDate() { return m_expiration_date; } public void setTransferDate(String value) { m_transfer_date = value; } public String getTransferDate() { return m_transfer_date; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } 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_registrant ["+m_registrant+"] m_contacts ["+(m_contacts != null ? java.util.Arrays.asList(m_contacts) : null)+"] m_name_servers ["+(m_name_servers != null ? java.util.Arrays.asList(m_name_servers) : null)+"] m_hosts ["+(m_hosts != null ? java.util.Arrays.asList(m_hosts) : 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_expiration_date ["+m_expiration_date+"] m_transfer_date ["+m_transfer_date+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_DomainInfoRsp --- NEW FILE: epp_DomainPeriod.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainPeriod.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ ///////////////////////////////////// public class epp_DomainPeriod implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType m_unit = null; public short m_value = (short)0; public epp_DomainPeriod () { } // ctor public epp_DomainPeriod (org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType _m_unit, short _m_value) { m_unit = _m_unit; m_value = _m_value; } // ctor public void setUnit(org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType value) { m_unit = value; } public org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType getUnit() { return m_unit; } public void setValue(short value) { m_value = value; } // added "int" setter by request of aeden at signaturedomains dot com public void setValue(int value) { m_value = (short)value; } public short getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_unit ["+m_unit+"] m_value ["+m_value+"] }"; } } // class epp_DomainPeriod --- NEW FILE: epp_DomainPeriodUnitType.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainPeriodUnitType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainPeriodUnitType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 2; private static org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType[] __array = new org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType [__size]; public static final int _YEAR = 0; public static final org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType YEAR = new org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType(_YEAR); public static final int _MONTH = 1; public static final org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType MONTH = new org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType(_MONTH); public int value () { return __value; } public static org.openrtk.idl.epp02.domain.epp_DomainPeriodUnitType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_DomainPeriodUnitType (int value) { __value = value; __array[__value] = this; } } // class epp_DomainPeriodUnitType --- NEW FILE: epp_DomainRenew.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainRenew.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainRenew extends epp_DomainRenewOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainRenew --- NEW FILE: epp_DomainRenewOperations.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainRenewOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainRenewOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.domain.epp_DomainRenewReq parms); org.openrtk.idl.epp02.domain.epp_DomainRenewRsp getResponseData (); } // interface epp_DomainRenewOperations --- NEW FILE: epp_DomainRenewReq.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainRenewReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ //////////////////// public class epp_DomainRenewReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public String m_current_expiration_date = null; public org.openrtk.idl.epp02.domain.epp_DomainPeriod m_period = null; public epp_DomainRenewReq () { } // ctor public epp_DomainRenewReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name, String _m_current_expiration_date, org.openrtk.idl.epp02.domain.epp_DomainPeriod _m_period) { m_cmd = _m_cmd; m_name = _m_name; m_current_expiration_date = _m_current_expiration_date; m_period = _m_period; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setCurrentExpirationDate(String value) { m_current_expiration_date = value; } public String getCurrentExpirationDate() { return m_current_expiration_date; } public void setPeriod(org.openrtk.idl.epp02.domain.epp_DomainPeriod value) { m_period = value; } public org.openrtk.idl.epp02.domain.epp_DomainPeriod getPeriod() { return m_period; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] m_current_expiration_date ["+m_current_expiration_date+"] m_period ["+m_period+"] }"; } } // class epp_DomainRenewReq --- NEW FILE: epp_DomainRenewRsp.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainRenewRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainRenewRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_name = null; public String m_roid = null; public String m_expiration_date = null; public epp_DomainRenewRsp () { } // ctor public epp_DomainRenewRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_name, String _m_roid, String _m_expiration_date) { m_rsp = _m_rsp; m_name = _m_name; m_roid = _m_roid; m_expiration_date = _m_expiration_date; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setExpirationDate(String value) { m_expiration_date = value; } public String getExpirationDate() { return m_expiration_date; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_name ["+m_name+"] m_roid ["+m_roid+"] m_expiration_date ["+m_expiration_date+"] }"; } } // class epp_DomainRenewRsp --- NEW FILE: epp_DomainStatus.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainStatus.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:06 PM EDT */ public class epp_DomainStatus implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.domain.epp_DomainStatusType m_type = null; public String m_lang = null; public String m_value = null; public epp_DomainStatus () { } // ctor public epp_DomainStatus (org.openrtk.idl.epp02.domain.epp_DomainStatusType _m_type, String _m_lang, String _m_value) { m_type = _m_type; m_lang = _m_lang; m_value = _m_value; } // ctor public void setType(org.openrtk.idl.epp02.domain.epp_DomainStatusType value) { m_type = value; } public org.openrtk.idl.epp02.domain.epp_DomainStatusType getType() { return m_type; } public void setLang(String value) { m_lang = value; } public String getLang() { return m_lang; } public void setValue(String value) { m_value = value; } public String getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_lang ["+m_lang+"] m_value ["+m_value+"] }"; } } // class epp_DomainStatus --- NEW FILE: epp_DomainStatusType.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainStatusType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:06 PM EDT */ /////////////////////////// public class epp_DomainStatusType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 12; private static org.openrtk.idl.epp02.domain.epp_DomainStatusType[] __array = new org.openrtk.idl.epp02.domain.epp_DomainStatusType [__size]; public static final int _HOLD = 0; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType HOLD = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_HOLD); public static final int _INACTIVE = 1; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType INACTIVE = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_INACTIVE); public static final int _LOCK = 2; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType LOCK = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_LOCK); public static final int _NEW = 3; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType NEW = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_NEW); public static final int _OK = 4; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType OK = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_OK); public static final int _PENDING_DELETE = 5; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType PENDING_DELETE = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_PENDING_DELETE); public static final int _PENDING_TRANSFER = 6; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType PENDING_TRANSFER = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_PENDING_TRANSFER); public static final int _PENDING_VERIFICATION = 7; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType PENDING_VERIFICATION = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_PENDING_VERIFICATION); public static final int _CLIENT_HOLD = 8; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType CLIENT_HOLD = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_CLIENT_HOLD); public static final int _CLIENT_LOCK = 9; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType CLIENT_LOCK = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_CLIENT_LOCK); public static final int _CLIENT_TRANSFER_PROHIBITED = 10; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType CLIENT_TRANSFER_PROHIBITED = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_CLIENT_TRANSFER_PROHIBITED); public static final int _ACTIVE = 11; public static final org.openrtk.idl.epp02.domain.epp_DomainStatusType ACTIVE = new org.openrtk.idl.epp02.domain.epp_DomainStatusType(_ACTIVE); public int value () { return __value; } public static org.openrtk.idl.epp02.domain.epp_DomainStatusType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_DomainStatusType (int value) { __value = value; __array[__value] = this; } } // class epp_DomainStatusType --- NEW FILE: epp_DomainTransfer.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainTransfer.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainTransfer extends epp_DomainTransferOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainTransfer --- NEW FILE: epp_DomainTransferOperations.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainTransferOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainTransferOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.domain.epp_DomainTransferReq parms); org.openrtk.idl.epp02.domain.epp_DomainTransferRsp getResponseData (); } // interface epp_DomainTransferOperations --- NEW FILE: epp_DomainTransferReq.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainTransferReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ /////////////////////// public class epp_DomainTransferReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public org.openrtk.idl.epp02.epp_TransferRequest m_trans = null; public String m_name = null; public org.openrtk.idl.epp02.domain.epp_DomainPeriod m_period = null; public epp_DomainTransferReq () { } // ctor public epp_DomainTransferReq (org.openrtk.idl.epp02.epp_Command _m_cmd, org.openrtk.idl.epp02.epp_TransferRequest _m_trans, String _m_name, org.openrtk.idl.epp02.domain.epp_DomainPeriod _m_period) { m_cmd = _m_cmd; m_trans = _m_trans; m_name = _m_name; m_period = _m_period; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setTrans(org.openrtk.idl.epp02.epp_TransferRequest value) { m_trans = value; } public org.openrtk.idl.epp02.epp_TransferRequest getTrans() { return m_trans; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setPeriod(org.openrtk.idl.epp02.domain.epp_DomainPeriod value) { m_period = value; } public org.openrtk.idl.epp02.domain.epp_DomainPeriod getPeriod() { return m_period; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_trans ["+m_trans+"] m_name ["+m_name+"] m_period ["+m_period+"] }"; } } // class epp_DomainTransferReq --- NEW FILE: epp_DomainTransferRsp.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainTransferRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainTransferRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_name = null; public org.openrtk.idl.epp02.epp_TransferStatusType m_transfer_status = null; public String m_request_client_id = null; public String m_action_client_id = null; public String m_request_date = null; public String m_action_date = null; public String m_expiration_date = null; public epp_DomainTransferRsp () { } // ctor public epp_DomainTransferRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_name, org.openrtk.idl.epp02.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_action_client_id, String _m_request_date, String _m_action_date, String _m_expiration_date) { m_rsp = _m_rsp; m_name = _m_name; m_transfer_status = _m_transfer_status; m_request_client_id = _m_request_client_id; m_action_client_id = _m_action_client_id; m_request_date = _m_request_date; m_action_date = _m_action_date; m_expiration_date = _m_expiration_date; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setTransferStatus(org.openrtk.idl.epp02.epp_TransferStatusType value) { m_transfer_status = value; } public org.openrtk.idl.epp02.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } public void setRequestClientId(String value) { m_request_client_id = value; } public String getRequestClientId() { return m_request_client_id; } public void setActionClientId(String value) { m_action_client_id = value; } public String getActionClientId() { return m_action_client_id; } public void setRequestDate(String value) { m_request_date = value; } public String getRequestDate() { return m_request_date; } public void setActionDate(String value) { m_action_date = value; } public String getActionDate() { return m_action_date; } public void setExpirationDate(String value) { m_expiration_date = value; } public String getExpirationDate() { return m_expiration_date; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_name ["+m_name+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_action_client_id ["+m_action_client_id+"] m_request_date ["+m_request_date+"] m_action_date ["+m_action_date+"] m_expiration_date ["+m_expiration_date+"] }"; } } // class epp_DomainTransferRsp --- NEW FILE: epp_DomainUpdate.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainUpdate.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainUpdate extends epp_DomainUpdateOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_DomainUpdate --- NEW FILE: epp_DomainUpdateAddRemove.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainUpdateAddRemove.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ ///////////////////// public class epp_DomainUpdateAddRemove implements org.omg.CORBA.portable.IDLEntity { public String m_name_servers[] = null; public org.openrtk.idl.epp02.domain.epp_DomainContact m_contacts[] = null; public org.openrtk.idl.epp02.domain.epp_DomainStatus m_status[] = null; public epp_DomainUpdateAddRemove () { } // ctor public epp_DomainUpdateAddRemove (String[] _m_name_servers, org.openrtk.idl.epp02.domain.epp_DomainContact[] _m_contacts, org.openrtk.idl.epp02.domain.epp_DomainStatus[] _m_status) { m_name_servers = _m_name_servers; m_contacts = _m_contacts; m_status = _m_status; } // ctor public void setNameServers(String[] value) { m_name_servers = value; } public String[] getNameServers() { return m_name_servers; } public void setContacts(org.openrtk.idl.epp02.domain.epp_DomainContact[] value) { m_contacts = value; } public org.openrtk.idl.epp02.domain.epp_DomainContact[] getContacts() { return m_contacts; } public void setStatus(org.openrtk.idl.epp02.domain.epp_DomainStatus[] value) { m_status = value; } public org.openrtk.idl.epp02.domain.epp_DomainStatus[] getStatus() { return m_status; } public String toString() { return this.getClass().getName() + ": { m_name_servers ["+(m_name_servers != null ? java.util.Arrays.asList(m_name_servers) : null)+"] m_contacts ["+(m_contacts != null ? java.util.Arrays.asList(m_contacts) : null)+"] m_status ["+(m_status != null ? java.util.Arrays.asList(m_status) : null)+"] }"; } } // class epp_DomainUpdateAddRemove --- NEW FILE: epp_DomainUpdateChange.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainUpdateChange.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainUpdateChange implements org.omg.CORBA.portable.IDLEntity { public String m_registrant = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_DomainUpdateChange () { } // ctor public epp_DomainUpdateChange (String _m_registrant, org.openrtk.idl.epp02.epp_AuthInfo _m_auth_info) { m_registrant = _m_registrant; m_auth_info = _m_auth_info; } // ctor public void setRegistrant(String value) { m_registrant = value; } public String getRegistrant() { return m_registrant; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } public String toString() { return this.getClass().getName() + ": { m_registrant ["+m_registrant+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_DomainUpdateChange --- NEW FILE: epp_DomainUpdateOperations.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainUpdateOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public interface epp_DomainUpdateOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.domain.epp_DomainUpdateReq parms); org.openrtk.idl.epp02.domain.epp_DomainUpdateRsp getResponseData (); } // interface epp_DomainUpdateOperations --- NEW FILE: epp_DomainUpdateReq.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainUpdateReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainUpdateReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove m_add = null; public org.openrtk.idl.epp02.domain.epp_DomainUpdateChange m_change = null; public org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove m_remove = null; public epp_DomainUpdateReq () { } // ctor public epp_DomainUpdateReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove _m_add, org.openrtk.idl.epp02.domain.epp_DomainUpdateChange _m_change, org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove _m_remove) { m_cmd = _m_cmd; m_name = _m_name; m_add = _m_add; m_change = _m_change; m_remove = _m_remove; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setAdd(org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove value) { m_add = value; } public org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove getAdd() { return m_add; } public void setChange(org.openrtk.idl.epp02.domain.epp_DomainUpdateChange value) { m_change = value; } public org.openrtk.idl.epp02.domain.epp_DomainUpdateChange getChange() { return m_change; } public void setRemove(org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove value) { m_remove = value; } public org.openrtk.idl.epp02.domain.epp_DomainUpdateAddRemove getRemove() { return m_remove; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] m_add ["+m_add+"] m_change ["+m_change+"] m_remove ["+m_remove+"] }"; } } // class epp_DomainUpdateReq --- NEW FILE: epp_DomainUpdateRsp.java --- package org.openrtk.idl.epp02.domain; /** * org/openrtk/idl/epp/domain/epp_DomainUpdateRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_domain.idl * Thursday, July 26, 2001 6:26:07 PM EDT */ public class epp_DomainUpdateRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_DomainUpdateRsp () { } // ctor public epp_DomainUpdateRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_DomainUpdateRsp |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/host In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/org/openrtk/idl/epp02/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 epp02 java RTK classes --- NEW FILE: epp_HostAddress.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostAddress.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:09 PM EDT */ public class epp_HostAddress implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.host.epp_HostAddressType m_type = null; public String m_ip = null; public epp_HostAddress () { } // ctor public epp_HostAddress (org.openrtk.idl.epp02.host.epp_HostAddressType _m_type, String _m_ip) { m_type = _m_type; m_ip = _m_ip; } // ctor public void setType(org.openrtk.idl.epp02.host.epp_HostAddressType value) { m_type = value; } public org.openrtk.idl.epp02.host.epp_HostAddressType getType() { return m_type; } public void setIp(String value) { m_ip = value; } public String getIp() { return m_ip; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_ip ["+m_ip+"] }"; } } // class epp_HostAddress --- NEW FILE: epp_HostAddressType.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostAddressType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:09 PM EDT */ public class epp_HostAddressType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 2; private static org.openrtk.idl.epp02.host.epp_HostAddressType[] __array = new org.openrtk.idl.epp02.host.epp_HostAddressType [__size]; public static final int _IPV4 = 0; public static final org.openrtk.idl.epp02.host.epp_HostAddressType IPV4 = new org.openrtk.idl.epp02.host.epp_HostAddressType(_IPV4); public static final int _IPV6 = 1; public static final org.openrtk.idl.epp02.host.epp_HostAddressType IPV6 = new org.openrtk.idl.epp02.host.epp_HostAddressType(_IPV6); public int value () { return __value; } public static org.openrtk.idl.epp02.host.epp_HostAddressType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_HostAddressType (int value) { __value = value; __array[__value] = this; } } // class epp_HostAddressType --- NEW FILE: epp_HostCheck.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCheck.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostCheck extends epp_HostCheckOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostCheck --- NEW FILE: epp_HostCheckOperations.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCheckOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostCheckOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.host.epp_HostCheckReq parms); org.openrtk.idl.epp02.host.epp_HostCheckRsp getResponseData (); } // interface epp_HostCheckOperations --- NEW FILE: epp_HostCheckReq.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCheckReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ ////////////////// public class epp_HostCheckReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_names[] = null; public epp_HostCheckReq () { } // ctor public epp_HostCheckReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String[] _m_names) { m_cmd = _m_cmd; m_names = _m_names; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setNames(String[] value) { m_names = value; } public String[] getNames() { return m_names; } 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 --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCheckRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public class epp_HostCheckRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public org.openrtk.idl.epp02.epp_CheckResult m_results[] = null; public epp_HostCheckRsp () { } // ctor public epp_HostCheckRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, org.openrtk.idl.epp02.epp_CheckResult[] _m_results) { m_rsp = _m_rsp; m_results = _m_results; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setResults(org.openrtk.idl.epp02.epp_CheckResult[] value) { m_results = value; } public org.openrtk.idl.epp02.epp_CheckResult[] getResults() { return m_results; } 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 --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCreate.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostCreate extends epp_HostCreateOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostCreate --- NEW FILE: epp_HostCreateOperations.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCreateOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostCreateOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.host.epp_HostCreateReq parms); org.openrtk.idl.epp02.host.epp_HostCreateRsp getResponseData (); } // interface epp_HostCreateOperations --- NEW FILE: epp_HostCreateReq.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCreateReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ /////////////////// public class epp_HostCreateReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public org.openrtk.idl.epp02.host.epp_HostAddress m_addresses[] = null; public epp_HostCreateReq () { } // ctor public epp_HostCreateReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp02.host.epp_HostAddress[] _m_addresses) { m_cmd = _m_cmd; m_name = _m_name; m_addresses = _m_addresses; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setAddresses(org.openrtk.idl.epp02.host.epp_HostAddress[] value) { m_addresses = value; } public org.openrtk.idl.epp02.host.epp_HostAddress[] getAddresses() { return m_addresses; } 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 --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostCreateRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public class epp_HostCreateRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_name = null; public String m_roid = null; public epp_HostCreateRsp () { } // ctor public epp_HostCreateRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_name, String _m_roid) { m_rsp = _m_rsp; m_name = _m_name; m_roid = _m_roid; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_name ["+m_name+"] m_roid ["+m_roid+"] }"; } } // class epp_HostCreateRsp --- NEW FILE: epp_HostDelete.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostDelete.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostDelete extends epp_HostDeleteOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostDelete --- NEW FILE: epp_HostDeleteOperations.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostDeleteOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostDeleteOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.host.epp_HostDeleteReq parms); org.openrtk.idl.epp02.host.epp_HostDeleteRsp getResponseData (); } // interface epp_HostDeleteOperations --- NEW FILE: epp_HostDeleteReq.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostDeleteReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ /////////////////// public class epp_HostDeleteReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public epp_HostDeleteReq () { } // ctor public epp_HostDeleteReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_HostDeleteReq --- NEW FILE: epp_HostDeleteRsp.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostDeleteRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public class epp_HostDeleteRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_HostDeleteRsp () { } // ctor public epp_HostDeleteRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_HostDeleteRsp --- NEW FILE: epp_HostInfo.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostInfo.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:09 PM EDT */ public interface epp_HostInfo extends epp_HostInfoOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostInfo --- NEW FILE: epp_HostInfoOperations.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostInfoOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostInfoOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.host.epp_HostInfoReq parms); org.openrtk.idl.epp02.host.epp_HostInfoRsp getResponseData (); } // interface epp_HostInfoOperations --- NEW FILE: epp_HostInfoReq.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostInfoReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:09 PM EDT */ ///////////////// public class epp_HostInfoReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public epp_HostInfoReq () { } // ctor public epp_HostInfoReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name) { m_cmd = _m_cmd; m_name = _m_name; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] }"; } } // class epp_HostInfoReq --- NEW FILE: epp_HostInfoRsp.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostInfoRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:09 PM EDT */ public class epp_HostInfoRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_name = null; public String m_roid = null; public boolean m_linked = false; public org.openrtk.idl.epp02.host.epp_HostStatus m_status[] = null; public org.openrtk.idl.epp02.host.epp_HostAddress m_addresses[] = null; public String m_client_id = null; public String m_created_by = null; public String m_created_date = null; public String m_updated_by = null; public String m_updated_date = null; public String m_transfer_date = null; public epp_HostInfoRsp () { } // ctor public epp_HostInfoRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_name, String _m_roid, boolean _m_linked, org.openrtk.idl.epp02.host.epp_HostStatus[] _m_status, org.openrtk.idl.epp02.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_linked = _m_linked; 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 public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setLinked(boolean value) { m_linked = value; } public boolean getLinked() { return m_linked; } public void setStatus(org.openrtk.idl.epp02.host.epp_HostStatus[] value) { m_status = value; } public org.openrtk.idl.epp02.host.epp_HostStatus[] getStatus() { return m_status; } public void setAddresses(org.openrtk.idl.epp02.host.epp_HostAddress[] value) { m_addresses = value; } public org.openrtk.idl.epp02.host.epp_HostAddress[] getAddresses() { return m_addresses; } public void setClientId(String value) { m_client_id = value; } public String getClientId() { return m_client_id; } public void setCreatedBy(String value) { m_created_by = value; } public String getCreatedBy() { return m_created_by; } public void setCreatedDate(String value) { m_created_date = value; } public String getCreatedDate() { return m_created_date; } public void setUpdatedBy(String value) { m_updated_by = value; } public String getUpdatedBy() { return m_updated_by; } public void setUpdatedDate(String value) { m_updated_date = value; } public String getUpdatedDate() { return m_updated_date; } public void setTransferDate(String value) { m_transfer_date = value; } public String getTransferDate() { return m_transfer_date; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_name ["+m_name+"] m_roid ["+m_roid+"] m_linked ["+m_linked+"] 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 --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostStatus.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:09 PM EDT */ public class epp_HostStatus implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.host.epp_HostStatusType m_type = null; public String m_lang = null; public String m_value = null; public epp_HostStatus () { } // ctor public epp_HostStatus (org.openrtk.idl.epp02.host.epp_HostStatusType _m_type, String _m_lang, String _m_value) { m_type = _m_type; m_lang = _m_lang; m_value = _m_value; } // ctor public void setType(org.openrtk.idl.epp02.host.epp_HostStatusType value) { m_type = value; } public org.openrtk.idl.epp02.host.epp_HostStatusType getType() { return m_type; } public void setLang(String value) { m_lang = value; } public String getLang() { return m_lang; } public void setValue(String value) { m_value = value; } public String getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_lang ["+m_lang+"] m_value ["+m_value+"] }"; } } // class epp_HostStatus --- NEW FILE: epp_HostStatusType.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostStatusType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:09 PM EDT */ /////////////////////////// public class epp_HostStatusType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 4; private static org.openrtk.idl.epp02.host.epp_HostStatusType[] __array = new org.openrtk.idl.epp02.host.epp_HostStatusType [__size]; public static final int _LOCK = 0; public static final org.openrtk.idl.epp02.host.epp_HostStatusType LOCK = new org.openrtk.idl.epp02.host.epp_HostStatusType(_LOCK); public static final int _OK = 1; public static final org.openrtk.idl.epp02.host.epp_HostStatusType OK = new org.openrtk.idl.epp02.host.epp_HostStatusType(_OK); public static final int _PENDING_DELETE = 2; public static final org.openrtk.idl.epp02.host.epp_HostStatusType PENDING_DELETE = new org.openrtk.idl.epp02.host.epp_HostStatusType(_PENDING_DELETE); public static final int _CLIENT_LOCK = 3; public static final org.openrtk.idl.epp02.host.epp_HostStatusType CLIENT_LOCK = new org.openrtk.idl.epp02.host.epp_HostStatusType(_CLIENT_LOCK); public int value () { return __value; } public static org.openrtk.idl.epp02.host.epp_HostStatusType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_HostStatusType (int value) { __value = value; __array[__value] = this; } } // class epp_HostStatusType --- NEW FILE: epp_HostUpdate.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostUpdate.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostUpdate extends epp_HostUpdateOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_HostUpdate --- NEW FILE: epp_HostUpdateAddRemove.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostUpdateAddRemove.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ /////////////////// public class epp_HostUpdateAddRemove implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.host.epp_HostAddress m_addresses[] = null; public org.openrtk.idl.epp02.host.epp_HostStatus m_status[] = null; public epp_HostUpdateAddRemove () { } // ctor public epp_HostUpdateAddRemove (org.openrtk.idl.epp02.host.epp_HostAddress[] _m_addresses, org.openrtk.idl.epp02.host.epp_HostStatus[] _m_status) { m_addresses = _m_addresses; m_status = _m_status; } // ctor public void setAddresses(org.openrtk.idl.epp02.host.epp_HostAddress[] value) { m_addresses = value; } public org.openrtk.idl.epp02.host.epp_HostAddress[] getAddresses() { return m_addresses; } public void setStatus(org.openrtk.idl.epp02.host.epp_HostStatus[] value) { m_status = value; } public org.openrtk.idl.epp02.host.epp_HostStatus[] getStatus() { return m_status; } public String toString() { return this.getClass().getName() + ": { m_addresses ["+(m_addresses != null ? java.util.Arrays.asList(m_addresses) : null)+"] m_status ["+(m_status != null ? java.util.Arrays.asList(m_status) : null)+"] }"; } } // class epp_HostUpdateAddRemove --- NEW FILE: epp_HostUpdateChange.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostUpdateChange.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public class epp_HostUpdateChange implements org.omg.CORBA.portable.IDLEntity { public String m_name = null; public epp_HostUpdateChange () { } // ctor public epp_HostUpdateChange (String _m_name) { m_name = _m_name; } // ctor public void setName(String value) { m_name = value; } public String getName() { return m_name; } public String toString() { return this.getClass().getName() + ": { m_name ["+m_name+"] }"; } } // class epp_HostUpdateChange --- NEW FILE: epp_HostUpdateOperations.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostUpdateOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public interface epp_HostUpdateOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.host.epp_HostUpdateReq parms); org.openrtk.idl.epp02.host.epp_HostUpdateRsp getResponseData (); } // interface epp_HostUpdateOperations --- NEW FILE: epp_HostUpdateReq.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostUpdateReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public class epp_HostUpdateReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_name = null; public org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove m_add = null; public org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove m_remove = null; public org.openrtk.idl.epp02.host.epp_HostUpdateChange m_change = null; public epp_HostUpdateReq () { } // ctor public epp_HostUpdateReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_name, org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove _m_add, org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove _m_remove, org.openrtk.idl.epp02.host.epp_HostUpdateChange _m_change) { m_cmd = _m_cmd; m_name = _m_name; m_add = _m_add; m_remove = _m_remove; m_change = _m_change; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setAdd(org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove value) { m_add = value; } public org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove getAdd() { return m_add; } public void setRemove(org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove value) { m_remove = value; } public org.openrtk.idl.epp02.host.epp_HostUpdateAddRemove getRemove() { return m_remove; } public void setChange(org.openrtk.idl.epp02.host.epp_HostUpdateChange value) { m_change = value; } public org.openrtk.idl.epp02.host.epp_HostUpdateChange getChange() { return m_change; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_name ["+m_name+"] m_add ["+m_add+"] m_remove ["+m_remove+"] m_change ["+m_change+"] }"; } } // class epp_HostUpdateReq --- NEW FILE: epp_HostUpdateRsp.java --- package org.openrtk.idl.epp02.host; /** * org/openrtk/idl/epp/host/epp_HostUpdateRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_host.idl * Thursday, July 26, 2001 6:26:10 PM EDT */ public class epp_HostUpdateRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_HostUpdateRsp () { } // ctor public epp_HostUpdateRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_HostUpdateRsp |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/contact In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/org/openrtk/idl/epp02/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_ContactUpdate.java epp_ContactUpdateAddRemove.java epp_ContactUpdateChange.java epp_ContactUpdateOperations.java epp_ContactUpdateReq.java epp_ContactUpdateRsp.java epp_ContactVoice.java Log Message: pulled in epp02 java RTK classes --- NEW FILE: epp_ContactAddress.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactAddress.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ ////////////////////////////////////// public class epp_ContactAddress implements org.omg.CORBA.portable.IDLEntity { public String m_street1 = null; public String m_street2 = null; public String m_street3 = null; public String m_city = null; public String m_state_province = null; public String m_postal_code = null; public String m_country_code = null; public epp_ContactAddress () { } // ctor 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 public void setStreet1(String value) { m_street1 = value; } public String getStreet1() { return m_street1; } public void setStreet2(String value) { m_street2 = value; } public String getStreet2() { return m_street2; } public void setStreet3(String value) { m_street3 = value; } public String getStreet3() { return m_street3; } public void setCity(String value) { m_city = value; } public String getCity() { return m_city; } public void setStateProvince(String value) { m_state_province = value; } public String getStateProvince() { return m_state_province; } public void setPostalCode(String value) { m_postal_code = value; } public String getPostalCode() { return m_postal_code; } public void setCountryCode(String value) { m_country_code = value; } public String getCountryCode() { return m_country_code; } 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 --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCheck.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public interface epp_ContactCheck extends epp_ContactCheckOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactCheck --- NEW FILE: epp_ContactCheckOperations.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCheckOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public interface epp_ContactCheckOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.contact.epp_ContactCheckReq parms); org.openrtk.idl.epp02.contact.epp_ContactCheckRsp getResponseData (); } // interface epp_ContactCheckOperations --- NEW FILE: epp_ContactCheckReq.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCheckReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ ///////////////////// public class epp_ContactCheckReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_roids[] = null; public epp_ContactCheckReq () { } // ctor public epp_ContactCheckReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String[] _m_roids) { m_cmd = _m_cmd; m_roids = _m_roids; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setRoids(String[] value) { m_roids = value; } public String[] getRoids() { return m_roids; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_roids ["+(m_roids != null ? java.util.Arrays.asList(m_roids) : null)+"] }"; } } // class epp_ContactCheckReq --- NEW FILE: epp_ContactCheckRsp.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCheckRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public class epp_ContactCheckRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public org.openrtk.idl.epp02.epp_CheckResult m_results[] = null; public epp_ContactCheckRsp () { } // ctor public epp_ContactCheckRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, org.openrtk.idl.epp02.epp_CheckResult[] _m_results) { m_rsp = _m_rsp; m_results = _m_results; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setResults(org.openrtk.idl.epp02.epp_CheckResult[] value) { m_results = value; } public org.openrtk.idl.epp02.epp_CheckResult[] getResults() { return m_results; } 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 --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCreate.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public interface epp_ContactCreate extends epp_ContactCreateOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactCreate --- NEW FILE: epp_ContactCreateOperations.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCreateOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public interface epp_ContactCreateOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.contact.epp_ContactCreateReq parms); org.openrtk.idl.epp02.contact.epp_ContactCreateRsp getResponseData (); } // interface epp_ContactCreateOperations --- NEW FILE: epp_ContactCreateReq.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCreateReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ ////////////////////// public class epp_ContactCreateReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public org.openrtk.idl.epp02.contact.epp_ContactNameAddress m_ascii_address = null; public org.openrtk.idl.epp02.contact.epp_ContactNameAddress m_i15d_address = null; public org.openrtk.idl.epp02.contact.epp_ContactPhone m_voice = null; public org.openrtk.idl.epp02.contact.epp_ContactPhone m_fax = null; public String m_email = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_ContactCreateReq () { } // ctor public epp_ContactCreateReq (org.openrtk.idl.epp02.epp_Command _m_cmd, org.openrtk.idl.epp02.contact.epp_ContactNameAddress _m_ascii_address, org.openrtk.idl.epp02.contact.epp_ContactNameAddress _m_i15d_address, org.openrtk.idl.epp02.contact.epp_ContactPhone _m_voice, org.openrtk.idl.epp02.contact.epp_ContactPhone _m_fax, String _m_email, org.openrtk.idl.epp02.epp_AuthInfo _m_auth_info) { m_cmd = _m_cmd; 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 public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setAsciiAddress(org.openrtk.idl.epp02.contact.epp_ContactNameAddress value) { m_ascii_address = value; } public org.openrtk.idl.epp02.contact.epp_ContactNameAddress getAsciiAddress() { return m_ascii_address; } public void setI15dAddress(org.openrtk.idl.epp02.contact.epp_ContactNameAddress value) { m_i15d_address = value; } public org.openrtk.idl.epp02.contact.epp_ContactNameAddress getI15dAddress() { return m_i15d_address; } public void setVoice(org.openrtk.idl.epp02.contact.epp_ContactPhone value) { m_voice = value; } public org.openrtk.idl.epp02.contact.epp_ContactPhone getVoice() { return m_voice; } public void setFax(org.openrtk.idl.epp02.contact.epp_ContactPhone value) { m_fax = value; } // included String version for backward compatibility public void setFax(String value) { m_fax = new org.openrtk.idl.epp02.contact.epp_ContactPhone("",value); } public org.openrtk.idl.epp02.contact.epp_ContactPhone getFax() { return m_fax; } public void setEmail(String value) { m_email = value; } public String getEmail() { return m_email; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] 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 --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactCreateRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public class epp_ContactCreateRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_roid = null; public epp_ContactCreateRsp () { } // ctor public epp_ContactCreateRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_roid) { m_rsp = _m_rsp; m_roid = _m_roid; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_roid ["+m_roid+"] }"; } } // class epp_ContactCreateRsp --- NEW FILE: epp_ContactDelete.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactDelete.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public interface epp_ContactDelete extends epp_ContactDeleteOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactDelete --- NEW FILE: epp_ContactDeleteOperations.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactDeleteOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public interface epp_ContactDeleteOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.contact.epp_ContactDeleteReq parms); org.openrtk.idl.epp02.contact.epp_ContactDeleteRsp getResponseData (); } // interface epp_ContactDeleteOperations --- NEW FILE: epp_ContactDeleteReq.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactDeleteReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ ////////////////////// public class epp_ContactDeleteReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_roid = null; public epp_ContactDeleteReq () { } // ctor public epp_ContactDeleteReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_roid) { m_cmd = _m_cmd; m_roid = _m_roid; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_roid ["+m_roid+"] }"; } } // class epp_ContactDeleteReq --- NEW FILE: epp_ContactDeleteRsp.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactDeleteRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public class epp_ContactDeleteRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_ContactDeleteRsp () { } // ctor public epp_ContactDeleteRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_ContactDeleteRsp --- NEW FILE: epp_ContactInfo.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactInfo.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public interface epp_ContactInfo extends epp_ContactInfoOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactInfo --- NEW FILE: epp_ContactInfoOperations.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactInfoOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public interface epp_ContactInfoOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.contact.epp_ContactInfoReq parms); org.openrtk.idl.epp02.contact.epp_ContactInfoRsp getResponseData (); } // interface epp_ContactInfoOperations --- NEW FILE: epp_ContactInfoReq.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactInfoReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ //////////////////// public class epp_ContactInfoReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_roid = null; public epp_ContactInfoReq () { } // ctor public epp_ContactInfoReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_roid) { m_cmd = _m_cmd; m_roid = _m_roid; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_roid ["+m_roid+"] }"; } } // class epp_ContactInfoReq --- NEW FILE: epp_ContactInfoRsp.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactInfoRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public class epp_ContactInfoRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_roid = null; public org.openrtk.idl.epp02.contact.epp_ContactNameAddress m_ascii_address = null; public org.openrtk.idl.epp02.contact.epp_ContactNameAddress m_i15d_address = null; public org.openrtk.idl.epp02.contact.epp_ContactPhone m_voice = null; public org.openrtk.idl.epp02.contact.epp_ContactPhone m_fax = null; public String m_email = null; public org.openrtk.idl.epp02.contact.epp_ContactStatus m_status[] = null; public String m_client_id = null; public String m_created_by = null; public String m_created_date = null; public String m_expiration_date = null; public String m_updated_by = null; public String m_updated_date = null; public String m_transfer_date = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_ContactInfoRsp () { } // ctor public epp_ContactInfoRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_roid, org.openrtk.idl.epp02.contact.epp_ContactNameAddress _m_ascii_address, org.openrtk.idl.epp02.contact.epp_ContactNameAddress _m_i15d_address, org.openrtk.idl.epp02.contact.epp_ContactPhone _m_voice, org.openrtk.idl.epp02.contact.epp_ContactPhone _m_fax, String _m_email, org.openrtk.idl.epp02.contact.epp_ContactStatus[] _m_status, String _m_client_id, String _m_created_by, String _m_created_date, String _m_expiration_date, String _m_updated_by, String _m_updated_date, String _m_transfer_date, org.openrtk.idl.epp02.epp_AuthInfo _m_auth_info) { m_rsp = _m_rsp; 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_expiration_date = _m_expiration_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 public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setAsciiAddress(org.openrtk.idl.epp02.contact.epp_ContactNameAddress value) { m_ascii_address = value; } public org.openrtk.idl.epp02.contact.epp_ContactNameAddress getAsciiAddress() { return m_ascii_address; } public void setI15dAddress(org.openrtk.idl.epp02.contact.epp_ContactNameAddress value) { m_i15d_address = value; } public org.openrtk.idl.epp02.contact.epp_ContactNameAddress getI15dAddress() { return m_i15d_address; } public void setVoice(org.openrtk.idl.epp02.contact.epp_ContactPhone value) { m_voice = value; } public org.openrtk.idl.epp02.contact.epp_ContactPhone getVoice() { return m_voice; } public void setFax(org.openrtk.idl.epp02.contact.epp_ContactPhone value) { m_fax = value; } public org.openrtk.idl.epp02.contact.epp_ContactPhone getFax() { return m_fax; } public void setEmail(String value) { m_email = value; } public String getEmail() { return m_email; } public void setStatus(org.openrtk.idl.epp02.contact.epp_ContactStatus[] value) { m_status = value; } public org.openrtk.idl.epp02.contact.epp_ContactStatus[] getStatus() { return m_status; } public void setClientId(String value) { m_client_id = value; } public String getClientId() { return m_client_id; } public void setCreatedBy(String value) { m_created_by = value; } public String getCreatedBy() { return m_created_by; } public void setCreatedDate(String value) { m_created_date = value; } public String getCreatedDate() { return m_created_date; } public void setExpirationDate(String value) { m_expiration_date = value; } public String getExpirationDate() { return m_expiration_date; } public void setUpdatedBy(String value) { m_updated_by = value; } public String getUpdatedBy() { return m_updated_by; } public void setUpdatedDate(String value) { m_updated_date = value; } public String getUpdatedDate() { return m_updated_date; } public void setTransferDate(String value) { m_transfer_date = value; } public String getTransferDate() { return m_transfer_date; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] 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 != null ? java.util.Arrays.asList(m_status) : null)+"] m_client_id ["+m_client_id+"] m_created_by ["+m_created_by+"] m_created_date ["+m_created_date+"] m_expiration_date ["+m_expiration_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+"] }"; } } // class epp_ContactInfoRsp --- NEW FILE: epp_ContactNameAddress.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactNameAddress.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public class epp_ContactNameAddress implements org.omg.CORBA.portable.IDLEntity { public String m_name = null; public String m_org = null; public org.openrtk.idl.epp02.contact.epp_ContactAddress m_address = null; public epp_ContactNameAddress () { } // ctor public epp_ContactNameAddress (String _m_name, String _m_org, org.openrtk.idl.epp02.contact.epp_ContactAddress _m_address) { m_name = _m_name; m_org = _m_org; m_address = _m_address; } // ctor public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setOrg(String value) { m_org = value; } public String getOrg() { return m_org; } public void setAddress(org.openrtk.idl.epp02.contact.epp_ContactAddress value) { m_address = value; } public org.openrtk.idl.epp02.contact.epp_ContactAddress getAddress() { return m_address; } public String toString() { return this.getClass().getName() + ": { m_name ["+m_name+"] m_org ["+m_org+"] m_address ["+m_address+"] }"; } } // class epp_ContactNameAddress --- NEW FILE: epp_ContactPhone.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactPhone.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ // used for both m_voice and m_fax data members public class epp_ContactPhone implements org.omg.CORBA.portable.IDLEntity { public String m_extension = null; public String m_value = null; public epp_ContactPhone () { } // ctor public epp_ContactPhone (String _m_extension, String _m_value) { m_extension = _m_extension; m_value = _m_value; } // ctor public void setExtension(String value) { m_extension = value; } public String getExtension() { return m_extension; } public void setValue(String value) { m_value = value; } public String getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_extension ["+m_extension+"] m_value ["+m_value+"] }"; } } // class epp_ContactPhone --- NEW FILE: epp_ContactStatus.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactStatus.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ public class epp_ContactStatus implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.contact.epp_ContactStatusType m_type = null; public String m_lang = null; public String m_value = null; public epp_ContactStatus () { } // ctor public epp_ContactStatus (org.openrtk.idl.epp02.contact.epp_ContactStatusType _m_type, String _m_lang, String _m_value) { m_type = _m_type; m_lang = _m_lang; m_value = _m_value; } // ctor public void setType(org.openrtk.idl.epp02.contact.epp_ContactStatusType value) { m_type = value; } public org.openrtk.idl.epp02.contact.epp_ContactStatusType getType() { return m_type; } public void setLang(String value) { m_lang = value; } public String getLang() { return m_lang; } public void setValue(String value) { m_value = value; } public String getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_lang ["+m_lang+"] m_value ["+m_value+"] }"; } } // class epp_ContactStatus --- NEW FILE: epp_ContactStatusType.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactStatusType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:12 PM EDT */ /////////////////////////// public class epp_ContactStatusType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 6; private static org.openrtk.idl.epp02.contact.epp_ContactStatusType[] __array = new org.openrtk.idl.epp02.contact.epp_ContactStatusType [__size]; public static final int _LOCK = 0; public static final org.openrtk.idl.epp02.contact.epp_ContactStatusType LOCK = new org.openrtk.idl.epp02.contact.epp_ContactStatusType(_LOCK); public static final int _OK = 1; public static final org.openrtk.idl.epp02.contact.epp_ContactStatusType OK = new org.openrtk.idl.epp02.contact.epp_ContactStatusType(_OK); public static final int _PENDING_DELETE = 2; public static final org.openrtk.idl.epp02.contact.epp_ContactStatusType PENDING_DELETE = new org.openrtk.idl.epp02.contact.epp_ContactStatusType(_PENDING_DELETE); public static final int _PENDING_TRANSFER = 3; public static final org.openrtk.idl.epp02.contact.epp_ContactStatusType PENDING_TRANSFER = new org.openrtk.idl.epp02.contact.epp_ContactStatusType(_PENDING_TRANSFER); public static final int _CLIENT_LOCK = 4; public static final org.openrtk.idl.epp02.contact.epp_ContactStatusType CLIENT_LOCK = new org.openrtk.idl.epp02.contact.epp_ContactStatusType(_CLIENT_LOCK); public static final int _CLIENT_TRANSFER_PROHIBITED = 5; public static final org.openrtk.idl.epp02.contact.epp_ContactStatusType CLIENT_TRANSFER_PROHIBITED = new org.openrtk.idl.epp02.contact.epp_ContactStatusType(_CLIENT_TRANSFER_PROHIBITED); public int value () { return __value; } public static org.openrtk.idl.epp02.contact.epp_ContactStatusType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_ContactStatusType (int value) { __value = value; __array[__value] = this; } } // class epp_ContactStatusType --- NEW FILE: epp_ContactTransfer.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactTransfer.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public interface epp_ContactTransfer extends epp_ContactTransferOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactTransfer --- NEW FILE: epp_ContactTransferOperations.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactTransferOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public interface epp_ContactTransferOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.contact.epp_ContactTransferReq parms); org.openrtk.idl.epp02.contact.epp_ContactTransferRsp getResponseData (); } // interface epp_ContactTransferOperations --- NEW FILE: epp_ContactTransferReq.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactTransferReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ //////////////////////// public class epp_ContactTransferReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public org.openrtk.idl.epp02.epp_TransferRequest m_trans = null; public String m_roid = null; public epp_ContactTransferReq () { } // ctor public epp_ContactTransferReq (org.openrtk.idl.epp02.epp_Command _m_cmd, org.openrtk.idl.epp02.epp_TransferRequest _m_trans, String _m_roid) { m_cmd = _m_cmd; m_trans = _m_trans; m_roid = _m_roid; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setTrans(org.openrtk.idl.epp02.epp_TransferRequest value) { m_trans = value; } public org.openrtk.idl.epp02.epp_TransferRequest getTrans() { return m_trans; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_trans ["+m_trans+"] m_roid ["+m_roid+"] }"; } } // class epp_ContactTransferReq --- NEW FILE: epp_ContactTransferRsp.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactTransferRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public class epp_ContactTransferRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public String m_roid = null; public org.openrtk.idl.epp02.epp_TransferStatusType m_transfer_status = null; public String m_request_client_id = null; public String m_request_date = null; public String m_action_client_id = null; public String m_action_date = null; public epp_ContactTransferRsp () { } // ctor public epp_ContactTransferRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, String _m_roid, org.openrtk.idl.epp02.epp_TransferStatusType _m_transfer_status, String _m_request_client_id, String _m_request_date, String _m_action_client_id, String _m_action_date) { m_rsp = _m_rsp; m_roid = _m_roid; m_transfer_status = _m_transfer_status; m_request_client_id = _m_request_client_id; m_request_date = _m_request_date; m_action_client_id = _m_action_client_id; m_action_date = _m_action_date; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setTransferStatus(org.openrtk.idl.epp02.epp_TransferStatusType value) { m_transfer_status = value; } public org.openrtk.idl.epp02.epp_TransferStatusType getTransferStatus() { return m_transfer_status; } public void setRequestClientId(String value) { m_request_client_id = value; } public String getRequestClientId() { return m_request_client_id; } public void setRequestDate(String value) { m_request_date = value; } public String getRequestDate() { return m_request_date; } public void setActionClientId(String value) { m_action_client_id = value; } public String getActionClientId() { return m_action_client_id; } public void setActionDate(String value) { m_action_date = value; } public String getActionDate() { return m_action_date; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_roid ["+m_roid+"] m_transfer_status ["+m_transfer_status+"] m_request_client_id ["+m_request_client_id+"] m_request_date ["+m_request_date+"] m_action_client_id ["+m_action_client_id+"] m_action_date ["+m_action_date+"] }"; } } // class epp_ContactTransferRsp --- NEW FILE: epp_ContactUpdate.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactUpdate.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public interface epp_ContactUpdate extends epp_ContactUpdateOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_ContactUpdate --- NEW FILE: epp_ContactUpdateAddRemove.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactUpdateAddRemove.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ ////////////////////// public class epp_ContactUpdateAddRemove implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.contact.epp_ContactStatus m_status[] = null; public epp_ContactUpdateAddRemove () { } // ctor public epp_ContactUpdateAddRemove (org.openrtk.idl.epp02.contact.epp_ContactStatus[] _m_status) { m_status = _m_status; } // ctor public void setStatus(org.openrtk.idl.epp02.contact.epp_ContactStatus[] value) { m_status = value; } public org.openrtk.idl.epp02.contact.epp_ContactStatus[] getStatus() { return m_status; } public String toString() { return this.getClass().getName() + ": { m_status ["+(m_status != null ? java.util.Arrays.asList(m_status) : null)+"] }"; } } // class epp_ContactUpdateAddRemove --- NEW FILE: epp_ContactUpdateChange.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactUpdateChange.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public class epp_ContactUpdateChange implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.contact.epp_ContactNameAddress m_ascii_address = null; public org.openrtk.idl.epp02.contact.epp_ContactNameAddress m_i15d_address = null; public org.openrtk.idl.epp02.contact.epp_ContactPhone m_voice = null; public org.openrtk.idl.epp02.contact.epp_ContactPhone m_fax = null; public String m_email = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_ContactUpdateChange () { } // ctor public epp_ContactUpdateChange (org.openrtk.idl.epp02.contact.epp_ContactNameAddress _m_ascii_address, org.openrtk.idl.epp02.contact.epp_ContactNameAddress _m_i15d_address, org.openrtk.idl.epp02.contact.epp_ContactPhone _m_voice, org.openrtk.idl.epp02.contact.epp_ContactPhone _m_fax, String _m_email, org.openrtk.idl.epp02.epp_AuthInfo _m_auth_info) { 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 public void setAsciiAddress(org.openrtk.idl.epp02.contact.epp_ContactNameAddress value) { m_ascii_address = value; } public org.openrtk.idl.epp02.contact.epp_ContactNameAddress getAsciiAddress() { return m_ascii_address; } public void setI15dAddress(org.openrtk.idl.epp02.contact.epp_ContactNameAddress value) { m_i15d_address = value; } public org.openrtk.idl.epp02.contact.epp_ContactNameAddress getI15dAddress() { return m_i15d_address; } public void setVoice(org.openrtk.idl.epp02.contact.epp_ContactPhone value) { m_voice = value; } public org.openrtk.idl.epp02.contact.epp_ContactPhone getVoice() { return m_voice; } public void setFax(org.openrtk.idl.epp02.contact.epp_ContactPhone value) { m_fax = value; } public org.openrtk.idl.epp02.contact.epp_ContactPhone getFax() { return m_fax; } public void setEmail(String value) { m_email = value; } public String getEmail() { return m_email; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } public String toString() { return this.getClass().getName() + ": { 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_ContactUpdateChange --- NEW FILE: epp_ContactUpdateOperations.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactUpdateOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public interface epp_ContactUpdateOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.contact.epp_ContactUpdateReq parms); org.openrtk.idl.epp02.contact.epp_ContactUpdateRsp getResponseData (); } // interface epp_ContactUpdateOperations --- NEW FILE: epp_ContactUpdateReq.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactUpdateReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public class epp_ContactUpdateReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public String m_roid = null; public org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove m_add = null; public org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove m_remove = null; public org.openrtk.idl.epp02.contact.epp_ContactUpdateChange m_change = null; public epp_ContactUpdateReq () { } // ctor public epp_ContactUpdateReq (org.openrtk.idl.epp02.epp_Command _m_cmd, String _m_roid, org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove _m_add, org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove _m_remove, org.openrtk.idl.epp02.contact.epp_ContactUpdateChange _m_change) { m_cmd = _m_cmd; m_roid = _m_roid; m_add = _m_add; m_remove = _m_remove; m_change = _m_change; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setAdd(org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove value) { m_add = value; } public org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove getAdd() { return m_add; } public void setRemove(org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove value) { m_remove = value; } public org.openrtk.idl.epp02.contact.epp_ContactUpdateAddRemove getRemove() { return m_remove; } public void setChange(org.openrtk.idl.epp02.contact.epp_ContactUpdateChange value) { m_change = value; } public org.openrtk.idl.epp02.contact.epp_ContactUpdateChange getChange() { return m_change; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_roid ["+m_roid+"] m_add ["+m_add+"] m_remove ["+m_remove+"] m_change ["+m_change+"] }"; } } // class epp_ContactUpdateReq --- NEW FILE: epp_ContactUpdateRsp.java --- package org.openrtk.idl.epp02.contact; /** * org/openrtk/idl/epp/contact/epp_ContactUpdateRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp_contact.idl * Thursday, July 26, 2001 6:26:13 PM EDT */ public class epp_ContactUpdateRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_ContactUpdateRsp () { } // ctor public epp_ContactUpdateRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_ContactUpdateRsp --- NEW FILE: epp_ContactVoice.java --- package org.openrtk.idl.epp02.contact; /** * Deprecated class to maintain some backward compatibility. * epp_ContactPhone is the preferred class to use for the * Contact's m_voice data member. * @deprecated As of EPP-RTK version 0.3.8, * replaced by <code>epp_ContactPhone</code>. */ // it is still valid for used with contact's m_voice. public class epp_ContactVoice extends epp_ContactPhone { public epp_ContactVoice () { } public epp_ContactVoice (String _m_extension, String _m_value) { super( _m_extension, _m_value ); } } // class epp_ContactVoice |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/com/tucows/oxrs/epp02/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 epp02 java RTK 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/epp02/rtk/xml/EPPContactBase.java,v 1.1 2003/03/21 17:13:40 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:40 $ */ package com.tucows.oxrs.epp02.rtk.xml; import java.io.*; import java.util.*; import com.tucows.oxrs.epp02.rtk.*; import org.openrtk.idl.epp02.epp_XMLException; import org.openrtk.idl.epp02.contact.*; 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_; /** * Array to allow for conversion from epp_ContactStatusType to * a String representation of the contact status. * The epp_ContactStatusType static classes have a value() member * function which returns their integer position in the enum. * @see The EPP IDL epp_contact.idl for the definition of the epp_ContactStatusType enum */ // The ordering of the strings in this array must match the // enum in epp_contact.idl, otherwise the wrong statuses // will be used. protected static String[] status_to_string_array_ = { "lock", "ok", "pendingDelete", "pendingTransfer", "clientLock", "clientTransferProhibited" }; /** * 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("lock", epp_ContactStatusType.LOCK); 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_DELETE); contact_status_hash_.put("clientLock", epp_ContactStatusType.CLIENT_LOCK); contact_status_hash_.put("clientTransferProhibited", epp_ContactStatusType.CLIENT_LOCK); } } /** * 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"); command.setAttribute("xsi:schemaLocation", "urn:iana:xml:ns:contact contact.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_to_string_array_[status_type.value()]; } public static epp_ContactStatusType contactStatusFromString(String s) { initContactStatusHash(); return (epp_ContactStatusType) contact_status_hash_.get(s); } } --- 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/epp02/rtk/xml/EPPContactCheck.java,v 1.1 2003/03/21 17:13:40 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:40 $ */ package com.tucows.oxrs.epp02.rtk.xml; import java.io.*; import java.util.*; import com.tucows.oxrs.epp02.rtk.*; import org.openrtk.idl.epp02.*; import org.openrtk.idl.epp02.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.epp02.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp02.rtk.example.ContactExample * @see org.openrtk.idl.epp02.epp_Action * @see org.openrtk.idl.epp02.contact.epp_ContactCheck * @see org.openrtk.idl.epp02.contact.epp_ContactCheckReq * @see org.openrtk.idl.epp02.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.epp02.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp02.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.epp02.epp_ContactCheckReq */ public void setRequestData(epp_ContactCheckReq value) { action_request_ = value; } /** * Accessor method for the contact check response data. * @return value org.openrtk.idl.epp02.epp_ContactCheckRsp */ public epp_ContactCheckRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp02.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactCheckReq) * @see org.openrtk.idl.epp02.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_roids == null || action_request_.m_roids.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_roids = Arrays.asList(action_request_.m_roids); for (Iterator it = contact_roids.iterator(); it.hasNext();) { String contact_roid = (String)it.next(); addXMLElement(doc, contact_check, "contact:roid", contact_roid); } 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.epp02.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.epp02.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp02.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/epp02/rtk/xml/EPPContactCreate.java,v 1.1 2003/03/21 17:13:41 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:41 $ */ package com.tucows.oxrs.epp02.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp02.rtk.*; import org.openrtk.idl.epp02.*; import org.openrtk.idl.epp02.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.epp02.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp02.rtk.example.ContactExample * @see org.openrtk.idl.epp02.epp_Action * @see org.openrtk.idl.epp02.contact.epp_ContactCreate * @see org.openrtk.idl.epp02.contact.epp_ContactCreateReq * @see org.openrtk.idl.epp02.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.epp02.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp02.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.epp02.epp_ContactCreateReq */ public void setRequestData(epp_ContactCreateReq value) { action_request_ = value; } /** * Accessor method for the contact create response data. * @return value org.openrtk.idl.epp02.epp_ContactCreateRsp */ public epp_ContactCreateRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp02.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactCreateReq) * @see org.openrtk.idl.epp02.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); 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.epp02.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.epp02.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp02.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:roid") ) { action_response_.m_roid = 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/epp02/rtk/xml/EPPContactDelete.java,v 1.1 2003/03/21 17:13:41 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:41 $ */ package com.tucows.oxrs.epp02.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp02.rtk.*; import org.openrtk.idl.epp02.*; import org.openrtk.idl.epp02.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.epp02.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp02.rtk.example.ContactExample * @see org.openrtk.idl.epp02.epp_Action * @see org.openrtk.idl.epp02.contact.epp_ContactDelete * @see org.openrtk.idl.epp02.contact.epp_ContactDeleteReq * @see org.openrtk.idl.epp02.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.epp02.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp02.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.epp02.epp_ContactDeleteReq */ public void setRequestData(epp_ContactDeleteReq value) { action_request_ = value; } /** * Accessor method for the contact check response data. * @return value org.openrtk.idl.epp02.epp_ContactDeleteRsp */ public epp_ContactDeleteRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp02.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactDeleteReq) * @see org.openrtk.idl.epp02.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_roid == null ) { throw new epp_XMLException("missing request data or contact roid"); } 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:roid", action_request_.m_roid); 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.epp02.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.epp02.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp02.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/epp02/rtk/xml/EPPContactInfo.java,v 1.1 2003/03/21 17:13:41 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:41 $ */ package com.tucows.oxrs.epp02.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp02.rtk.*; import org.openrtk.idl.epp02.*; import org.openrtk.idl.epp02.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.epp02.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp02.rtk.example.ContactExample * @see org.openrtk.idl.epp02.epp_Action * @see org.openrtk.idl.epp02.contact.epp_ContactInfo * @see org.openrtk.idl.epp02.contact.epp_ContactInfoReq * @see org.openrtk.idl.epp02.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.epp02.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp02.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.epp02.epp_ContactInfoReq */ public void setRequestData(epp_ContactInfoReq value) { action_request_ = value; } /** * Accessor method for the contact info response data. * @return value org.openrtk.idl.epp02.epp_ContactInfoRsp */ public epp_ContactInfoRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp02.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactInfoReq) * @see org.openrtk.idl.epp02.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_roid == null ) { throw new epp_XMLException("missing request data or contact roid"); } 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:roid", action_request_.m_roid); 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.epp02.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.epp02.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp02.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 addresses = (List)new ArrayList(); 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: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/epp02/rtk/xml/EPPContactTransfer.java,v 1.1 2003/03/21 17:13:41 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:41 $ */ package com.tucows.oxrs.epp02.rtk.xml; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp02.rtk.*; import org.openrtk.idl.epp02.*; import org.openrtk.idl.epp02.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.epp02.rtk.example.ContactExample * class. * @see com.tucows.oxrs.epp02.rtk.example.ContactExample * @see org.openrtk.idl.epp02.epp_Action * @see org.openrtk.idl.epp02.contact.epp_ContactTransfer * @see org.openrtk.idl.epp02.contact.epp_ContactTransferReq * @see org.openrtk.idl.epp02.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.epp02.epp_XMLException if the response XML is not parsable or does not contain the expected data * @throws org.openrtk.idl.epp02.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.epp02.epp_ContactTransferReq */ public void setRequestData(epp_ContactTransferReq value) { action_request_ = value; } /** * Accessor method for the contact transfer response data. * @param value org.openrtk.idl.epp02.epp_ContactTransferRsp */ public epp_ContactTransferRsp getResponseData() { return action_response_; } /** * Builds request XML from the request data. * Implemented method from org.openrtk.idl.epp02.epp_Action interface. * @throws epp_XMLException if required data is missing * @see #setRequestData(epp_ContactTransferReq) * @see org.openrtk.idl.epp02.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_roid == null ) { throw new epp_XMLException("missing request data or contact roid"); } 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; } else if ( transfer_request_data.m_op.value() >= transfer_op_to_string_array_.length ) { throw new epp_XMLException("invalid transfer op value"); } Document doc = new DocumentImpl(); 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_op_to_string_array_[transfer_request_data.m_op.value()]); Element contact_transfer = doc.createElement("contact:transfer"); setCommonAttributes(contact_transfer); addXMLElement(doc, contact_transfer, "contact:roid", action_request_.m_roid); transfer.appendChild( contact_transfer ); if ( transfer_request_data.m_auth_info == null ) { throw new epp_XMLException("missing request auth id"); } contact_transfer.appendChild( prepareAuthInfo( doc, "contact:authInfo", transfer_request_data.m_auth_info ) ); 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.epp02.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.epp02.epp_Exception if the server has responded with an error code * @see org.openrtk.idl.epp02.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"); } for (int count = 0; count < contact_transfer_data_list.getLength(); count++) { Node a_node = contact_transfer_data_list.item(count); if ( a_node.getNodeName().equals("contact:roid") ) { action_response_.m_roid = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:reID") ) { action_response_.m_request_client_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:acID") ) { action_response_.m_action_client_id = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:trStatus") ) { String status_value = a_node.getFirstChild().getNodeValue(); if ( ! transfer_status_to_type_hash_.containsKey(status_value) ) { throw new epp_XMLException("unknown returned transfer status ["+status_value+"]"); } else { action_response_.m_transfer_status = (epp_TransferStatusType)transfer_status_to_type_hash_.get(status_value); } } if ( a_node.getNodeName().equals("contact:reDate") ) { action_response_.m_request_date = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:acDate") ) { action_response_.m_action_date = a_node.getFirstChild().getNodeValue(); } } } 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: EPPContactUpdate.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; ... [truncated message content] |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02 In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/org/openrtk/idl/epp02 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_Options.java epp_Poll.java epp_PollContactTransfer.java epp_PollDomainTransfer.java epp_PollOpType.java epp_PollOperations.java epp_PollReq.java epp_PollResData.java epp_PollResDataType.java epp_PollResDataUnion.java epp_PollRsp.java 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 epp02 java RTK classes --- NEW FILE: epp_Action.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Action.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ // public interface epp_Action extends epp_ActionOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { } // interface epp_Action --- NEW FILE: epp_ActionOperations.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_ActionOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ // public interface epp_ActionOperations { String toXML () throws org.openrtk.idl.epp02.epp_Exception, org.openrtk.idl.epp02.epp_XMLException; void fromXML (String xml) throws org.openrtk.idl.epp02.epp_Exception, org.openrtk.idl.epp02.epp_XMLException; } // interface epp_ActionOperations --- NEW FILE: epp_AuthInfo.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_AuthInfo.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:03 PM EDT */ public class epp_AuthInfo implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_AuthInfoType m_type = null; public String m_roid = null; public String m_value = null; public epp_AuthInfo () { } // ctor public epp_AuthInfo (org.openrtk.idl.epp02.epp_AuthInfoType _m_type, String _m_roid, String _m_value) { m_type = _m_type; m_roid = _m_roid; m_value = _m_value; } // ctor public void setType(org.openrtk.idl.epp02.epp_AuthInfoType value) { m_type = value; } public org.openrtk.idl.epp02.epp_AuthInfoType getType() { return m_type; } public void setRoid(String value) { m_roid = value; } public String getRoid() { return m_roid; } public void setValue(String value) { m_value = value; } public String getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_roid ["+m_roid+"] m_value ["+m_value+"] }"; } } // class epp_AuthInfo --- NEW FILE: epp_AuthInfoType.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_AuthInfoType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:03 PM EDT */ // public class epp_AuthInfoType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 1; private static org.openrtk.idl.epp02.epp_AuthInfoType[] __array = new org.openrtk.idl.epp02.epp_AuthInfoType [__size]; public static final int _PW = 0; public static final org.openrtk.idl.epp02.epp_AuthInfoType PW = new org.openrtk.idl.epp02.epp_AuthInfoType(_PW); public int value () { return __value; } public static org.openrtk.idl.epp02.epp_AuthInfoType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_AuthInfoType (int value) { __value = value; __array[__value] = this; } } // class epp_AuthInfoType --- NEW FILE: epp_CheckResult.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_CheckResult.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_CheckResult implements org.omg.CORBA.portable.IDLEntity { public boolean m_exists = false; public String m_value = null; public epp_CheckResult () { } // ctor public epp_CheckResult (boolean _m_exists, String _m_value) { m_exists = _m_exists; m_value = _m_value; } // ctor public void setExists(boolean value) { m_exists = value; } public boolean getExists() { return m_exists; } public void setValue(String value) { m_value = value; } public String getValue() { return m_value; } public String toString() { return this.getClass().getName() + ": { m_exists ["+m_exists+"] m_value ["+m_value+"] }"; } } // class epp_CheckResult --- NEW FILE: epp_Command.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Command.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_Command implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Credentials m_creds = null; public org.openrtk.idl.epp02.epp_Unspec m_unspec = null; public String m_client_trid = null; public epp_Command () { } // ctor public epp_Command (org.openrtk.idl.epp02.epp_Credentials _m_creds, org.openrtk.idl.epp02.epp_Unspec _m_unspec, String _m_client_trid) { m_creds = _m_creds; m_unspec = _m_unspec; m_client_trid = _m_client_trid; } // ctor public void setCreds(org.openrtk.idl.epp02.epp_Credentials value) { m_creds = value; } public org.openrtk.idl.epp02.epp_Credentials getCreds() { return m_creds; } public void setUnspec(org.openrtk.idl.epp02.epp_Unspec value) { m_unspec = value; } public org.openrtk.idl.epp02.epp_Unspec getUnspec() { return m_unspec; } public void setClientTrid(String value) { m_client_trid = value; } public String getClientTrid() { return m_client_trid; } 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 --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Credentials.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_Credentials implements org.omg.CORBA.portable.IDLEntity { public String m_client_id = null; public String m_password = null; public String m_new_password = null; public org.openrtk.idl.epp02.epp_Options m_options = null; public epp_Credentials () { } // ctor public epp_Credentials (String _m_client_id, String _m_password, String _m_new_password, org.openrtk.idl.epp02.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 public void setClientId(String value) { m_client_id = value; } public String getClientId() { return m_client_id; } public void setPassword(String value) { m_password = value; } public String getPassword() { return m_password; } public void setNewPassword(String value) { m_new_password = value; } public String getNewPassword() { return m_new_password; } public void setOptions(org.openrtk.idl.epp02.epp_Options value) { m_options = value; } public org.openrtk.idl.epp02.epp_Options getOptions() { return m_options; } 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 --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Exception.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_Exception extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Result m_details[] = null; public epp_Exception () { } // ctor public epp_Exception (org.openrtk.idl.epp02.epp_Result[] _m_details) { m_details = _m_details; } // ctor public void setDetails(org.openrtk.idl.epp02.epp_Result[] value) { m_details = value; } public org.openrtk.idl.epp02.epp_Result[] getDetails() { return m_details; } 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 --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Greeting.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ ///////////// public class epp_Greeting implements org.omg.CORBA.portable.IDLEntity { public String m_server_id = null; public String m_server_date = null; public String m_versions[] = null; public String m_langs[] = null; public org.openrtk.idl.epp02.epp_Service m_services[] = null; public epp_Greeting () { } // ctor public epp_Greeting (String _m_server_id, String _m_server_date, String[] _m_versions, String[] _m_langs, org.openrtk.idl.epp02.epp_Service[] _m_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; } // ctor public void setServerId(String value) { m_server_id = value; } public String getServerId() { return m_server_id; } public void setServerDate(String value) { m_server_date = value; } public String getServerDate() { return m_server_date; } public void setVersions(String[] value) { m_versions = value; } public String[] getVersions() { return m_versions; } public void setLangs(String[] value) { m_langs = value; } public String[] getLangs() { return m_langs; } public void setServices(org.openrtk.idl.epp02.epp_Service[] value) { m_services = value; } public org.openrtk.idl.epp02.epp_Service[] getServices() { return m_services; } 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)+"] }"; } } // class epp_Greeting --- NEW FILE: epp_Hello.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Hello.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_Hello extends epp_HelloOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Hello --- NEW FILE: epp_HelloOperations.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_HelloOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_HelloOperations extends org.openrtk.idl.epp02.epp_ActionOperations { org.openrtk.idl.epp02.epp_Greeting getResponseData (); } // interface epp_HelloOperations --- NEW FILE: epp_Login.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Login.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_Login extends epp_LoginOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Login --- NEW FILE: epp_LoginOperations.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_LoginOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_LoginOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.epp_LoginReq data); org.openrtk.idl.epp02.epp_LoginRsp getResponseData (); } // interface epp_LoginOperations --- NEW FILE: epp_LoginReq.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_LoginReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ ///////////// public class epp_LoginReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public org.openrtk.idl.epp02.epp_Service m_services[] = null; public epp_LoginReq () { } // ctor public epp_LoginReq (org.openrtk.idl.epp02.epp_Command _m_cmd, org.openrtk.idl.epp02.epp_Service[] _m_services) { m_cmd = _m_cmd; m_services = _m_services; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setServices(org.openrtk.idl.epp02.epp_Service[] value) { m_services = value; } public org.openrtk.idl.epp02.epp_Service[] getServices() { return m_services; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_services ["+(m_services != null ? java.util.Arrays.asList(m_services) : null)+"] }"; } } // class epp_LoginReq --- NEW FILE: epp_LoginRsp.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_LoginRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_LoginRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_LoginRsp () { } // ctor public epp_LoginRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_LoginRsp --- NEW FILE: epp_Logout.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Logout.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_Logout extends epp_LogoutOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Logout --- NEW FILE: epp_LogoutOperations.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_LogoutOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_LogoutOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.epp_LogoutReq data); org.openrtk.idl.epp02.epp_LogoutRsp getResponseData (); } // interface epp_LogoutOperations --- NEW FILE: epp_LogoutReq.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_LogoutReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ ////////////// public class epp_LogoutReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Unspec m_unspec = null; public String m_client_trid = null; public epp_LogoutReq () { } // ctor public epp_LogoutReq (org.openrtk.idl.epp02.epp_Unspec _m_unspec, String _m_client_trid) { m_unspec = _m_unspec; m_client_trid = _m_client_trid; } // ctor public void setUnspec(org.openrtk.idl.epp02.epp_Unspec value) { m_unspec = value; } public org.openrtk.idl.epp02.epp_Unspec getUnspec() { return m_unspec; } public void setClientTrid(String value) { m_client_trid = value; } public String getClientTrid() { return m_client_trid; } 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 --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_LogoutRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_LogoutRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public epp_LogoutRsp () { } // ctor public epp_LogoutRsp (org.openrtk.idl.epp02.epp_Response _m_rsp) { m_rsp = _m_rsp; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] }"; } } // class epp_LogoutRsp --- NEW FILE: epp_Options.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Options.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_Options implements org.omg.CORBA.portable.IDLEntity { public String m_version = null; public String m_lang = null; public epp_Options () { } // ctor public epp_Options (String _m_version, String _m_lang) { m_version = _m_version; m_lang = _m_lang; } // ctor public void setVersion(String value) { m_version = value; } public String getVersion() { return m_version; } public void setLang(String value) { m_lang = value; } public String getLang() { return m_lang; } public String toString() { return this.getClass().getName() + ": { m_version ["+m_version+"] m_lang ["+m_lang+"] }"; } } // class epp_Options --- NEW FILE: epp_Poll.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Poll.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_Poll extends epp_PollOperations, org.openrtk.idl.epp02.epp_Action, org.omg.CORBA.portable.IDLEntity { } // interface epp_Poll --- NEW FILE: epp_PollContactTransfer.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollContactTransfer.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_PollContactTransfer implements org.omg.CORBA.portable.IDLEntity { public String m_contact_roid = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_PollContactTransfer () { } // ctor public epp_PollContactTransfer (String _m_contact_roid, org.openrtk.idl.epp02.epp_AuthInfo _m_auth_info) { m_contact_roid = _m_contact_roid; m_auth_info = _m_auth_info; } // ctor public void setContactRoid(String value) { m_contact_roid = value; } public String getContactRoid() { return m_contact_roid; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } public String toString() { return this.getClass().getName() + ": { m_contact_roid ["+m_contact_roid+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_PollContactTransfer --- NEW FILE: epp_PollDomainTransfer.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollDomainTransfer.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_PollDomainTransfer implements org.omg.CORBA.portable.IDLEntity { public String m_domain_name = null; public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public epp_PollDomainTransfer () { } // ctor public epp_PollDomainTransfer (String _m_domain_name, org.openrtk.idl.epp02.epp_AuthInfo _m_auth_info) { m_domain_name = _m_domain_name; m_auth_info = _m_auth_info; } // ctor public void setDomainName(String value) { m_domain_name = value; } public String getDomainName() { return m_domain_name; } public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } public String toString() { return this.getClass().getName() + ": { m_domain_name ["+m_domain_name+"] m_auth_info ["+m_auth_info+"] }"; } } // class epp_PollDomainTransfer --- NEW FILE: epp_PollOpType.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollOpType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:03 PM EDT */ // public class epp_PollOpType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 2; private static org.openrtk.idl.epp02.epp_PollOpType[] __array = new org.openrtk.idl.epp02.epp_PollOpType [__size]; public static final int _REQ = 0; public static final org.openrtk.idl.epp02.epp_PollOpType REQ = new org.openrtk.idl.epp02.epp_PollOpType(_REQ); public static final int _ACK = 1; public static final org.openrtk.idl.epp02.epp_PollOpType ACK = new org.openrtk.idl.epp02.epp_PollOpType(_ACK); public int value () { return __value; } public static org.openrtk.idl.epp02.epp_PollOpType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_PollOpType (int value) { __value = value; __array[__value] = this; } } // class epp_PollOpType --- NEW FILE: epp_PollOperations.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public interface epp_PollOperations extends org.openrtk.idl.epp02.epp_ActionOperations { void setRequestData (org.openrtk.idl.epp02.epp_PollReq parms); org.openrtk.idl.epp02.epp_PollRsp getResponseData (); } // interface epp_PollOperations --- NEW FILE: epp_PollReq.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollReq.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ //////////// public class epp_PollReq implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Command m_cmd = null; public org.openrtk.idl.epp02.epp_PollOpType m_op = null; public String m_msgID = null; public epp_PollReq () { } // ctor public epp_PollReq (org.openrtk.idl.epp02.epp_Command _m_cmd, org.openrtk.idl.epp02.epp_PollOpType _m_op, String _m_msgID) { m_cmd = _m_cmd; m_op = _m_op; m_msgID = _m_msgID; } // ctor public void setCmd(org.openrtk.idl.epp02.epp_Command value) { m_cmd = value; } public org.openrtk.idl.epp02.epp_Command getCmd() { return m_cmd; } public void setOp(org.openrtk.idl.epp02.epp_PollOpType value) { m_op = value; } public org.openrtk.idl.epp02.epp_PollOpType getOp() { return m_op; } public void setMsgID(String value) { m_msgID = value; } public String getMsgID() { return m_msgID; } public String toString() { return this.getClass().getName() + ": { m_cmd ["+m_cmd+"] m_op ["+m_op+"] m_msgID ["+m_msgID+"] }"; } } // class epp_PollReq --- NEW FILE: epp_PollResData.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollResData.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_PollResData implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_PollResDataType m_type = null; public org.openrtk.idl.epp02.epp_PollResDataUnion m_data = null; public epp_PollResData () { } // ctor public epp_PollResData (org.openrtk.idl.epp02.epp_PollResDataType _m_type, org.openrtk.idl.epp02.epp_PollResDataUnion _m_data) { m_type = _m_type; m_data = _m_data; } // ctor public void setType(org.openrtk.idl.epp02.epp_PollResDataType value) { m_type = value; } public org.openrtk.idl.epp02.epp_PollResDataType getType() { return m_type; } public void setData(org.openrtk.idl.epp02.epp_PollResDataUnion value) { m_data = value; } public org.openrtk.idl.epp02.epp_PollResDataUnion getData() { return m_data; } public String toString() { return this.getClass().getName() + ": { m_type ["+m_type+"] m_data ["+m_data+"] }"; } } // class epp_PollResData --- NEW FILE: epp_PollResDataType.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollResDataType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_PollResDataType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 2; private static org.openrtk.idl.epp02.epp_PollResDataType[] __array = new org.openrtk.idl.epp02.epp_PollResDataType [__size]; public static final int _DOMAIN_TRANSFER = 0; public static final org.openrtk.idl.epp02.epp_PollResDataType DOMAIN_TRANSFER = new org.openrtk.idl.epp02.epp_PollResDataType(_DOMAIN_TRANSFER); public static final int _CONTACT_TRANSFER = 1; public static final org.openrtk.idl.epp02.epp_PollResDataType CONTACT_TRANSFER = new org.openrtk.idl.epp02.epp_PollResDataType(_CONTACT_TRANSFER); public int value () { return __value; } public static org.openrtk.idl.epp02.epp_PollResDataType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_PollResDataType (int value) { __value = value; __array[__value] = this; } } // class epp_PollResDataType --- NEW FILE: epp_PollResDataUnion.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollResDataUnion.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_PollResDataUnion implements org.omg.CORBA.portable.IDLEntity { private org.openrtk.idl.epp02.epp_PollDomainTransfer ___m_domain_transfer; private org.openrtk.idl.epp02.epp_PollContactTransfer ___m_contact_transfer; private org.openrtk.idl.epp02.epp_PollResDataType __discriminator; private boolean __uninitialized = true; public epp_PollResDataUnion () { } public org.openrtk.idl.epp02.epp_PollResDataType discriminator () { if (__uninitialized) throw new org.omg.CORBA.BAD_OPERATION (); return __discriminator; } public org.openrtk.idl.epp02.epp_PollDomainTransfer m_domain_transfer () { if (__uninitialized) throw new org.omg.CORBA.BAD_OPERATION (); verifym_domain_transfer (__discriminator); return ___m_domain_transfer; } public void m_domain_transfer (org.openrtk.idl.epp02.epp_PollDomainTransfer value) { __discriminator = org.openrtk.idl.epp02.epp_PollResDataType.DOMAIN_TRANSFER; ___m_domain_transfer = value; __uninitialized = false; } private void verifym_domain_transfer (org.openrtk.idl.epp02.epp_PollResDataType discriminator) { if (discriminator != org.openrtk.idl.epp02.epp_PollResDataType.DOMAIN_TRANSFER) throw new org.omg.CORBA.BAD_OPERATION (); } public org.openrtk.idl.epp02.epp_PollContactTransfer m_contact_transfer () { if (__uninitialized) throw new org.omg.CORBA.BAD_OPERATION (); verifym_contact_transfer (__discriminator); return ___m_contact_transfer; } public void m_contact_transfer (org.openrtk.idl.epp02.epp_PollContactTransfer value) { __discriminator = org.openrtk.idl.epp02.epp_PollResDataType.CONTACT_TRANSFER; ___m_contact_transfer = value; __uninitialized = false; } private void verifym_contact_transfer (org.openrtk.idl.epp02.epp_PollResDataType discriminator) { if (discriminator != org.openrtk.idl.epp02.epp_PollResDataType.CONTACT_TRANSFER) throw new org.omg.CORBA.BAD_OPERATION (); } } // class epp_PollResDataUnion --- NEW FILE: epp_PollRsp.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_PollRsp.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_PollRsp implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Response m_rsp = null; public org.openrtk.idl.epp02.epp_PollResData m_res_data = null; public epp_PollRsp () { } // ctor public epp_PollRsp (org.openrtk.idl.epp02.epp_Response _m_rsp, org.openrtk.idl.epp02.epp_PollResData _m_res_data) { m_rsp = _m_rsp; m_res_data = _m_res_data; } // ctor public void setRsp(org.openrtk.idl.epp02.epp_Response value) { m_rsp = value; } public org.openrtk.idl.epp02.epp_Response getRsp() { return m_rsp; } public void setResData(org.openrtk.idl.epp02.epp_PollResData value) { m_res_data = value; } public org.openrtk.idl.epp02.epp_PollResData getResData() { return m_res_data; } public String toString() { return this.getClass().getName() + ": { m_rsp ["+m_rsp+"] m_res_data ["+m_res_data+"] }"; } } // class epp_PollRsp --- NEW FILE: epp_Response.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Response.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_Response implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_Result m_results[] = null; public int m_qcount = (int)0; // expecting back from the registry. public String m_unspec_string = null; public org.openrtk.idl.epp02.epp_TransID m_trans_id = null; public epp_Response () { } // ctor public epp_Response (org.openrtk.idl.epp02.epp_Result[] _m_results, int _m_qcount, String _m_unspec_string, org.openrtk.idl.epp02.epp_TransID _m_trans_id) { m_results = _m_results; m_qcount = _m_qcount; m_unspec_string = _m_unspec_string; m_trans_id = _m_trans_id; } // ctor public void setResults(org.openrtk.idl.epp02.epp_Result[] value) { m_results = value; } public org.openrtk.idl.epp02.epp_Result[] getResults() { return m_results; } public void setQcount(int value) { m_qcount = value; } public int getQcount() { return m_qcount; } public void setUnspecString(String value) { m_unspec_string = value; } public String getUnspecString() { return m_unspec_string; } public void setTransId(org.openrtk.idl.epp02.epp_TransID value) { m_trans_id = value; } public org.openrtk.idl.epp02.epp_TransID getTransId() { return m_trans_id; } public String toString() { return this.getClass().getName() + ": { m_results ["+(m_results != null ? java.util.Arrays.asList(m_results) : null)+"] m_qcount ["+m_qcount+"] m_unspec_string ["+m_unspec_string+"] m_trans_id ["+m_trans_id+"] }"; } } // class epp_Response --- NEW FILE: epp_Result.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Result.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_Result implements org.omg.CORBA.portable.IDLEntity { public short m_code = (short)0; public String m_msg = null; public String m_lang = null; public String m_id = null; public String m_values[] = null; public epp_Result () { } // ctor public epp_Result (short _m_code, String _m_msg, String _m_lang, String _m_id, String[] _m_values) { m_code = _m_code; m_msg = _m_msg; m_lang = _m_lang; m_id = _m_id; m_values = _m_values; } // ctor public void setCode(short value) { m_code = value; } public short getCode() { return m_code; } public void setMsg(String value) { m_msg = value; } public String getMsg() { return m_msg; } public void setLang(String value) { m_lang = value; } public String getLang() { return m_lang; } public void setId(String value) { m_id = value; } public String getId() { return m_id; } public void setValues(String[] value) { m_values = value; } public String[] getValues() { return m_values; } public String toString() { return this.getClass().getName() + ": { m_code ["+m_code+"] m_msg ["+m_msg+"] m_lang ["+m_lang+"] m_id ["+m_id+"] m_values ["+(m_values != null ? java.util.Arrays.asList(m_values) : null)+"] }"; } } // class epp_Result --- NEW FILE: epp_Service.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Service.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_Service implements org.omg.CORBA.portable.IDLEntity { public String m_name = null; public String m_xmlns = null; public String m_schema_location = null; public epp_Service () { } // ctor public epp_Service (String _m_name, String _m_xmlns, String _m_schema_location) { m_name = _m_name; m_xmlns = _m_xmlns; m_schema_location = _m_schema_location; } // ctor public void setName(String value) { m_name = value; } public String getName() { return m_name; } public void setXmlns(String value) { m_xmlns = value; } public String getXmlns() { return m_xmlns; } public void setSchemaLocation(String value) { m_schema_location = value; } public String getSchemaLocation() { return m_schema_location; } public String toString() { return this.getClass().getName() + ": { m_name ["+m_name+"] m_xmlns ["+m_xmlns+"] m_schema_location ["+m_schema_location+"] }"; } } // class epp_Service --- NEW FILE: epp_Session.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Session.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ /////////////// public interface epp_Session extends epp_SessionOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY = (short)(1000); public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_NO_MESSAGES = (short)(1300); public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_MESSAGE_PRESENT = (short)(1301); public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_NOTHING_DONE = (short)(1302); public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_ENDING_SESSION = (short)(1500); public static final short EPP_UNKNOWN_COMMAND = (short)(2000); public static final short EPP_COMMAND_SYNTAX_ERROR = (short)(2001); public static final short EPP_COMMAND_USE_ERROR = (short)(2002); public static final short EPP_REQUIRED_PARAMETER_MISSING = (short)(2003); public static final short EPP_PARAMETER_VALUE_RANGE_ERROR = (short)(2004); public static final short EPP_PARAMETER_VALUE_SYNTAX_ERROR = (short)(2005); public static final short EPP_UNIMPLEMENTED_PROTOCOL_VERSION = (short)(2100); public static final short EPP_UNIMPLEMENTED_COMMAND = (short)(2101); public static final short EPP_UNIMPLEMENTED_OPTION = (short)(2102); public static final short EPP_UNIMPLEMENTED_EXTENSION = (short)(2103); public static final short EPP_BILLING_FAILURE = (short)(2104); public static final short EPP_OBJECT_IS_NOT_ELIGIBLE_FOR_RENEWAL = (short)(2105); public static final short EPP_OBJECT_IS_NOT_ELIGIBLE_FOR_TRANSFER = (short)(2106); public static final short EPP_AUTHENTICATION_FAILURE = (short)(2200); public static final short EPP_AUTHORIZATION_FAILURE = (short)(2201); public static final short EPP_INVALID_AUTHORIZATION_IDENTIFIER = (short)(2202); public static final short EPP_OBJECT_PENDING_TRANSFER = (short)(2300); public static final short EPP_OBJECT_NOT_PENDING_TRANSFER = (short)(2301); public static final short EPP_OBJECT_EXISTS = (short)(2302); public static final short EPP_OBJECT_DOES_NOT_EXIST = (short)(2303); public static final short EPP_OBJECT_STATUS_PROHIBITS_OPERATION = (short)(2304); public static final short EPP_OBJECT_ASSOCIATION_PROHIBITS_OPERATION = (short)(2305); public static final short EPP_PARAMETER_VALUE_POLICY_ERROR = (short)(2306); public static final short EPP_UNIMPLEMENTED_OBJECT_SERVICE = (short)(2307); public static final short EPP_DATA_MANAGEMENT_POLICY_VIOLATION = (short)(2308); public static final short EPP_COMMAND_FAILED = (short)(2400); public static final short EPP_COMMAND_FAILED_SERVER_ENDING_SESSION = (short)(2500); public static final short EPP_TIMEOUT_SERVER_ENDING_SESSION = (short)(2501); public static final short EPP_SESSION_LIMIT_EXCEEDED_SERVER_CLOSING_CONNECTION = (short)(2502); // public static final short RTK_COMMUNICATIONS_FAILURE = (short)(2600); public static final short RTK_UNEXPECTED_SERVER_DISCONNECT = (short)(2601); } // interface epp_Session --- NEW FILE: epp_SessionOperations.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_SessionOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ /////////////// public interface epp_SessionOperations { // require some casting on the RTK user's part). org.openrtk.idl.epp02.epp_Action processAction (org.openrtk.idl.epp02.epp_Action request) throws org.openrtk.idl.epp02.epp_Exception, org.openrtk.idl.epp02.epp_XMLException; // which might be required by processAction(). String processXML (String request_xml) throws org.openrtk.idl.epp02.epp_Exception, org.openrtk.idl.epp02.epp_XMLException; } // interface epp_SessionOperations --- NEW FILE: epp_TransID.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_TransID.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:03 PM EDT */ // public class epp_TransID implements org.omg.CORBA.portable.IDLEntity { public String m_client_trid = null; public String m_server_trid = null; public epp_TransID () { } // ctor public epp_TransID (String _m_client_trid, String _m_server_trid) { m_client_trid = _m_client_trid; m_server_trid = _m_server_trid; } // ctor public void setClientTrid(String value) { m_client_trid = value; } public String getClientTrid() { return m_client_trid; } public void setServerTrid(String value) { m_server_trid = value; } public String getServerTrid() { return m_server_trid; } public String toString() { return this.getClass().getName() + ": { m_client_trid ["+m_client_trid+"] m_server_trid ["+m_server_trid+"] }"; } } // class epp_TransID --- NEW FILE: epp_TransferOpType.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_TransferOpType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:03 PM EDT */ // public class epp_TransferOpType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 5; private static org.openrtk.idl.epp02.epp_TransferOpType[] __array = new org.openrtk.idl.epp02.epp_TransferOpType [__size]; public static final int _APPROVE = 0; public static final org.openrtk.idl.epp02.epp_TransferOpType APPROVE = new org.openrtk.idl.epp02.epp_TransferOpType(_APPROVE); public static final int _CANCEL = 1; public static final org.openrtk.idl.epp02.epp_TransferOpType CANCEL = new org.openrtk.idl.epp02.epp_TransferOpType(_CANCEL); public static final int _QUERY = 2; public static final org.openrtk.idl.epp02.epp_TransferOpType QUERY = new org.openrtk.idl.epp02.epp_TransferOpType(_QUERY); public static final int _REJECT = 3; public static final org.openrtk.idl.epp02.epp_TransferOpType REJECT = new org.openrtk.idl.epp02.epp_TransferOpType(_REJECT); public static final int _REQUEST = 4; public static final org.openrtk.idl.epp02.epp_TransferOpType REQUEST = new org.openrtk.idl.epp02.epp_TransferOpType(_REQUEST); public int value () { return __value; } public static org.openrtk.idl.epp02.epp_TransferOpType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_TransferOpType (int value) { __value = value; __array[__value] = this; } } // class epp_TransferOpType --- NEW FILE: epp_TransferRequest.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_TransferRequest.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_TransferRequest implements org.omg.CORBA.portable.IDLEntity { public org.openrtk.idl.epp02.epp_AuthInfo m_auth_info = null; public org.openrtk.idl.epp02.epp_TransferOpType m_op = null; public epp_TransferRequest () { } // ctor public epp_TransferRequest (org.openrtk.idl.epp02.epp_AuthInfo _m_auth_info, org.openrtk.idl.epp02.epp_TransferOpType _m_op) { m_auth_info = _m_auth_info; m_op = _m_op; } // ctor public void setAuthInfo(org.openrtk.idl.epp02.epp_AuthInfo value) { m_auth_info = value; } public org.openrtk.idl.epp02.epp_AuthInfo getAuthInfo() { return m_auth_info; } public void setOp(org.openrtk.idl.epp02.epp_TransferOpType value) { m_op = value; } public org.openrtk.idl.epp02.epp_TransferOpType getOp() { return m_op; } public String toString() { return this.getClass().getName() + ": { m_auth_info ["+m_auth_info+"] m_op ["+m_op+"] }"; } } // class epp_TransferRequest --- NEW FILE: epp_TransferStatusType.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_TransferStatusType.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:03 PM EDT */ // public class epp_TransferStatusType implements org.omg.CORBA.portable.IDLEntity { private int __value; private static int __size = 6; private static org.openrtk.idl.epp02.epp_TransferStatusType[] __array = new org.openrtk.idl.epp02.epp_TransferStatusType [__size]; public static final int _PENDING = 0; public static final org.openrtk.idl.epp02.epp_TransferStatusType PENDING = new org.openrtk.idl.epp02.epp_TransferStatusType(_PENDING); public static final int _APPROVED = 1; public static final org.openrtk.idl.epp02.epp_TransferStatusType APPROVED = new org.openrtk.idl.epp02.epp_TransferStatusType(_APPROVED); public static final int _CANCELLED = 2; public static final org.openrtk.idl.epp02.epp_TransferStatusType CANCELLED = new org.openrtk.idl.epp02.epp_TransferStatusType(_CANCELLED); public static final int _REJECTED = 3; public static final org.openrtk.idl.epp02.epp_TransferStatusType REJECTED = new org.openrtk.idl.epp02.epp_TransferStatusType(_REJECTED); public static final int _AUTO_APPROVED = 4; public static final org.openrtk.idl.epp02.epp_TransferStatusType AUTO_APPROVED = new org.openrtk.idl.epp02.epp_TransferStatusType(_AUTO_APPROVED); public static final int _AUTO_CANCELLED = 5; public static final org.openrtk.idl.epp02.epp_TransferStatusType AUTO_CANCELLED = new org.openrtk.idl.epp02.epp_TransferStatusType(_AUTO_CANCELLED); public int value () { return __value; } public static org.openrtk.idl.epp02.epp_TransferStatusType from_int (int value) { if (value >= 0 && value < __size) return __array[value]; else throw new org.omg.CORBA.BAD_PARAM (); } protected epp_TransferStatusType (int value) { __value = value; __array[__value] = this; } } // class epp_TransferStatusType --- NEW FILE: epp_Unspec.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_Unspec.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ // message. public interface epp_Unspec extends epp_UnspecOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { } // interface epp_Unspec --- NEW FILE: epp_UnspecOperations.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_UnspecOperations.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ // message. public interface epp_UnspecOperations { String toXML () throws org.openrtk.idl.epp02.epp_XMLException; void fromXML (String xml) throws org.openrtk.idl.epp02.epp_XMLException; } // interface epp_UnspecOperations --- NEW FILE: epp_XMLException.java --- package org.openrtk.idl.epp02; /** * org/openrtk/idl/epp/epp_XMLException.java * Generated by the IDL-to-Java compiler (portable), version "3.0" * from epp.idl * Thursday, July 26, 2001 6:26:04 PM EDT */ public class epp_XMLException extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity { public String m_error_message = null; public epp_XMLException () { } // ctor public epp_XMLException (String _m_error_message) { m_error_message = _m_error_message; } // ctor public void setErrorMessage(String value) { m_error_message = value; } public String getErrorMessage() { return m_error_message; } public String toString() { return this.getClass().getName() + ": { m_error_message ["+m_error_message+"] }"; } } // class epp_XMLException |
From: Daniel M. <tub...@us...> - 2003-03-21 17:13:46
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml/unspec In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/com/tucows/oxrs/epp02/rtk/xml/unspec Added Files: RTKVersion.java Log Message: pulled in epp02 java RTK 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/epp02/rtk/xml/unspec/RTKVersion.java,v 1.1 2003/03/21 17:13:43 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:43 $ */ package com.tucows.oxrs.epp02.rtk.xml.unspec; import java.io.*; import java.util.*; import java.text.*; import com.tucows.oxrs.epp02.rtk.*; import com.tucows.oxrs.epp02.rtk.xml.*; import org.openrtk.idl.epp02.*; 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 17:13:43 $ */ 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.epp02.epp_XMLException if required data is missing * @see org.openrtk.idl.epp02.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.epp02.epp_XMLException if the response XML is not parsable or does not contain the expected data * @see org.openrtk.idl.epp02.epp_Action */ public void fromXML( String xml ) throws epp_XMLException { } } // end of class com.tucows.oxrs.epp02.rtk.xml.unspec.RTKVersion |
From: Daniel M. <tub...@us...> - 2003-03-21 17:13:46
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml/poll In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/com/tucows/oxrs/epp02/rtk/xml/poll Added Files: PollResData.java contacttransfer.java domaintransfer.java Log Message: pulled in epp02 java RTK classes --- NEW FILE: PollResData.java --- package com.tucows.oxrs.epp02.rtk.xml.poll; import org.openrtk.idl.epp02.epp_PollResData; import org.openrtk.idl.epp02.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: contacttransfer.java --- package com.tucows.oxrs.epp02.rtk.xml.poll; import com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase; import org.openrtk.idl.epp02.*; 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. */ public class contacttransfer extends EPPXMLBase implements PollResData { private epp_PollResData 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(); epp_PollResData poll_res_data_ = new epp_PollResData(); epp_PollResDataUnion poll_res_data_union = new epp_PollResDataUnion(); epp_PollContactTransfer contact_transfer = new epp_PollContactTransfer(); debug(DEBUG_LEVEL_TWO,method_name,"contact:transfer's node count ["+contact_transfer_data_list.getLength()+"]"); if ( contact_transfer_data_list.getLength() == 0 ) { throw new epp_XMLException("missing contact transfer data"); } for (int count = 0; count < contact_transfer_data_list.getLength(); count++) { Node a_node = contact_transfer_data_list.item(count); if ( a_node.getNodeName().equals("contact:name") ) { contact_transfer.m_contact_roid = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("contact:authInfo") ) { contact_transfer.m_auth_info = new epp_AuthInfo(); contact_transfer.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); contact_transfer.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); contact_transfer.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); } } poll_res_data_union.m_contact_transfer(contact_transfer); poll_res_data_.m_type = epp_PollResDataType.CONTACT_TRANSFER; poll_res_data_.m_data = poll_res_data_union; } /** * 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: domaintransfer.java --- package com.tucows.oxrs.epp02.rtk.xml.poll; import com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase; import org.openrtk.idl.epp02.*; 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. */ public class domaintransfer extends EPPXMLBase implements PollResData { private epp_PollResData 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(); epp_PollResData poll_res_data_ = new epp_PollResData(); epp_PollResDataUnion poll_res_data_union = new epp_PollResDataUnion(); epp_PollDomainTransfer domain_transfer = new epp_PollDomainTransfer(); debug(DEBUG_LEVEL_TWO,method_name,"domain:transfer's node count ["+domain_transfer_data_list.getLength()+"]"); if ( domain_transfer_data_list.getLength() == 0 ) { throw new epp_XMLException("missing domain transfer data"); } for (int count = 0; count < domain_transfer_data_list.getLength(); count++) { Node a_node = domain_transfer_data_list.item(count); if ( a_node.getNodeName().equals("domain:name") ) { domain_transfer.m_domain_name = a_node.getFirstChild().getNodeValue(); } if ( a_node.getNodeName().equals("domain:authInfo") ) { domain_transfer.m_auth_info = new epp_AuthInfo(); domain_transfer.m_auth_info.m_value = a_node.getFirstChild().getNodeValue(); domain_transfer.m_auth_info.m_type = (epp_AuthInfoType)auth_type_string_to_type_hash_.get( ((Element)a_node).getAttribute("type") ); domain_transfer.m_auth_info.m_roid = ((Element)a_node).getAttribute("roid"); } } poll_res_data_union.m_domain_transfer(domain_transfer); poll_res_data_.m_type = epp_PollResDataType.DOMAIN_TRANSFER; poll_res_data_.m_data = poll_res_data_union; } /** * 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 17:13:44
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/com/tucows/oxrs/epp02/rtk/example Added Files: ContactExample.java DomainExample.java HostExample.java SessionExample.java Log Message: pulled in epp02 java RTK 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/epp02/rtk/example/ContactExample.java,v 1.1 2003/03/21 17:13:40 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:40 $ */ package com.tucows.oxrs.epp02.rtk.example; import java.util.*; import com.tucows.oxrs.epp02.rtk.*; import com.tucows.oxrs.epp02.rtk.xml.*; import org.openrtk.idl.epp02.*; import org.openrtk.idl.epp02.domain.*; import org.openrtk.idl.epp02.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 17:13:40 $ * @see com.tucows.oxrs.epp02.rtk.EPPClient * @see com.tucows.oxrs.epp02.rtk.xml.EPPGreeting * @see com.tucows.oxrs.epp02.rtk.xml.EPPContactCheck * @see com.tucows.oxrs.epp02.rtk.xml.EPPContactInfo * @see com.tucows.oxrs.epp02.rtk.xml.EPPContactCreate * @see com.tucows.oxrs.epp02.rtk.xml.EPPContactUpdate * @see com.tucows.oxrs.epp02.rtk.xml.EPPContactDelete **/ public class ContactExample { private static String USAGE = "Usage: com.tucows.oxrs.epp02.rtk.example.ContactExample epp_contact_name epp_contact_port epp_client_id epp_password"; /** * Main of the example. Performs Contact check, info, create, update and delete. **/ public static void main(String args[]) { System.out.println("Start of the Contact example"); epp_AuthInfo contact_auth_info = null; String saved_contact_roid = ""; epp_Command command_data = null; try { if (args.length != 4) { System.err.println(USAGE); System.exit(1); } RTKBase.setDebugLevel(RTKBase.DEBUG_LEVEL_ONE); 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); EPPClient epp_client = new EPPClient(epp_contact_name, epp_contact_port, epp_client_id, epp_password); epp_client.setLang("en"); epp_client.setProtocol(EPPClient.PROTOCOL_TCP_TLS); 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]+"]"); } String client_trid = "ABC:"+epp_client_id+":123"; System.out.println("Logging into the EPP Server"); 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 = client_trid; 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_roids = 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 = client_trid; contact_create_request.m_cmd = command_data; contact_auth_info = new epp_AuthInfo(); contact_auth_info.m_value = "test password"; contact_auth_info.m_type = epp_AuthInfoType.PW; contact_create_request.m_auth_info = contact_auth_info; 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..."; 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; // save the ROID for the further operations on this contact saved_contact_roid = contact_create_response.m_roid; 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 roid ["+contact_create_response.m_roid+"]"); } 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 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 = client_trid; contact_info_request.m_cmd = command_data; // Used the ROID saved from the contact create. contact_info_request.m_roid = saved_contact_roid; 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; 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 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 = client_trid; contact_update_request.m_cmd = command_data; contact_update_request.m_roid = saved_contact_roid; 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_postal_code = "A9A9A9"; // 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("", ""); 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; 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 Update 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 = client_trid; contact_info_request.m_cmd = command_data; // Used the ROID saved from the contact create. contact_info_request.m_roid = saved_contact_roid; 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; 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 Info failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Contact Transfer (Query) // *************************** System.out.println("Creating the Contact Transfer command (expected to fail)"); 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 = client_trid; 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; // transfer_request.m_auth_info = contact_auth_info; contact_transfer_request.m_trans = transfer_request; // Used the ROID from the contact create. contact_transfer_request.m_roid = saved_contact_roid; 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+"]"); // If the transfer "op" was REQUEST, when the transfer is // approved, the trID returned by the successful REQUEST will // become the object's new auth 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; 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 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 = client_trid; contact_delete_request.m_cmd = command_data; // Used the ROID from the contact create. contact_delete_request.m_roid = saved_contact_roid; 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; 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 Delete failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } System.out.println("Logging out from the EPP Server"); epp_client.logout(client_trid); 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; 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 ) { System.err.println("Exception! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } } } --- 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/epp02/rtk/example/DomainExample.java,v 1.1 2003/03/21 17:13:40 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:40 $ */ package com.tucows.oxrs.epp02.rtk.example; import java.util.*; import java.io.*; import com.tucows.oxrs.epp02.rtk.*; import com.tucows.oxrs.epp02.rtk.xml.*; import org.openrtk.idl.epp02.*; import org.openrtk.idl.epp02.domain.*; /** * 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 17:13:40 $ * @see com.tucows.oxrs.epp02.rtk.EPPClient * @see com.tucows.oxrs.epp02.rtk.xml.EPPGreeting * @see com.tucows.oxrs.epp02.rtk.xml.EPPDomainCheck * @see com.tucows.oxrs.epp02.rtk.xml.EPPDomainInfo * @see com.tucows.oxrs.epp02.rtk.xml.EPPDomainCreate * @see com.tucows.oxrs.epp02.rtk.xml.EPPDomainUpdate * @see com.tucows.oxrs.epp02.rtk.xml.EPPDomainDelete **/ public class DomainExample { private static String USAGE = "Usage: com.tucows.oxrs.epp02.rtk.example.DomainExample epp_host_name epp_host_port epp_client_id epp_password"; /** * Main of the example. Performs Domain check, info, create, update 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 != 4) { System.err.println(USAGE); System.exit(1); } RTKBase.setDebugLevel(RTKBase.DEBUG_LEVEL_ONE); String epp_host_name = args[0]; String epp_host_port_string = args[1]; String epp_client_id = args[2]; String epp_password = args[3]; int epp_host_port = Integer.parseInt(epp_host_port_string); EPPClient epp_client = new EPPClient(epp_host_name, epp_host_port, epp_client_id, epp_password); epp_client.setLang("en"); epp_client.setProtocol(EPPClient.PROTOCOL_TCP_TLS); 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]+"]"); } String client_trid = "ABC:"+epp_client_id+":123"; System.out.println("Logging into the EPP Server"); 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 = client_trid; 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]+"]"); } } 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. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = client_trid; 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("domain.info"); 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 [domain.info] exists? ["+EPPXMLBase.getCheckResultFor(check_results, "domain.info")+"]"); } 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(); } 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. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = client_trid; domain_create_request.m_cmd = command_data; domain_create_request.m_name = epp_client_id+"1.info"; // 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, you can specify another domain's // nameserver's in the request. List name_server_list = (List)new ArrayList(); name_server_list.add("ns1.domain.info"); name_server_list.add("ns2.domain.info"); 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: "); 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; 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 ROID and expiration date are returned on a // successful domain creation. System.out.println("DomainCreate results: domain roid ["+domain_create_response.m_roid+"] 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; 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 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. it's main use // is for registrar tracking and logging of requests, // especially for data creation or modification requests command_data.m_client_trid = client_trid; domain_info_request.m_cmd = command_data; // The only domain-specific parameter is the domain name itself. domain_info_request.m_name = epp_client_id+"1.info"; 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 auID (auth ID) 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, // last transfer client id, last transfer date, and // expiration date 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; 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 Info failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Domain Update // *************************** System.out.println("Creating the Domain Update command"); epp_DomainUpdateReq domain_update_request = new epp_DomainUpdateReq(); 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 = client_trid; domain_update_request.m_cmd = command_data; domain_update_request.m_name = epp_client_id+"1.info"; epp_DomainUpdateAddRemove add = new epp_DomainUpdateAddRemove(); // Here is a list of nameservers to add to the domain. // An array is expected here, but to avoid using Java native // arrays, we're using an ArrayList and then converting it to a // String array. List name_server_list = (List)new ArrayList(); name_server_list.add("ns3.domain.info"); name_server_list.add("ns4.domain.info"); add.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); // We also want to add the clientTransferProhited status to the domain. // This time we'll create an array of epp_DomainStatus // directly. EPP allows for registrar notes in the // status field. EPP even allows for a language specifier. add.m_status = new epp_DomainStatus[1]; add.m_status[0] = new epp_DomainStatus(); add.m_status[0].m_type = epp_DomainStatusType.CLIENT_TRANSFER_PROHIBITED; add.m_status[0].m_lang = "fr"; add.m_status[0].m_value = "Le client n'as pas envoyé de l'argent"; // Set the add information domain_update_request.m_add = add; epp_DomainUpdateAddRemove remove = new epp_DomainUpdateAddRemove(); // Now to remove the two old nameservers. name_server_list = (List)new ArrayList(); name_server_list.add("ns1.domain.info"); name_server_list.add("ns2.domain.info"); remove.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); // Set the remove information domain_update_request.m_remove = remove; // We're also specifying the information to change. // Only the registrant information can be changed. domain_update_request.m_change = new epp_DomainUpdateChange(); domain_update_request.m_change.m_registrant = "C100-LRMS"; EPPDomainUpdate domain_update = new EPPDomainUpdate(); domain_update.setRequestData(domain_update_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. domain_update = (EPPDomainUpdate) epp_client.processAction(domain_update); // or, alternatively, this method can be used... //domain_update.fromXML(epp_client.processXML(domain_update.toXML())); epp_DomainUpdateRsp domain_update_response = domain_update.getResponseData(); epp_Response response = domain_update_response.m_rsp; epp_Result[] results = response.m_results; System.out.println("DomainUpdate 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]+"]"); } } catch ( Exception xcp ) { // Other unexpected exceptions System.err.println("Domain Update failed! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } try { // *************************** // Domain Renew // *************************** System.out.println("Creating the Domain Renew command"); epp_DomainRenewReq domain_renew_request = new epp_DomainRenewReq(); 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 = client_trid; domain_renew_request.m_cmd = command_data; domain_renew_request.m_name = epp_client_id+"1.info"; // As in the domain create operation, the domain period // may be specified here also. domain_renew_request.m_period = new epp_DomainPeriod(); domain_renew_request.m_period.m_unit = epp_DomainPeriodUnitType.YEAR; domain_renew_request.m_period.m_value = (short) 2; // The domain's current expiration must also be specified // to unintentional multiple renew request from succeeding. // The format of the expiration date must be "YYYY-MM-DD" domain_renew_request.m_current_expiration_date = RTKBase.DATE_FMT.format(domain_exp_date); EPPDomainRenew domain_renew = new EPPDomainRenew(); domain_renew.setRequestData(domain_renew_request); // Now ask the EPPClient to process the request and retrieve // a response from the server. domain_renew = (EPPDomainRenew) epp_client.processAction(domain_renew); // or, alternatively, this metho... [truncated message content] |
From: Daniel M. <tub...@us...> - 2003-03-21 17:13:44
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv31948/src/com/tucows/oxrs/epp02/rtk Added Files: EPPClient.java RTKBase.java Log Message: pulled in epp02 java RTK 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/epp02/rtk/EPPClient.java,v 1.1 2003/03/21 17:13:40 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:40 $ */ package com.tucows.oxrs.epp02.rtk; import java.io.*; import java.net.*; import javax.net.ssl.*; import java.util.*; import javax.security.cert.*; import java.security.*; import org.openrtk.idl.epp02.*; import com.tucows.oxrs.epp02.rtk.xml.*; /** * EPP Client -- encapsulates all the connection and communication with the * EPP Server. * * @author Daniel Manley * @version $Revision: 1.1 $ $Date: 2003/03/21 17:13:40 $ * @see com.tucows.oxrs.epp02.rtk.example.DomainExample * @see com.tucows.oxrs.epp02.rtk.example.ContactExample * @see com.tucows.oxrs.epp02.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_US". Sent to the EPP Server on login. */ public static final String DEFAULT_LANG = "en_US"; /** * The default timeout in waiting for server responses. Set to 20 seconds. */ public static final int DEFAULT_EPP_TIMEOUT = 20000; /** * The indicator for using only TCP streaming socket connection. No SSL/TLS. */ public static final int PROTOCOL_TCP = 0; /** * The indicator for using TCP streaming socket connection with SSL/TLS. */ public static final int PROTOCOL_TCP_TLS = 1; /** * The indicator for using BXXP. Not currently supported. * Introduced for possible future work. */ public static final int PROTOCOL_BXXP = 2; // 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 String version_; private String lang_; private Socket socket_to_epp_server_; private BufferedReader reader_from_server_; private PrintWriter writer_to_server_; // SSL enhancements [wessorh] private SSLContext ctx_ = null; private KeyStore ks_ = null; private KeyManagerFactory kmf_ = null; private SecureRandom rnd_ = null; // 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; // int to indicate the protocol that should be used // in the connection to the server. private int protocol_; // Is RTK version number included as unspec in login private boolean sendver_ = true; /** * Default constructor -- uses default version, lang and timeout values. * Also defaults to use TCP/TLS in the connection to the EPP Server. */ public EPPClient() { version_ = VERSION; lang_ = DEFAULT_LANG; protocol_ = PROTOCOL_TCP_TLS; epp_timeout_ = DEFAULT_EPP_TIMEOUT; } /** * 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 version * @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 * @param value The lang/locale String (eg. "fr_CA") */ public void setLang(String value) { lang_ = value; } /** * Accessor method for the lang * @return String lang */ public String getLang() { return lang_; } /** * Accessor method for the protocol indicator * @param value int protocol indicator */ public void setProtocol(int value) { protocol_ = value; } /** * Accessor method for the protocol indicator * @return int protocol indicator */ public int getProtocol() { return protocol_; } /** * 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_; } /** * Accessor method for the client id. This value is also used * in the creation of the default EPPTransID * @param value The client is String */ public void setEPPClientID(String value) { epp_client_id_ = value; } /** * Accessor method for the client id. This value is also used * in the creation of the default EPPTransID */ 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 */ public String getEPPPassword() { return epp_password_; } /** * Accessor method for the time of the last successfull * network transaction. * * useful for tracking when a keepAlive (poll) transaction * needs to be sent. */ 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> */ 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(). * @param value The Socket to the EPP Server * @see #getEPPTimeout() */ public void setSocketToEPPServer(Socket value) throws epp_Exception, UnknownHostException, SocketException, IOException { String method_name = "setSocketToEPPServer"; debug(DEBUG_LEVEL_THREE,method_name,"Enterd"); socket_to_epp_server_ = value; // Set the socket's timeout. socket_to_epp_server_.setSoTimeout(epp_timeout_); // with a new Socket, come new Reader and Writer reader_from_server_ = new BufferedReader(new InputStreamReader(socket_to_epp_server_.getInputStream())); writer_to_server_ = new PrintWriter(new OutputStreamWriter(socket_to_epp_server_.getOutputStream()),true); 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 * @see #connectAndGetGreeting() */ public void connect(String epp_host_name, int epp_host_port) throws epp_Exception, UnknownHostException, SocketException, IOException { 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 * @see #connectAndGetGreeting() */ public void connect(String epp_client_id, String epp_password) throws epp_Exception, UnknownHostException, SocketException, IOException { 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 * @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 { 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. * @see #connectAndGetGreeting() */ public void connect() throws epp_Exception, UnknownHostException, SocketException, IOException { String method_name = "connect()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); // Initialize to null the socket to the server socket_to_epp_server_ = null; if (protocol_ == PROTOCOL_TCP_TLS) { // init SSL connection 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 ) { isValid = false; 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) { isValid = false; throw new IOException(xcp.getMessage()); } socket_to_epp_server_ = (Socket)ssl_factory.createSocket(epp_host_name_, epp_host_port_); } else if (protocol_ == PROTOCOL_TCP) { debug(DEBUG_LEVEL_TWO,method_name,"Using plain TCP"); socket_to_epp_server_ = new Socket(epp_host_name_, epp_host_port_); } else { debug(DEBUG_LEVEL_TWO,method_name,"Wanted to use something not supported ["+protocol_+"]"); throw new IOException("Protocol not supported"); } socket_to_epp_server_.setSoTimeout(epp_timeout_); reader_from_server_ = new BufferedReader(new InputStreamReader(socket_to_epp_server_.getInputStream())); writer_to_server_ = new PrintWriter(new OutputStreamWriter(socket_to_epp_server_.getOutputStream()),true); debug(DEBUG_LEVEL_TWO,method_name,"Connected to ["+socket_to_epp_server_.getInetAddress()+":"+socket_to_epp_server_.getPort()+"]"); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return; } /** * Reads a complete XML message from the EPP Server. You would normally * then use this XML string in an epp_Action.fromXML(). * @return Full XML String * @throws org.openrtk.idl.epp02.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 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"; this.isValid = false; 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()+"]"; this.isValid = false; throw new epp_Exception( result ); } this.lastNetTransaction = System.currentTimeMillis(); debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); return buf.toString(); } /** * Method required by the epp_Action interface. * Sends raw XML to the server and returns the XML response. * @throws org.openrtk.idl.epp02.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; } /** * Method required by the epp_Action interface. * Sends raw XML to the server and returns the XML response. * @throws org.openrtk.idl.epp02.epp_XMLException if any request data or response data is missing * @throws org.openrtk.idl.epp02.epp_Exception if a communication error occurs or if the server returns an error code */ 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 * @throws org.openrtk.idl.epp02.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 { String line; StringBuffer buf; BufferedReader reader_outbound_xml = new BufferedReader(new StringReader(outbound_xml)); 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()+"]"; this.isValid = false; throw new epp_Exception( result ); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Connects to the EPP Server using previously set hostname and port. * It also reads the epp_Greeting from the server and returns it * @return org.openrtk.idl.epp02.epp_Greeting the greeting from the EPP Server * @throws IOException if there was a socket error in connecting to the EPP Server * @throws org.openrtk.idl.epp02.epp_Exception if the server greeting is not present * @throws org.openrtk.idl.epp02.epp_XMLException if the server's greeting is not parsable */ public epp_Greeting connectAndGetGreeting() throws epp_Exception, IOException, epp_XMLException { 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 (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. * @return org.openrtk.idl.epp02.epp_Greeting the greeting from the EPP Server * @throws org.openrtk.idl.epp02.epp_Exception if the server greeting is not present * @throws org.openrtk.idl.epp02.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 org.openrtk.idl.epp02.epp_Greeting the greeting from the EPP Server * @throws org.openrtk.idl.epp02.epp_Exception if the server greeting is not present * @throws org.openrtk.idl.epp02.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 * @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_epp_server_ != null ) { socket_to_epp_server_.close(); } socket_to_epp_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; this.isValid = false; } catch (IOException xcp) { debug(DEBUG_LEVEL_ONE,method_name,xcp); this.isValid = false; throw xcp; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Logs into the EPP Server using previously set client id and password * @param String the client TRID * @throws org.openrtk.idl.epp02.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp02.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 * @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.epp02.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp02.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. * @param String the client TRID * @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.epp02.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp02.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 domain, host and contact object/XML information * in the services section. If you wish to omit one of the standard * EPP objects (or add any based on registry extensions to EPP), * then you'll have to populate the EPPLogin command manually and call * processAction() yourself. * @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.epp02.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp02.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.epp02.rtk.xml.unspec.RTKVersion() ); epp_Service[] services = new epp_Service[3]; services[0] = new epp_Service("domain", "urn:iana:xml:ns:domain", "urn:iana:xml:ns:domain domain.xsd"); services[1] = new epp_Service("host", "urn:iana:xml:ns:host", "urn:iana:xml:ns:host host.xsd"); services[2] = new epp_Service("contact", "urn:iana:xml:ns:contact", "urn:iana:xml:ns:contact contact.xsd"); login_req.setServices( 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){ this.isValid = false; throw e; }catch(epp_Exception e){ this.isValid = false; throw e; } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); } /** * Logs out of EPP Server * @param String the client TRID * @throws org.openrtk.idl.epp02.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp02.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; } /** * @throws org.openrtk.idl.epp02.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp02.epp_Exception if the EPP Server responded with an error code */ public epp_PollRsp poll(String client_tr_id) throws epp_XMLException, epp_Exception { return poll(client_tr_id, null); } /** * @param message_id The id of the message to ACK. If null, the Poll op will be REQ. * @throws org.openrtk.idl.epp02.epp_XMLException if the request XML could not be built or if the response XML could not be parsed. * @throws org.openrtk.idl.epp02.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/epp02/rtk/RTKBase.java,v 1.1 2003/03/21 17:13:40 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/21 17:13:40 $ */ package com.tucows.oxrs.epp02.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 17:13:40 $ **/ public abstract class RTKBase extends org.omg.CORBA.portable.ObjectImpl { /** * RTK Version number. */ public static final String RTK_VERSION = "0.3.10"; /** * 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 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 version * @return int the current debug level */ public static int getDebugLevel() { return debug_level_; } /** * 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 ) { System.err.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 ) { System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } } /** * 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. */ 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 17:12:45
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402 In directory sc8-pr-cvs1:/tmp/cvs-serv8415/epp0402 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402 added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:12:41
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/poll In directory sc8-pr-cvs1:/tmp/cvs-serv9704/poll Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/xml/poll added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:11:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/host In directory sc8-pr-cvs1:/tmp/cvs-serv31536/host Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/host added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:11:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/contact In directory sc8-pr-cvs1:/tmp/cvs-serv31536/contact Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/contact added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:11:01
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/domain In directory sc8-pr-cvs1:/tmp/cvs-serv31536/domain Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp02/domain added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:09:48
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv30668/example Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/example added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:09:48
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv30668/xml Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:09:38
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv30542/rtk Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk added to the repository |
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503 In directory sc8-pr-cvs1:/tmp/cvs-serv1603/src/org/openrtk/idl/epp0503 Added Files: epp_Action.java epp_ActionOperations.java epp_AuthInfo.java epp_AuthInfoType.java epp_CheckResult.java epp_Command.java epp_Credentials.java epp_DataCollectionPolicy.java epp_Exception.java epp_Extension.java epp_ExtensionOperations.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_ResultData.java epp_Service.java epp_ServiceMenu.java epp_Session.java epp_SessionOperations.java epp_Status.java epp_StatusCommandType.java epp_StatusOperations.java epp_StatusReq.java epp_StatusResultData.java epp_StatusRsp.java epp_TransID.java epp_TransferOpType.java epp_TransferRequest.java epp_TransferStatusType.java epp_Unspec.java epp_XMLException.java epp_dcpAccessType.java epp_dcpPurposeType.java epp_dcpRecipientType.java epp_dcpRetentionType.java epp_dcpStatement.java Log Message: pulledin epp0503 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.epp0503; /** * 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/epp0503/epp_Action.java,v 1.1 2003/03/21 16:18:24 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:24 $<br> * @see org.openrtk.idl.epp0503.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.epp0503; /** * 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/epp0503/epp_ActionOperations.java,v 1.1 2003/03/21 16:18:24 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:24 $<br> * @see org.openrtk.idl.epp0503.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.epp0503.epp_Exception, org.openrtk.idl.epp0503.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.epp0503.epp_Exception, org.openrtk.idl.epp0503.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.epp0503; /** * 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/epp0503/epp_AuthInfo.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.epp_TransferRequest * @see org.openrtk.idl.epp0503.domain.epp_DomainCreateReq * @see org.openrtk.idl.epp0503.domain.epp_DomainUpdateChange */ public class epp_AuthInfo implements org.omg.CORBA.portable.IDLEntity { /** * The authorization information type. * @see #setType(org.openrtk.idl.epp0503.epp_AuthInfoType) * @see #getType() */ public org.openrtk.idl.epp0503.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.epp0503.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.epp0503.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.epp0503.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.epp0503; /** * 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/epp0503/epp_AuthInfoType.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.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.epp0503.epp_AuthInfoType[] __array = new org.openrtk.idl.epp0503.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.epp0503.epp_AuthInfo */ public static final org.openrtk.idl.epp0503.epp_AuthInfoType PW = new org.openrtk.idl.epp0503.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.epp0503.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.epp0503; /** * Class that contains the elements generic to all the check command responses.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/epp_CheckResult.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.domain.epp_DomainCheckRsp#getResults() * @see org.openrtk.idl.epp0503.host.epp_HostCheckRsp#getResults() * @see org.openrtk.idl.epp0503.contact.epp_ContactCheckRsp#getResults() */ public class epp_CheckResult implements org.omg.CORBA.portable.IDLEntity { /** * The boolean value indicating whether an object is available in the registry or not. * @see #setAvail(boolean) * @see #getAvail() */ public boolean m_avail = false; /** * The identifier or name of the object checked in the registry. * @see #setValue(String) * @see #getValue() */ public String m_value = null; /** * Server-specific text to explain why the object is unavailable * Max length 32 by the XSD specifications * @see #setReason(String) * @see #getReason() */ public String m_reason = null; /** * The language for the reason text, default "en" * @see #setLang(String) * @see #getLang() */ public String m_lang = null; /** * 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 * @deprecated Please use epp_CheckResult(String _m_value, boolean _m_exists, String _m_reason, String _m_lang) instead */ public epp_CheckResult (boolean _m_exists, String _m_value) { m_avail = ! _m_exists; m_value = _m_value; } // ctor /** * The constructor with initializing variables. * @param _m_value The identifier or name of the object checked in the registry * @param _m_avail The boolean value indicating whether an object is available or not * @param _m_reason The Server-specific text to explain why the object is unavailable * @param _m_lang The language of the reason text */ public epp_CheckResult (String _m_value, boolean _m_avail, String _m_reason, String _m_lang) { m_value = _m_value; m_avail = _m_avail; m_reason = _m_reason; m_lang = _m_lang; } // ctor /** * Accessor method for the boolean value indicating whether an object exists in the registry or not * @param value The boolean value indicating whether an object exists in the registry or not * @deprecated Please use setAvail() instead */ public void setExists(boolean value) { m_avail = ! value; } /** * Accessor method for the boolean value indicating whether an object exists in the registry or not * @return The boolean value indicating whether an object exists in the registry or not * @deprecated Please use getAvail() instead */ public boolean getExists() { return ! m_avail; } /** * Accessor method for the boolean value indicating whether an object is available or not * @param value The boolean value indicating whether an object is available or not * @see #m_avail */ public void setAvail(boolean value) { m_avail = value; } /** * Accessor method for the boolean value indicating whether an object is available or not * @return The boolean value indicating whether an object is available or not * @see #m_avail */ public boolean getAvail() { return m_avail; } /** * 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; } /** * Accessor method for the reason text * @param value The reason text * @see #m_reason */ public void setReason(String value) { m_reason = value; } /** * Accessor method for the reason text * @return The reason text * @see #m_reason */ public String getReason() { return m_reason; } /** * Accessor method for the language of the reason text * @param value The language of the reason text * @see #m_lang */ public void setLang(String value) { m_lang = value; } /** * Accessor method for the language of the reason text * @return The language of the reason text * @see #m_lang */ public String getLang() { return m_lang; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_value ["+m_value+"] m_avail ["+m_avail+"] m_reason ["+m_reason+"] m_lang ["+m_lang+"] }"; } } // class epp_CheckResult --- 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.epp0503; /** * 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/epp0503/epp_Command.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.epp_LoginReq#setCmd(epp_Command) * @see org.openrtk.idl.epp0503.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.epp0503.epp_Credentials) * @see #getCreds() */ public org.openrtk.idl.epp0503.epp_Credentials m_creds = null; /** * The optional command extensions. * @see #setExtension(org.openrtk.idl.epp0503.epp_Extension) * @see #getExtension() */ public org.openrtk.idl.epp0503.epp_Extension m_extension = 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_extension The optional command extensions * @param _m_client_trid The client transaction identifier assigned by the client to the command */ public epp_Command (org.openrtk.idl.epp0503.epp_Credentials _m_creds, org.openrtk.idl.epp0503.epp_Extension _m_extension, String _m_client_trid) { m_creds = _m_creds; m_extension = _m_extension; 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.epp0503.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.epp0503.epp_Credentials getCreds() { return m_creds; } /** * Accessor method for the optional command extensions * @param value The optional command extensions * @see #m_extension */ public void setExtension(org.openrtk.idl.epp0503.epp_Extension value) { m_extension = value; } /** * Accessor method for the optional command extensions * @return The optional command extensions * @see #m_extension */ public org.openrtk.idl.epp0503.epp_Extension getExtension() { return m_extension; } /** * Accessor method for the optional command extensions * @param value The optional command extensions * @see #m_extension * @deprecated Please use setExtension() */ public void setUnspec(org.openrtk.idl.epp0503.epp_Unspec value) { setExtension(value); } /** * Accessor method for the optional command extensions * @return The optional command extensions * @see #m_extension * @deprecated Please use getExtension() */ public org.openrtk.idl.epp0503.epp_Unspec getUnspec() { return (epp_Unspec)getExtension(); } /** * 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_extension ["+m_extension+"] 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.epp0503; /** * 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/epp0503/epp_Credentials.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.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.epp0503.epp_Options) * @see #getOptions() */ public org.openrtk.idl.epp0503.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.epp0503.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.epp0503.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.epp0503.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_DataCollectionPolicy.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp0503; /** * Class that contains elements used to describe EPP Server's policy for data * collection and management.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/epp_DataCollectionPolicy.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.epp_Greeting * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public class epp_DataCollectionPolicy implements org.omg.CORBA.portable.IDLEntity { /** * The access type. * @see #setAccess(epp_dcpAccessType) * @see #getAccess() */ public org.openrtk.idl.epp0503.epp_dcpAccessType m_access = null; /** * The array of statement elements. * @see #setStatements(epp_dcpStatement[]) * @see #getStatements() */ public org.openrtk.idl.epp0503.epp_dcpStatement m_statements[] = null; /** * Empty constructor */ public epp_DataCollectionPolicy () { } // ctor /** * The constructor with initializing variables. * @param _m_access The access type * @param _m_statements The array of statement elements */ public epp_DataCollectionPolicy (org.openrtk.idl.epp0503.epp_dcpAccessType _m_access, org.openrtk.idl.epp0503.epp_dcpStatement[] _m_statements) { m_access = _m_access; m_statements = _m_statements; } // ctor /** * Accessor method for the access type * @param value The access type * @see #m_access */ public void setAccess(org.openrtk.idl.epp0503.epp_dcpAccessType value) { m_access = value; } /** * Accessor method for the access type * @return value The access type * @see #m_access */ public org.openrtk.idl.epp0503.epp_dcpAccessType getAccess() { return m_access; } /** * Accessor method for the array of statement elements * @param value The array of statement elements * @see #m_statements */ public void setStatements(org.openrtk.idl.epp0503.epp_dcpStatement[] value) { m_statements = value; } /** * Accessor method for the array of statement elements * @return value The array of statement elements * @see #m_statements */ public org.openrtk.idl.epp0503.epp_dcpStatement[] getStatements() { return m_statements; } /** * Converts this class into a string. * Typically used to view the object in debug output. * @return The string representation of this object instance */ public String toString() { return this.getClass().getName() + ": { m_access ["+m_access+"] m_statements ["+(m_statements != null ? java.util.Arrays.asList(m_statements) : null)+"] }"; } } // class epp_DataCollectionPolicy --- 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.epp0503; /** * 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/epp0503/epp_Exception.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<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.epp0503.epp_Result[]) * @see #getDetails() */ public org.openrtk.idl.epp0503.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.epp0503.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.epp0503.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.epp0503.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_Extension.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp0503; /** * Master external interface for the implementor of the EPP Extension element.</p> * The Unspc(unspecified) element may be used for server-defined command extensions.</p> * The interface brings together epp_ExtensionOperations and standard IDL classes. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/epp_Extension.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> */ public interface epp_Extension extends epp_ExtensionOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { } // interface epp_Extension --- NEW FILE: epp_ExtensionOperations.java --- /* ** ** EPP RTK Java ** Copyright (C) 2002, Tucows, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ package org.openrtk.idl.epp0503; /** * Internal IDL interface which is never referenced externally.</p> * Sub-interface epp_Extension may be implemented for the server-defined * command extensions. * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/epp_ExtensionOperations.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.epp_Extension */ public interface epp_ExtensionOperations { /** * Converts the data into XML to be put into the unspec section of the request * @return the XML String. * @throws epp_XMLException if required data is missing. */ String toXML () throws org.openrtk.idl.epp0503.epp_XMLException; /** * Parses an XML String of data from the unspec section of a response from the Registry. * @param The XML String to parse. * @throws epp_XMLException if the response XML is not parsable or does not contain the expected data. */ void fromXML (String xml) throws org.openrtk.idl.epp0503.epp_XMLException; } // interface epp_ExtensionOperations --- 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.epp0503; /** * 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, the * services and data collection policy offered by the server.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/epp_Greeting.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<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 services offered by the server. * @see #setSvcMenu(org.openrtk.idl.epp0503.epp_ServiceMenu) * @see #getSvcMenu() */ public org.openrtk.idl.epp0503.epp_ServiceMenu m_svc_menu = null; /** * The data collection policy of the server. * @see #setDcp(org.openrtk.idl.epp0503.epp_DataCollectionPolicy) * @see #getDcp() */ public org.openrtk.idl.epp0503.epp_DataCollectionPolicy m_dcp = 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_svc_menu The services offered by the server * @param _m_dcp The data collection policy of the server */ public epp_Greeting (String _m_server_id, String _m_server_date, org.openrtk.idl.epp0503.epp_ServiceMenu _m_svc_menu, org.openrtk.idl.epp0503.epp_DataCollectionPolicy _m_dcp) { m_server_id = _m_server_id; m_server_date = _m_server_date; m_svc_menu = _m_svc_menu; m_dcp = _m_dcp; } // ctor /** * 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 services offered by the server * @param value The service element * @see #m_svc_menu */ public void setSvcMenu(org.openrtk.idl.epp0503.epp_ServiceMenu value) { m_svc_menu = value; } /** * Accessor method for the services offered by the server * @return The service element * @see #m_svc_menu */ public org.openrtk.idl.epp0503.epp_ServiceMenu getSvcMenu() { return m_svc_menu; } /** * Accessor method for the data collection policy of the server * @param value The data collection policy of the server * @see #m_dcp */ public void setDcp(org.openrtk.idl.epp0503.epp_DataCollectionPolicy value) { m_dcp = value; } /** * Accessor method for the data collection policy of the server * @return The data collection policy of the server * @see #m_dcp */ public org.openrtk.idl.epp0503.epp_DataCollectionPolicy getDcp() { return m_dcp; } /** * 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_svc_menu ["+m_svc_menu+"] m_dcp ["+m_dcp+"] }"; } } // 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.epp0503; /** * 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/epp0503/epp_Hello.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPGreeting */ public interface epp_Hello extends epp_HelloOperations, org.openrtk.idl.epp0503.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.epp0503; /** * 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/epp0503/epp_HelloOperations.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.epp_Hello */ public interface epp_HelloOperations extends org.openrtk.idl.epp0503.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.epp0503.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.epp0503; /** * Master external interface for the implementor of the EPP Login command.</p> * The interface brings together epp_LoginOperations, epp_Action and standard * IDL classes.</p> * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/epp_Login.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogin */ public interface epp_Login extends epp_LoginOperations, org.openrtk.idl.epp0503.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.epp0503; /** * 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/epp0503/epp_LoginOperations.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.epp_Login */ public interface epp_LoginOperations extends org.openrtk.idl.epp0503.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.epp0503.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.epp0503.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.epp0503; /** * 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/epp0503/epp_LoginReq.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogin * @see org.openrtk.idl.epp0503.epp_LoginRsp */ public class epp_LoginReq implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic command element. * @see #setCmd(org.openrtk.idl.epp0503.epp_Command) * @see #getCmd() */ public org.openrtk.idl.epp0503.epp_Command m_cmd = null; /** * The array of service URIs. * Each URI identifies an object to be managed during the session. * @see #setServices(String[]) * @see #getServices() */ public String m_services[] = null; /** * The array of service extensions. * Each element identifies a custom object extensions supported by the server. * @see #setExtensions(String[]) * @see #getExtensions() */ public String m_extensions[] = null; /** * 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_extensions The array of service extensions supported by the server */ public epp_LoginReq (org.openrtk.idl.epp0503.epp_Command _m_cmd, String[] _m_services, String[] _m_extensions) { m_cmd = _m_cmd; m_services = _m_services; m_extensions = _m_extensions; } // ctor /** * Accessor method for the common and generic command element * @param value The command element * @see #m_cmd */ public void setCmd(org.openrtk.idl.epp0503.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.epp0503.epp_Command getCmd() { return m_cmd; } /** * Accessor method for the array of services supported by the server * @param value The array of service URIs * @see #m_services */ public void setServices(String[] value) { m_services = value; } /** * Accessor method for the array of services supported by the server * @return The array of service URIs * @see #m_services */ public String[] getServices() { return m_services; } /** * Accessor method for the array of service extensions supported by the server * @param value The array of service extensions * @see #m_extensions */ public void setExtensions(String[] value) { m_extensions = value; } /** * Accessor method for the array of service extensions supported by the server * @return The array of service extensions * @see #m_extensions */ public String[] getExtensions() { return m_extensions; } /** * 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_extensions ["+(m_extensions != null ? java.util.Arrays.asList(m_extensions) : 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.epp0503; /** * 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/epp0503/epp_LoginRsp.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogin * @see org.openrtk.idl.epp0503.epp_LoginReq */ public class epp_LoginRsp implements org.omg.CORBA.portable.IDLEntity { /** * The common and generic response element. * @see #getRsp() */ public org.openrtk.idl.epp0503.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.epp0503.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.epp0503.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.epp0503.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.epp0503; /** * 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/epp0503/epp_Logout.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see com.tucows.oxrs.epp.rtk.xml.EPPLogout */ public interface epp_Logout extends epp_LogoutOperations, org.openrtk.idl.epp0503.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.epp0503; /** * 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/epp0503/epp_LogoutOperations.java,v 1.1 2003/03/21 16:18:25 tubadanm Exp $<br> * $Revision: 1.1 $<br> * $Date: 2003/03/21 16:18:25 $<br> * @see org.openrtk.idl.epp0503.epp_Logout */ public interface epp_LogoutOperations extends org.openrtk.idl.epp0503.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.epp0503.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.epp0503.epp_LogoutRsp getResponseData (); } // interface epp_LogoutOperations --- NEW FILE: epp_LogoutReq.java --- /* ** ** EPP RTK Java ** Copyright (C) 2001, Tucows... [truncated message content] |
From: Daniel M. <tub...@us...> - 2003-03-21 16:50:29
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/domain In directory sc8-pr-cvs1:/tmp/cvs-serv30928/domain Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0503/domain added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:50:14
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv31611/rtk Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:49:46
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain In directory sc8-pr-cvs1:/tmp/cvs-serv8568/domain Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/domain added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 16:49:36
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host In directory sc8-pr-cvs1:/tmp/cvs-serv8568/host Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0402/host added to the repository |