/***********************************************************
Copyright (C) 2004 VeriSign, 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

http://www.verisign.com/nds/naming/namestore/techdocs.html
***********************************************************/
package com.verisign.epp.codec.gen;

/**
 * Represents an EPP object that can be sent or received by an EPP Client or
 * EPP Server.     There are three concrete {@code EPPMessage} classes,
 * which include:     <br>
 * 
 * <ul>
 * <li>
 * {@code EPPCommand}     - EPP Command encoded by client and decoded by
 * server
 * </li>
 * <li>
 * {@code EPPResponse}    - EPP Response encoded by server and decoded by
 * client
 * </li>
 * <li>
 * {@code EPPGreeting}     - EPP Greeting encoded by server and decoded by
 * client
 * </li>
 * </ul>
 * 
 * <br><br>
 * An {@code EPPMessage} can be encoded and decoded by
 * {@code EPPCodec} using the {@code EPPMessage.encode(Document)}
 * and {@code EPPMessage.decode(Document)} methods.      An
 * {@code EPPMessage} is also {@code Serializable} and is associated
 * with     an EPP XML namespace.  For example, the EPP XML namespace
 * associated with the general     {@code EPPMessages} is
 * "urn:iana:xmlns:epp".      <br><br>
 *
 * @see com.verisign.epp.codec.gen.EPPCodec
 * @see com.verisign.epp.codec.gen.EPPGreeting
 * @see com.verisign.epp.codec.gen.EPPCommand
 * @see com.verisign.epp.codec.gen.EPPResponse
 */
public interface EPPMessage extends EPPCodecComponent {
  /**
   * Gets the EPP Namespace URI associated with the {@code EPPMessage}.
   * This will be either one of the following:     <br>
   * 
   * <ul>
   * <li>
   * EPP namespace - {@code EPPCodec.NS}
   * </li>
   * <li>
   * EPP Command Mapping namespace - {@code MapFactory.NS}
   * </li>
   * </ul>
   * 
   * <br><br>
   *
   * @return Namespace URI associated with the EPPMessage.
   */
  String getNamespace();
}
