gnu.inet.http.event

Class RequestEvent


public class RequestEvent
extends EventObject

A request event.

Field Summary

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 Request
request
The request associated with this event.
protected int
type
The type of this event.

Constructor Summary

RequestEvent(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.

Field Details

REQUEST_CREATED

public static final int REQUEST_CREATED
The request created event type.
Field Value:
0

REQUEST_SENDING

public static final int REQUEST_SENDING
The request sending event type.
Field Value:
1

REQUEST_SENT

public static final int REQUEST_SENT
The request sent event type.
Field Value:
2

request

protected Request request
The request associated with this event.

type

protected int type
The type of this event.

Constructor Details

RequestEvent

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

Method Details

getRequest

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

getType

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