    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.

##

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

##

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

##

manager

      protected HttpManager manager

  The manager that created this request.

allowuserinteraction

      protected boolean allowuserinteraction

  Are we allowed to interact with the user ?

output

      protected InputStream output

  The request output stream, to PUT or POST data.

observer

      protected RequestObserver observer

  The observer for the request, if any.

##

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

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.

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.

getManager

      public HttpManager getManager()

  Get this request's manager.
  Returns:
    The instance of the manager taking care of this request.

setOutputStream

      public void setOutputStream(InputStream in)

  Set this request output stream.
  Parameters:
    in - The data to send to the server.

hasOutputStream

      public boolean hasOutputStream()

  Does this request has an associated input stream ?
  Returns:
    A boolean true of it has.

makeReply

      public Reply makeReply(int status)

  Create a Reply instance matching this request.

setObserver

      public void setObserver(RequestObserver observer)

  Set the observer for this request.
  Parameters:
    observer - The observer.

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