# com.bea.p13n.controls.events.standard
RuleEventControl Interface

public interface RuleEventControl
extends `Control`

This control dispatches a 'RuleEvent' to the Portal Behavior Tracking System. This control may not be used in a JWS because the request and session objects are not available.
The Request object may be obtained from a Page Flow by:

     HttpServletRequest request = this.getRequest();

See Portal documentation on "Events and Behavior Tracking" for information on how to configure the service before using this control.

All Superinterfaces
  `Control`, `Control`, `Serializable`

## Method Summary

`public void` | `dispatch`(`HttpServletRequest` request, `String` rulesetName, `String` ruleName) Dispatch a RuleEvent to the Event Service.

## Method Detail

### dispatch(HttpServletRequest, String, String) Method

    public void dispatch(HttpServletRequest request,
                         String rulesetName,
                         String ruleName)
         throws P13nControlException

Dispatch a RuleEvent to the Event Service.

#### Parameters

request
  the HttpServletRequest object, cannot be null

rulesetName
  The name of the rule set containing the rule

ruleName
  The name of the rule

#### Exceptions

``P13nControlException``
  if the EventService is misconfigured or if remote exceptions are encountered while accessing the event service.