ittp.protocol
Class Protocol

java.lang.Object
  extended byittp.protocol.Protocol
Direct Known Subclasses:
Request, Response

public class Protocol
extends java.lang.Object

This class determine the version of the protocol ITTP used by the client. This class contains the different tools used by the server.

Author:
Frederic Bidon and Mathieu Texier

Field Summary
static java.text.DateFormat dateFormat
           
protected  java.lang.String ITTP_version
           
static double VERSION
           
 
Constructor Summary
Protocol()
          Creates a new instance of Protocole
 
Method Summary
 java.lang.String getITTP_version()
          Accessor for the string ITTP-version.
 void setITTP_version(java.lang.String ITTP_version)
          Mutators for the ITTP version of the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final double VERSION
See Also:
Constant Field Values

ITTP_version

protected java.lang.String ITTP_version

dateFormat

public static java.text.DateFormat dateFormat
Constructor Detail

Protocol

public Protocol()
Creates a new instance of Protocole

Method Detail

getITTP_version

public java.lang.String getITTP_version()
Accessor for the string ITTP-version.

Returns:
the ITTP version used by the client.

setITTP_version

public void setITTP_version(java.lang.String ITTP_version)
                     throws ittpException
Mutators for the ITTP version of the client.

Parameters:
ITTP_version - String containing the version of the protocol ITTP used by the client.
Throws:
ittpException - if the version of the client and the version of the server of the ITTP protocol are not the same