|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.www.http.HttpMessage | +--org.w3c.www.http.HttpEntityMessage
Field Summary | |
static int |
H_ALLOW
|
static int |
H_CONTENT_BASE
|
static int |
H_CONTENT_ENCODING
|
static int |
H_CONTENT_LANGUAGE
|
static int |
H_CONTENT_LENGTH
|
static int |
H_CONTENT_LOCATION
|
static int |
H_CONTENT_MD5
|
static int |
H_CONTENT_RANGE
|
static int |
H_CONTENT_TYPE
|
static int |
H_ETAG
|
static int |
H_EXPIRES
|
static int |
H_LAST_MODIFIED
|
Fields inherited from class org.w3c.www.http.HttpMessage |
descriptors,
EMIT_ALL,
EMIT_BODY,
EMIT_FOOTERS,
EMIT_HEADERS,
emitdate,
factory,
H_CACHE_CONTROL,
H_CMAN_EXT,
H_CONNECTION,
H_COOKIE,
H_COPT_EXT,
H_DATE,
H_MAN_EXT,
H_OPT_EXT,
H_PRAGMA,
H_PROTOCOL,
H_PROTOCOL_INFO,
H_PROTOCOL_QUERY,
H_PROTOCOL_REQUEST,
H_PROXY_CONNECTION,
H_SET_COOKIE,
H_TRAILER,
H_TRANSFER_ENCODING,
H_UPGRADE,
H_VIA,
headers,
major,
MAX_HEADERS,
minor,
state,
values |
Constructor Summary | |
HttpEntityMessage()
|
|
HttpEntityMessage(MimeParser parser)
|
Method Summary | |
void |
addContentEncoding(java.lang.String name)
Add an encoding token to the given reply stream (ie the body). |
java.lang.String[] |
getAllow()
Get the message's entity allowed methods. |
java.lang.String |
getContentBase()
Get this message entity base. |
java.lang.String[] |
getContentEncoding()
Get this message entity encoding. |
java.lang.String[] |
getContentLanguage()
Get this message entity content language. |
int |
getContentLength()
Get the content length of the message. |
java.lang.String |
getContentLocation()
Get the attached entity's content location. |
java.lang.String |
getContentMD5()
Get the entity's content MD5 checksum. |
HttpContentRange |
getContentRange()
Get the range descriptor of the attached entity. |
MimeType |
getContentType()
Get the entity MIME type. |
HttpEntityTag |
getETag()
Get this entity tag. |
long |
getExpires()
Get this message's entity expires date. |
long |
getLastModified()
Get the message's associated entity last modified time. |
boolean |
hasContentRange()
Is this entity only a partial entity ? |
void |
setAllow(java.lang.String[] mth)
Set this message's entity allowed methods. |
void |
setContentBase(java.lang.String base)
Set this message entity content base. |
void |
setContentEncoding(java.lang.String[] encodings)
Set this message entity content encoding. |
void |
setContentLanguage(java.lang.String[] languages)
Set this message entity content language. |
void |
setContentLength(int length)
Set this message entity content-length. |
void |
setContentLocation(java.lang.String location)
Set the entity's content location. |
void |
setContentMD5(java.lang.String md5)
Set the entity's content MD5 checksum. |
void |
setContentType(MimeType type)
Set the entity MIME type. |
void |
setETag(HttpEntityTag tag)
Set this entity tag. |
void |
setExpires(long date)
Se the message's associated entity exxpires date. |
void |
setLastModified(long date)
Set the message's entity header last-modified time. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int H_ALLOW
public static int H_CONTENT_LENGTH
public static int H_CONTENT_BASE
public static int H_CONTENT_ENCODING
public static int H_CONTENT_LANGUAGE
public static int H_CONTENT_LOCATION
public static int H_CONTENT_MD5
public static int H_CONTENT_RANGE
public static int H_CONTENT_TYPE
public static int H_ETAG
public static int H_EXPIRES
public static int H_LAST_MODIFIED
Constructor Detail |
public HttpEntityMessage(MimeParser parser)
public HttpEntityMessage()
Method Detail |
public java.lang.String[] getAllow()
public void setAllow(java.lang.String[] mth)
mth
- A list of allowed methods, encoded as a String array, or
null to reset the value.public java.lang.String getContentBase()
public void setContentBase(java.lang.String base)
base
- The base for the entity, encoded as a String, or
null to reset the value.public java.lang.String[] getContentEncoding()
public void setContentEncoding(java.lang.String[] encodings)
encodings
- A list of encoding tokens, encoded as a String array
or null to reset the value.public void addContentEncoding(java.lang.String name)
name
- The name of the encoding to add.public java.lang.String[] getContentLanguage()
public void setContentLanguage(java.lang.String[] languages)
languages
- The language tokens for this entity, encoded as
a String array, or null to reset the value.public int getContentLength()
public void setContentLength(int length)
length
- The new content length for this message, or
-1 to reset the value.public java.lang.String getContentLocation()
public void setContentLocation(java.lang.String location)
location
- The String encoding the content location for the
attached entity, or null to reset the value.public java.lang.String getContentMD5()
public void setContentMD5(java.lang.String md5)
md5
- The new base64 encoded checksum for the entity body, or
null to reset the value.public HttpContentRange getContentRange()
public boolean hasContentRange()
Content-Range
header
was present.public MimeType getContentType()
public void setContentType(MimeType type)
type
- The entity MIME type, or null to unset
the entity's content type.public HttpEntityTag getETag()
public void setETag(HttpEntityTag tag)
tag
- The new entity tag, or null to reset the
value.public long getExpires()
public void setExpires(long date)
date
- The date as the number of milliseconds since Java epoch,
or -1 to reset the value.public long getLastModified()
public void setLastModified(long date)
date
- The date of last modification, as the number of milliseconds
since Java epoch, or -1 to reset the value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |