ittp.protocol.response.headers
Class ContentType

java.lang.Object
  extended byittp.protocol.response.Response.Headers
      extended byittp.protocol.response.headers.ContentType

public class ContentType
extends Response.Headers

This class create the header content-MD5.

Author:
Frederic Bidon and Mathieu Texier

Field Summary
 
Fields inherited from class ittp.protocol.response.Response.Headers
allowed, used
 
Constructor Summary
ContentType(Response parent)
          Constructor of the class
 
Method Summary
 void setAllowed(boolean allowed)
          Mutators for the boolean allowed.
 void setUsed(boolean used)
          Mutators for the boolean used.
 java.lang.String toString()
          Determine the type of the body according to the suffix found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentType

public ContentType(Response parent)
Constructor of the class

Method Detail

toString

public java.lang.String toString()
Determine the type of the body according to the suffix found. Convert to a string the headers content-type.

Specified by:
toString in class Response.Headers
Returns:
a string containing the content-type of the body.

setAllowed

public void setAllowed(boolean allowed)
Mutators for the boolean allowed.

Specified by:
setAllowed in class Response.Headers
Parameters:
allowed - boolean that determine if this headers is allowed.

setUsed

public void setUsed(boolean used)
Mutators for the boolean used.

Specified by:
setUsed in class Response.Headers
Parameters:
used - boolean that determine if this headers is used.