gnu.inet.http.event
Class RequestEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gnu.inet.http.event.RequestEvent
All Implemented Interfaces:
java.io.Serializable

public class RequestEvent
extends java.util.EventObject

A request event.

See Also:
Serialized Form

Field Summary
protected  Request request
          The request associated with this event.
static int REQUEST_CREATED
          The request created event type.
static int REQUEST_SENDING
          The request sending event type.
static int REQUEST_SENT
          The request sent event type.
protected  int type
          The type of this event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RequestEvent(java.lang.Object source, int type, Request request)
          Constructs a request event with the specified source, type, and request.
 
Method Summary
 Request getRequest()
          Returns the request associated with this event.
 int getType()
          Returns the type of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUEST_CREATED

public static final int REQUEST_CREATED
The request created event type.

See Also:
Constant Field Values

REQUEST_SENDING

public static final int REQUEST_SENDING
The request sending event type.

See Also:
Constant Field Values

REQUEST_SENT

public static final int REQUEST_SENT
The request sent event type.

See Also:
Constant Field Values

type

protected int type
The type of this event.


request

protected Request request
The request associated with this event.

Constructor Detail

RequestEvent

public RequestEvent(java.lang.Object source,
                    int type,
                    Request request)
Constructs a request event with the specified source, type, and request.

Method Detail

getType

public int getType()
Returns the type of this event.

See Also:
type

getRequest

public Request getRequest()
Returns the request associated with this event.