EPP 0.2.4

com.neulevel.epp.transport
Class EppMessageUtil

java.lang.Object
  |
  +--com.neulevel.epp.transport.EppMessageUtil

public class EppMessageUtil
extends java.lang.Object

This EppSessionUtil class contains some utility methods for handling message exchanges between an EPP Server and an EPP Client.

Version:
$Revision: 1.2 $ $Date: 2001/11/29 20:47:32 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppMessageUtil()
           
 
Method Summary
static java.lang.String getEppPayload(java.io.InputStream in)
          Gets the EPP message payload from an input stream
static int getTimeout()
          Gets the timeout values in seconds.
static java.lang.String send(java.net.Socket socket, java.lang.String str)
          Sends a string over a socket and reads a string back from the socket
static void setTimeout(int seconds)
          Sets the timeout values in seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EppMessageUtil

public EppMessageUtil()
Method Detail

setTimeout

public static void setTimeout(int seconds)
Sets the timeout values in seconds. The default value is 0, which means there will be no timeout.

getTimeout

public static int getTimeout()
Gets the timeout values in seconds. The default value is 0, which means there will be no timeout.

send

public static java.lang.String send(java.net.Socket socket,
                                    java.lang.String str)
                             throws java.io.IOException
Sends a string over a socket and reads a string back from the socket
Parameters:
socket - the socket used for sending the string
str - the string to be sent over the socket
Returns:
a string containing the EPP message payload, or null if there is any error associated with the connection to the server

getEppPayload

public static java.lang.String getEppPayload(java.io.InputStream in)
                                      throws java.io.IOException
Gets the EPP message payload from an input stream
Parameters:
in - the InputStream object from which the EPP message payload is retrieved
Returns:
a string containing the EPP message payload, or null if there is any error associated with the connection to the server

EPP 0.2.4

Copyright © 2001 NeuStar, Inc. All Rights Reserved.