ittp.protocol.request
Class Get

java.lang.Object
  extended byittp.protocol.Protocol
      extended byittp.protocol.request.Request
          extended byittp.protocol.request.Get

public class Get
extends Request

This class build the response to client when he send a Get request.

Author:
Frederic Bidon and Mathieu Texier

Nested Class Summary
 
Nested classes inherited from class ittp.protocol.request.Request
Request.Headers
 
Field Summary
 
Fields inherited from class ittp.protocol.request.Request
CONNECTION, DATE, GET, HEAD, HOST, Id, methodName, MODIFIED_SINCE, OPTIONS, RANGE, TRACE
 
Fields inherited from class ittp.protocol.Protocol
dateFormat, ITTP_version, VERSION
 
Constructor Summary
Get()
          Creates a new instance of Get
 
Method Summary
 void process(Response response)
          This method determine the different headers allowed and mandatory according to the permissions for a Get request.
 
Methods inherited from class ittp.protocol.request.Request
getFile, getHeaders, getIP, setHost, setIP, setPath, setPort, setSheme, toIP, toString
 
Methods inherited from class ittp.protocol.Protocol
getITTP_version, setITTP_version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Get

public Get()
Creates a new instance of Get

Method Detail

process

public void process(Response response)
This method determine the different headers allowed and mandatory according to the permissions for a Get request. After, this headers will be send to the client.

Specified by:
process in class Request
Parameters:
response - Response send to the client.