|
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 | +--com.tucows.oxrs.epp.rtk.transport.EPPTransportBase
Base abstract class for the Transport classes. Defines common methods and data members used by all or most Transport classes.
Field Summary | |
static int |
DEFAULT_SOCKET_TIMEOUT
The default timeout in waiting for server responses. |
protected java.lang.String |
epp_host_name_
The Host name of the EPP server. |
protected int |
epp_host_port_
The Host port of the EPP server. |
protected int |
epp_timeout_
The timeout to apply to persistent connections to the server. |
Fields inherited from class com.tucows.oxrs.epp.rtk.RTKBase |
CRLF, DATE_FMT, DEBUG_LEVEL_ONE, DEBUG_LEVEL_THREE, DEBUG_LEVEL_TWO, DEBUG_NONE, RTK_VERSION, UTC_FMT |
Constructor Summary | |
EPPTransportBase()
Default constructor -- |
|
EPPTransportBase(java.lang.String epp_host_name,
int epp_host_port)
Constructor with EPP Hostname and EPP Host port. |
|
EPPTransportBase(java.lang.String epp_host_name,
int epp_host_port,
int epp_timeout)
Constructor with EPP Hostname, EPP Host port, and timeout. |
Method Summary | |
abstract void |
connect()
Establishes the connection to the Server Abstract method to be implemented by subclasses. |
abstract void |
disconnect()
Closes the connection to the Server Abstract method to be implemented by subclasses. |
java.lang.String |
getEPPHostName()
Accessor method for the EPP Hostname |
int |
getEPPHostPort()
Accessor method for the EPP Host port |
int |
getEPPTimeout()
Accessor method for the EPP server timeout, in milliseconds |
void |
initialize(java.lang.String epp_host_name,
int epp_host_port,
int epp_timeout)
Initializes the transport object with host name, host port and timeout. |
abstract java.lang.String |
readFromServer()
Reads from the Server Abstract method to be implemented by subclasses. |
void |
setEPPHostName(java.lang.String value)
Accessor method for the EPP Hostname |
void |
setEPPHostPort(int value)
Accessor method for the EPP Host port |
void |
setEPPTimeout(int value)
Accessor method for the EPP server timeout, in milliseconds |
abstract void |
writeToServer(java.lang.String string_to_server)
Writes to the Server Abstract method to be implemented by subclasses. |
Methods inherited from class com.tucows.oxrs.epp.rtk.RTKBase |
_ids, debug, debug, getDebugLevel, getRTKProperties, setDebugLevel, setDebugLevel |
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 |
protected java.lang.String epp_host_name_
protected int epp_host_port_
protected int epp_timeout_
public static final int DEFAULT_SOCKET_TIMEOUT
Constructor Detail |
public EPPTransportBase()
public EPPTransportBase(java.lang.String epp_host_name, int epp_host_port, int epp_timeout)
epp_host_name
- The EPP Hostname (eg. "host.domain.tld")epp_host_port
- The EPP portepp_timeout
- The timeout in milliseconds to apply to the connection.public EPPTransportBase(java.lang.String epp_host_name, int epp_host_port)
epp_host_name
- The EPP Hostname (eg. "host.domain.tld")epp_host_port
- The EPP portMethod Detail |
public void initialize(java.lang.String epp_host_name, int epp_host_port, int epp_timeout)
epp_host_name
- The EPP Hostname (eg. "host.domain.tld")epp_host_port
- The EPP portepp_timeout
- The timeout value in milliseconds.public void setEPPHostName(java.lang.String value)
value
- The hostname string (eg. "host.domain.tld" or "100.101.200.201")public java.lang.String getEPPHostName()
public void setEPPHostPort(int value)
value
- The int port valuepublic int getEPPHostPort()
public void setEPPTimeout(int value)
value
- The int timeout value, in millisecondspublic int getEPPTimeout()
public abstract void connect() throws java.net.SocketException, java.io.IOException, java.net.UnknownHostException
java.net.SocketException
- java.io.IOException
- java.net.UnknownHostException
- public abstract void disconnect() throws java.io.IOException
java.io.IOException
- public abstract java.lang.String readFromServer() throws epp_Exception
epp_Exception
- public abstract void writeToServer(java.lang.String string_to_server) throws epp_Exception
string_to_server
- The EPP message to the server.epp_Exception
-
|
EPP RTK for Java v 0.5.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |