|
|||||||||
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 | +--org.w3c.www.http.HttpReplyMessage | +--org.w3c.www.protocol.http.Reply
Field Summary | |
protected static HttpMimeType |
DEFAULT_TYPE
|
protected boolean |
definesInput
|
protected java.io.InputStream |
input
|
Fields inherited from class org.w3c.www.http.HttpReplyMessage |
H_ACCEPT_RANGES,
H_AGE,
H_AUTHENTICATION_INFO,
H_LOCATION,
H_PROXY_AUTHENTICATE,
H_PUBLIC,
H_RETRY_AFTER,
H_SERVER,
H_VARY,
H_WARNING,
H_WWW_AUTHENTICATE,
reason,
status |
Fields inherited from class org.w3c.www.http.HttpEntityMessage |
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 |
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 |
Method Summary | |
java.io.InputStream |
getInputStream()
Get this reply entity body. |
boolean |
hasInputStream()
Does this reply has an associated entity stream ? |
boolean |
keepsAlive()
|
protected void |
matchesRequest(Request request)
Notify this reply that is has been built to answer given request. |
void |
setContent(java.lang.String msg)
Set this reply content. |
void |
setStream(java.io.InputStream input)
Set this reply's input stream. |
protected void |
setStreamObserver(HttpStreamObserver observer)
Set an stream observer on the repkly entity stream. |
Methods inherited from class org.w3c.www.http.HttpEntityMessage |
addContentEncoding,
getAllow,
getContentBase,
getContentEncoding,
getContentLanguage,
getContentLength,
getContentLocation,
getContentMD5,
getContentRange,
getContentType,
getETag,
getExpires,
getLastModified,
hasContentRange,
setAllow,
setContentBase,
setContentEncoding,
setContentLanguage,
setContentLength,
setContentLocation,
setContentMD5,
setContentType,
setETag,
setExpires,
setLastModified |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static HttpMimeType DEFAULT_TYPE
protected java.io.InputStream input
protected boolean definesInput
Method Detail |
public boolean keepsAlive()
protected void setStreamObserver(HttpStreamObserver observer)
getInputStream
. It is needed
for HttpServer instances to be notified when the stream becomes
available for the next request.protected void matchesRequest(Request request)
request
- The request that is answered by this reply.public void setStream(java.io.InputStream input)
input
- The stream to read the reply's entity from.public java.io.InputStream getInputStream() throws java.io.IOException
public boolean hasInputStream() throws java.io.IOException
public void setContent(java.lang.String msg)
msg
- The reply content.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |