Class w3c.www.protocol.http.Request
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.protocol.http.Request

java.lang.Object
   |
   +----w3c.www.http.HttpMessage
           |
           +----w3c.www.http.HttpEntityMessage
                   |
                   +----w3c.www.http.HttpRequestMessage
                           |
                           +----w3c.www.protocol.http.Request

public class Request
extends HttpRequestMessage
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.

Variable Index

 o allowuserinteraction
Are we allowed to interact with the user ?
 o manager
The manager that created this request.
 o observer
The observer for the request, if any.
 o output
The request output stream, to PUT or POST data.

Method Index

 o endEmit(OutputStream, int)
End of header emiting, continue by sending optional output stream.
 o getAllowUserInteraction()
Are we allowed to do some user interaction to run this request.
 o getManager()
Get this request's manager.
 o getObserver()
Get the observer for this request.
 o hasOutputStream()
Does this request has an associated input stream ?
 o makeReply(int)
Create a Reply instance matching this request.
 o setAllowUserInteraction(boolean)
Decide wether we are allowed to interact wit hthe user.
 o setObserver(RequestObserver)
Set the observer for this request.
 o setOutputStream(InputStream)
Set this request output stream.

Variables

 o manager
  protected HttpManager manager
The manager that created this request.
 o allowuserinteraction
  protected boolean allowuserinteraction
Are we allowed to interact with the user ?
 o output
  protected InputStream output
The request output stream, to PUT or POST data.
 o observer
  protected RequestObserver observer
The observer for the request, if any.

Methods

 o endEmit
  protected void endEmit(OutputStream out,
                         int what) throws IOException
End of header emiting, continue by sending optional output stream.
Parameters:
out - The output stream to write to.
Overrides:
endEmit in class HttpMessage
 o getAllowUserInteraction
  public boolean getAllowUserInteraction()
Are we allowed to do some user interaction to run this request.
Returns:
A boolean, true if user interaction is allowed false otherwise.
 o setAllowUserInteraction
  public void setAllowUserInteraction(boolean onoff)
Decide wether we are allowed to interact wit hthe user.
Parameters:
onoff - A boolean, true if interaction is allowed.
 o getManager
  public HttpManager getManager()
Get this request's manager.
Returns:
The instance of the manager taking care of this request.
 o setOutputStream
  public void setOutputStream(InputStream in)
Set this request output stream.
Parameters:
in - The data to send to the server.
 o hasOutputStream
  public boolean hasOutputStream()
Does this request has an associated input stream ?
Returns:
A boolean true of it has.
 o makeReply
  public Reply makeReply(int status)
Create a Reply instance matching this request.
 o setObserver
  public void setObserver(RequestObserver observer)
Set the observer for this request.
Parameters:
observer - The observer.
 o getObserver
  public RequestObserver getObserver()
Get the observer for this request.
Returns:
An instance of RequestObserver, or null if undefined.

All Packages  Class Hierarchy  This Package  Previous  Next  Index