org.apache.commons.latka.event
Class BaseRequestEvent

java.lang.Object
  extended by org.apache.commons.latka.event.BaseRequestEvent
All Implemented Interfaces:
LatkaEvent, RequestEvent
Direct Known Subclasses:
RequestErrorEvent, RequestFailedEvent, RequestSkippedEvent, RequestSucceededEvent

public class BaseRequestEvent
extends Object
implements RequestEvent

The base class for request events fired by latka. It provides the request, response and session for use by clients

Version:
$Id: BaseRequestEvent.java 155424 2005-02-26 13:09:29Z dirkv $
Author:
Morgan Delagrange

Constructor Summary
BaseRequestEvent(Request request, Response response)
          Store the request, response and session for later retrieval
 
Method Summary
 Request getRequest()
          the request the event is about
 Response getResponse()
          the response associated with the event's request
 Session getSession()
          the session the event took place within
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseRequestEvent

public BaseRequestEvent(Request request,
                        Response response)
Store the request, response and session for later retrieval

Parameters:
request - the request the event is about
response - the response from the request
Method Detail

getRequest

public Request getRequest()
Description copied from interface: RequestEvent
the request the event is about

Specified by:
getRequest in interface RequestEvent
Returns:
the request the event relates to

getResponse

public Response getResponse()
Description copied from interface: RequestEvent
the response associated with the event's request

Specified by:
getResponse in interface RequestEvent
Returns:
the response the event relates to

getSession

public Session getSession()
Description copied from interface: RequestEvent
the session the event took place within

Specified by:
getSession in interface RequestEvent
Returns:
the session the event relates to


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.