|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--prupp.Responder | +--prupp.WebReader
Reads in a page from the web and sends it to the client. Observe that we dont know if we can cache it before we have read the header.
Fields inherited from class prupp.Responder |
authuser,
clientis,
clientos,
extrainfo,
requestLine,
statusCode |
Constructor Summary | |
WebReader(java.lang.String reqLine,
java.io.DataInputStream input,
java.io.DataOutputStream output,
java.net.URL url,
java.lang.String request,
boolean dontFilter,
boolean cacheAllowed)
Fetches a page from the net and sends it to the client, caching the page if possible. |
Methods inherited from class prupp.Responder |
error,
forbidden,
getAuthuser,
getExtraInfo,
getRequestLine,
getStatusCode,
internalError,
requestAuthentication,
send,
setAuthuser,
setExtraInfo,
setRequestLine,
setStatusCode |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public WebReader(java.lang.String reqLine, java.io.DataInputStream input, java.io.DataOutputStream output, java.net.URL url, java.lang.String request, boolean dontFilter, boolean cacheAllowed) throws java.io.IOException
reqLine
- The request being handled.input
- The inputstream from the client.output
- The outputstream to the client.url
- the page we should get.request
- the full request with headers (and body if any).dontFilter
- if were allowed to filter or not.allowCache
- if were allowed to cache this page.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |