All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.http.HttpEntityMessage

java.lang.Object
   |
   +----w3c.www.http.HttpMessage
           |
           +----w3c.www.http.HttpEntityMessage

public class HttpEntityMessage
extends HttpMessage

Variable Index

 o H_ALLOW
 o H_CONTENT_BASE
 o H_CONTENT_ENCODING
 o H_CONTENT_LANGUAGE
 o H_CONTENT_LENGTH
 o H_CONTENT_LOCATION
 o H_CONTENT_MD5
 o H_CONTENT_RANGE
 o H_CONTENT_TYPE
 o H_ETAG
 o H_EXPIRES
 o H_LAST_MODIFIED

Constructor Index

 o HttpEntityMessage()
 o HttpEntityMessage(MimeParser)

Method Index

 o addContentEncoding(String)
Add an encoding token to the given reply stream (ie the body).
 o getAllow()
Get the message's entity allowed methods.
 o getContentBase()
Get this message entity base.
 o getContentEncoding()
Get this message entity encoding.
 o getContentLanguage()
Get this message entity content language.
 o getContentLength()
Get the content length of the message.
 o getContentLocation()
Get the attached entity's content location.
 o getContentMD5()
Get the entity's content MD5 checksum.
 o getContentRange()
Get the range descriptor of the attached entity.
 o getContentType()
Get the entity MIME type.
 o getETag()
Get this entity tag.
 o getExpires()
Get this message's entity expires date.
 o getLastModified()
Get the message's associated entity last modified time.
 o hasContentRange()
Is this entity only a partial entity ?
 o setAllow(String[])
Set this message's entity allowed methods.
 o setContentBase(String)
Set this message entity content base.
 o setContentEncoding(String[])
Set this message entity content encoding.
 o setContentLanguage(String[])
Set this message entity content language.
 o setContentLength(int)
Set this message entity content-length.
 o setContentLocation(String)
Set the entity's content location.
 o setContentMD5(String)
Set the entity's content MD5 checksum.
 o setContentType(MimeType)
Set the entity MIME type.
 o setETag(HttpEntityTag)
Set this entity tag.
 o setExpires(long)
Se the message's associated entity exxpires date.
 o setLastModified(long)
Set the message's entity header last-modified time.

Variables

 o H_ALLOW
 public static int H_ALLOW
 o H_CONTENT_LENGTH
 public static int H_CONTENT_LENGTH
 o H_CONTENT_BASE
 public static int H_CONTENT_BASE
 o H_CONTENT_ENCODING
 public static int H_CONTENT_ENCODING
 o H_CONTENT_LANGUAGE
 public static int H_CONTENT_LANGUAGE
 o H_CONTENT_LOCATION
 public static int H_CONTENT_LOCATION
 o H_CONTENT_MD5
 public static int H_CONTENT_MD5
 o H_CONTENT_RANGE
 public static int H_CONTENT_RANGE
 o H_CONTENT_TYPE
 public static int H_CONTENT_TYPE
 o H_ETAG
 public static int H_ETAG
 o H_EXPIRES
 public static int H_EXPIRES
 o H_LAST_MODIFIED
 public static int H_LAST_MODIFIED

Constructors

 o HttpEntityMessage
 public HttpEntityMessage(MimeParser parser)
 o HttpEntityMessage
 public HttpEntityMessage()

Methods

 o getAllow
 public String[] getAllow()
Get the message's entity allowed methods.

Returns:
The list of allowed methods, encoded as a String array, or null if undefined.
 o setAllow
 public void setAllow(String mth[])
Set this message's entity allowed methods.

Parameters:
mth - A list of allowed methods, encoded as a String array, or null to reset the value.
 o getContentBase
 public String getContentBase()
Get this message entity base.

Returns:
A String encoding the content base, or null if undefined.
 o setContentBase
 public void setContentBase(String base)
Set this message entity content base.

Parameters:
base - The base for the entity, encoded as a String, or null to reset the value.
 o getContentEncoding
 public String[] getContentEncoding()
Get this message entity encoding.

Returns:
A list of encoding tokens, encoded as a String array, or null if undefined.
 o setContentEncoding
 public void setContentEncoding(String encodings[])
Set this message entity content encoding.

Parameters:
encodings - A list of encoding tokens, encoded as a String array or null to reset the value.
 o addContentEncoding
 public void addContentEncoding(String name)
Add an encoding token to the given reply stream (ie the body).

Parameters:
name - The name of the encoding to add.
 o getContentLanguage
 public String[] getContentLanguage()
Get this message entity content language.

Returns:
A list of languages token, encoded as a String arry, or null if undefined.
 o setContentLanguage
 public void setContentLanguage(String languages[])
Set this message entity content language.

Parameters:
languages - The language tokens for this entity, encoded as a String array, or null to reset the value.
 o getContentLength
 public int getContentLength()
Get the content length of the message.

Returns:
The content length for the message entity, or -1 if undefined.
 o setContentLength
 public void setContentLength(int length)
Set this message entity content-length.

Parameters:
length - The new content length for this message, or -1 to reset the value.
 o getContentLocation
 public String getContentLocation()
Get the attached entity's content location.

Returns:
A String encoded value of the content location, or null if undefined.
 o setContentLocation
 public void setContentLocation(String location)
Set the entity's content location.

Parameters:
location - The String encoding the content location for the attached entity, or null to reset the value.
 o getContentMD5
 public String getContentMD5()
Get the entity's content MD5 checksum.

Returns:
A String giving the base64 encoded MD% checksun on the entity body, or null if undefined.
 o setContentMD5
 public void setContentMD5(String md5)
Set the entity's content MD5 checksum.

Parameters:
md5 - The new base64 encoded checksum for the entity body, or null to reset the value.
 o getContentRange
 public HttpContentRange getContentRange()
Get the range descriptor of the attached entity.

Returns:
An HttpRange instance, describing the part of the full entity body being transmited, or null if undefined.
 o hasContentRange
 public boolean hasContentRange()
Is this entity only a partial entity ?

Returns:
A boolean, indicating if a Content-Range header was present.
 o getContentType
 public MimeType getContentType()
Get the entity MIME type.

Returns:
An HttpMimeType object describing the entity's type, or null if udefined.
 o setContentType
 public void setContentType(MimeType type)
Set the entity MIME type.

Parameters:
type - The entity MIME type, or null to unset the entity's content type.
 o getETag
 public HttpEntityTag getETag()
Get this entity tag.

Returns:
An HttpEntityTag instance describing this entity tag.
 o setETag
 public void setETag(HttpEntityTag tag)
Set this entity tag.

Parameters:
tag - The new entity tag, or null to reset the value.
 o getExpires
 public long getExpires()
Get this message's entity expires date.

Returns:
A long giving the date as the number of milliseconds since the Java epoch, or -1 if undefined.
 o setExpires
 public void setExpires(long date)
Se the message's associated entity exxpires date.

Parameters:
date - The date as the number of milliseconds since Java epoch, or -1 to reset the value.
 o getLastModified
 public long getLastModified()
Get the message's associated entity last modified time.

Returns:
A long giving the date as the number of milliseconds since Java epoch, or -1 if undefined.
 o setLastModified
 public void setLastModified(long date)
Set the message's entity header last-modified time.

Parameters:
date - The date of last modification, as the number of milliseconds since Java epoch, or -1 to reset the value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index