EPP 0.2.3

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$ $Date$
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 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
 
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

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.3

Copyright © 2001 NeuStar, Inc. All Rights Reserved.