org.apache.commons.latka.event
Class LatkaEventPublisher

java.lang.Object
  |
  +--org.apache.commons.latka.event.LatkaEventPublisher
All Implemented Interfaces:
LatkaEventListener

public class LatkaEventPublisher
extends java.lang.Object
implements LatkaEventListener


Constructor Summary
LatkaEventPublisher()
           
 
Method Summary
 void addListener(LatkaEventListener listener)
           
 void broadcastEvent(LatkaEvent event)
           
 void requestError(RequestEvent event)
          Invoked if a request error occurs.
 void requestFailed(RequestEvent event)
          Invoked if the request failed.
 void requestSkipped(RequestEvent event)
          A skipped request.
 void requestSucceeded(RequestEvent event)
          Invoked if the request succeeds
 void suiteCompleted(SuiteEvent event)
          Invoke when all requests completed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatkaEventPublisher

public LatkaEventPublisher()
Method Detail

addListener

public void addListener(LatkaEventListener listener)

broadcastEvent

public void broadcastEvent(LatkaEvent event)

requestError

public void requestError(RequestEvent event)
Description copied from interface: LatkaEventListener
Invoked if a request error occurs. A request "error" designates an inability to communicate with the target HTTP server (typically an IOException or a related exception).
Specified by:
requestError in interface LatkaEventListener
Following copied from interface: org.apache.commons.latka.event.LatkaEventListener
Parameters:
event - a request "error" event. This request has no valid response.

requestFailed

public void requestFailed(RequestEvent event)
Description copied from interface: LatkaEventListener
Invoked if the request failed. A request "failure" is defined as a request that successfully received a reponse from the server, but that response failed validation (threw a ValidationException).
Specified by:
requestFailed in interface LatkaEventListener
Following copied from interface: org.apache.commons.latka.event.LatkaEventListener
Parameters:
event - a "failed" request event. This request should still have a response, although the response was not expected by the test.

requestSkipped

public void requestSkipped(RequestEvent event)
Description copied from interface: LatkaEventListener
A skipped request. Most Latka suites will skip any further requests inside a session upon the first failed request.
Specified by:
requestSkipped in interface LatkaEventListener
Following copied from interface: org.apache.commons.latka.event.LatkaEventListener
Parameters:
event - a "skipped" request. Skipped requests have no valid response.

requestSucceeded

public void requestSucceeded(RequestEvent event)
Description copied from interface: LatkaEventListener
Invoked if the request succeeds
Specified by:
requestSucceeded in interface LatkaEventListener
Following copied from interface: org.apache.commons.latka.event.LatkaEventListener
Parameters:
event - a successful request event

suiteCompleted

public void suiteCompleted(SuiteEvent event)
Description copied from interface: LatkaEventListener
Invoke when all requests completed.
Specified by:
suiteCompleted in interface LatkaEventListener
Following copied from interface: org.apache.commons.latka.event.LatkaEventListener
Parameters:
event - suite event


Copyright © 2001 Apache Software Foundation. Documenation generated September 13 2001.