Documentation Archive Developer
Search
[an error occurred while processing this directive] PATH  Documentation > WebObjects 4.5 > WebObjects Reference

Table of Contents

WOEvent


Inherits from: EOEvent (EOControl framework)
Conforms to: NSObject
(NSObject)
Declared in: WebObjects/WOEvent.h




Class Description


WOEvent is a subclass of EOEvent (defined in the EOControl framework) that serves as the parent class for objects that gather information-such as duration-about various operations in WebObjects. You can see the results of this information gathering in your web browser by accessing a special "event display" page, and you can configure how the results are displayed by accessing a special "event setup" page. Both of these are accessed through special direct actions (WOEventDisplay and WOEventSetup, respectively). For example, if you've been running the ComponentElementsTour, the following URL will access the event display page:

http://localhost/cgi-bin/WebObjects/ComponentElementsTour.woa/wa/WOEventDisplay

WOEvent adds knowledge of pages and components to the EOEvent class. Events that are subclasses of WOEvent can be grouped or aggregated by page or by component. Although you can subclass WOEvent, in most cases the following private subclasses will be adequate for analyzing WebObjects applications:


Event Group Logged Events
WOApplication Event pageWithName:inContext:
WOAssociation Event valueForKeyPath, takeValueForKeyPath
WOComponent Event takeValuesFromRequest:inContext:, invokeActionForRequest:inContext:, appendToResponse:inContext:, awake, sleep, init
WOComponentReference Event pushComponentInContext:




Instance Methods



dealloc

- (void)dealloc

Subclassers should override this method if the subclass needs to do additional cleaning up when the WOEvent subclass is freed.



setComponentName:

- (void)setComponentName:(NSString *)componentName

Sets the event's component name to componentName. Event data can be grouped or aggregated according to the component name.



setPageName:

- (void)setPageName:(NSString *)pageName

Sets the event's page name to pageName. Event data can be grouped or aggregated according to the page name.



signatureOfType:

- (id)signatureOfType:(EOEventSignatureType)type

Returns a "signature" for the receiver of the specified type. These signatures are used to group or aggregate data on the WOEventDisplay page. WOEvent is able to generate signatures for the following types:


Type Signature
EOBasicEventSignature A combination of the event's type and the component name
WOComponentSignature The component name
WOPageSignature The page name
WOAssociationSignature varies based upon the context

Override this method if you are creating a custom subclass of WOEvent and need to provide signatures for additional event types.




Table of Contents