    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.www.http.HttpEntityMessage

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

public class HttpEntityMessage
extends HttpMessage

##

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

##

HttpEntityMessage()
HttpEntityMessage(MimeParser)

##

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

##

H_ALLOW

     public static int H_ALLOW

H_CONTENT_LENGTH

     public static int H_CONTENT_LENGTH

H_CONTENT_BASE

     public static int H_CONTENT_BASE

H_CONTENT_ENCODING

     public static int H_CONTENT_ENCODING

H_CONTENT_LANGUAGE

     public static int H_CONTENT_LANGUAGE

H_CONTENT_LOCATION

     public static int H_CONTENT_LOCATION

H_CONTENT_MD5

     public static int H_CONTENT_MD5

H_CONTENT_RANGE

     public static int H_CONTENT_RANGE

H_CONTENT_TYPE

     public static int H_CONTENT_TYPE

H_ETAG

     public static int H_ETAG

H_EXPIRES

     public static int H_EXPIRES

H_LAST_MODIFIED

     public static int H_LAST_MODIFIED

##

HttpEntityMessage

     public HttpEntityMessage(MimeParser parser)

HttpEntityMessage

     public HttpEntityMessage()

##

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.

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.

getContentBase

     public String getContentBase()

  Get this message entity base.

  Returns:
    A String encoding the content base, or null if undefined.

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.

getContentEncoding

     public String[] getContentEncoding()

  Get this message entity encoding.

  Returns:
    A list of encoding tokens, encoded as a String array, or null if undefined.

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.

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.

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.

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.

getContentLength

     public int getContentLength()

  Get the content length of the message.

  Returns:
    The content length for the message entity, or -1 if undefined.

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.

getContentLocation

     public String getContentLocation()

  Get the attached entity's content location.

  Returns:
    A String encoded value of the content location, or null if undefined.

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.

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.

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.

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.

hasContentRange

     public boolean hasContentRange()

  Is this entity only a partial entity ?

  Returns:
    A boolean, indicating if a `Content-Range` header was present.

getContentType

     public MimeType getContentType()

  Get the entity MIME type.

  Returns:
    An HttpMimeType object describing the entity's type, or null if udefined.

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.

getETag

     public HttpEntityTag getETag()

  Get this entity tag.

  Returns:
    An HttpEntityTag instance describing this entity tag.

setETag

     public void setETag(HttpEntityTag tag)

  Set this entity tag.

  Parameters:
    tag - The new entity tag, or null to reset the value.

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.

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.

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.

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