| |
|
| org.w3c.www.http.HttpRequestMessage org.w3c.www.protocol.http.Request
All known Subclasses: org.w3c.www.protocol.webdav.DAVRequest,
Request | public class Request extends HttpRequestMessage (Code) | | The client side idea of a request.
Requests are created only by the HttpManager, by cloning its template
request that defines the default (application wide) request settings.
|
allowuserinteraction | protected boolean allowuserinteraction(Code) | | Are we allowed to interact with the user ?
|
interrupted | protected boolean interrupted(Code) | | Has this request been interrupted ?
|
output | protected InputStream output(Code) | | The request output stream, to PUT or POST data.
|
pipeline | protected boolean pipeline(Code) | | Can we pipeline that request, if appropriate support is detected ?
|
server | protected HttpServer server(Code) | | The server currently running the request, if any.
|
endEmit | protected void endEmit(OutputStream out, int what) throws IOException(Code) | | End of header emiting, continue by sending optional output stream.
Parameters: out - The output stream to write to. |
getAllowUserInteraction | public boolean getAllowUserInteraction()(Code) | | Are we allowed to do some user interaction to run this request.
A boolean, true if user interaction is allowedfalse otherwise. |
getManager | public HttpManager getManager()(Code) | | Get this request's manager.
The instance of the manager taking care of this request. |
getObserver | public RequestObserver getObserver()(Code) | | Get the observer for this request.
An instance of RequestObserver, or null if undefined. |
getOutputStream | public InputStream getOutputStream()(Code) | | Get the input stream to read that request body.
Warning it is up to the caller to make sure to:
- Reset the content length if any bytes is read out of the stream
before the request is sent.
- Reset the entire stream is the filter acting upon it just want to
peek it (without consuming it).
An InputStream instance, or null if the requesthas no body. |
hasOutputStream | public boolean hasOutputStream()(Code) | | Does this request has an associated input stream ?
A boolean true of it has. |
interruptRequest | public synchronized void interruptRequest()(Code) | | Interrupt that request processing.
Do whatever it takes to interrupt that request processing, as soon
as possible.
|
isInterrupted | public boolean isInterrupted()(Code) | | Has this request been interrupted ?
A boolean. |
makeReply | public Reply makeReply(int status)(Code) | | Create a Reply instance matching this request.
|
setAllowUserInteraction | public void setAllowUserInteraction(boolean onoff)(Code) | | Decide wether we are allowed to interact wit hthe user.
Parameters: onoff - A boolean, true if interaction is allowed. |
setObserver | public void setObserver(RequestObserver observer)(Code) | | Set the observer for this request.
Parameters: observer - The observer. |
setOutputStream | public void setOutputStream(InputStream in)(Code) | | Set this request output stream.
As a side effect, setting the body of the request will disable
pipelining. If you know what you're doing, you can turn it on again by
using the setPipeline method.
Parameters: in - The data to send to the server. |
setPipeline | public void setPipeline(boolean onoff)(Code) | | Enable/disable pipelining for that request.
By default, this HTTP implementation tries it's best to use pipelining,
if you take manual control over it, you're responsible for damages.
Parameters: onoff - The pipelining toggle. |
setServer | protected synchronized void setServer(HttpServer server)(Code) | | Mark that request has being run by given server.
Parameters: server - The server in charge for that request. |
unsetServer | protected synchronized void unsetServer()(Code) | | Mark that request as no longer attached to a server object.
|
|
|
|