|
EPP RTK for Java v 0.5.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.portable.ObjectImpl | +--com.tucows.oxrs.epp.rtk.RTKBase
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.
Field Summary | |
protected static java.lang.String |
CRLF
Defined as "\r\n". |
static java.text.DateFormat |
DATE_FMT
DateFormat for "yyyy-MM-dd". |
static int |
DEBUG_LEVEL_ONE
Debug level for sending exceptions to System.err. |
static int |
DEBUG_LEVEL_THREE
Debug level for showing all debugging output, which include entry and exit of methods. |
static int |
DEBUG_LEVEL_TWO
Debug level for debugging points on interest throughout the RTK code, including display of XML messages to and from the EPP Server |
static int |
DEBUG_NONE
Debug level for no debug output. |
static java.lang.String |
RTK_VERSION
RTK Version number. |
static java.text.DateFormat |
UTC_FMT
DateFormat for "yyyy-MM-dd'T'hh:mm:ss.S'Z'". |
Constructor Summary | |
RTKBase()
|
Method Summary | |
java.lang.String[] |
_ids()
Method required by ObjectImpl and the CORBA Object interface. |
void |
debug(int level,
java.lang.String method_name,
java.lang.Exception xcp)
Prints an exception to System.err, including its stack trace. |
void |
debug(int level,
java.lang.String method_name,
java.lang.String message)
Prints a debug message to System.err. |
static int |
getDebugLevel()
Accessor method for the version |
static java.util.Properties |
getRTKProperties()
Returns the global properties for the RTK. |
static void |
setDebugLevel()
Accessor method for the debug level. |
static void |
setDebugLevel(int value)
Accessor method for the debug level. |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String RTK_VERSION
protected static final java.lang.String CRLF
public static final int DEBUG_NONE
public static final int DEBUG_LEVEL_ONE
public static final int DEBUG_LEVEL_TWO
public static final int DEBUG_LEVEL_THREE
public static final java.text.DateFormat UTC_FMT
java.util.Date date_object = UTC_FMT.parse(date_string);
public static final java.text.DateFormat DATE_FMT
String date_string = DATE_FMT.format(date_object);
Constructor Detail |
public RTKBase()
Method Detail |
public static void setDebugLevel(int value)
value
- The debug levelpublic static void setDebugLevel()
public static int getDebugLevel()
public void debug(int level, java.lang.String method_name, java.lang.String message)
level
- the debug level of this messagemethod_name
- the method name Stringmessage
- the message Stringpublic void debug(int level, java.lang.String method_name, java.lang.Exception xcp)
level
- the debug level of this messagemethod_name
- the method name Stringxcp
- the exception to be reportedpublic java.lang.String[] _ids()
_ids
in class org.omg.CORBA.portable.ObjectImpl
public static java.util.Properties getRTKProperties() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
- If rtk.props.file System property doesn't point to the rtk.properties filejava.io.IOException
- If there are problems reading the rtk.properties file
|
EPP RTK for Java v 0.5.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |