PPService.getCurrentRequest

Syntax

getCurrentRequest();

Description

The getCurrentRequest method returns the current service request.

Comments

The method returns Null if there are no current requests.

The method should be called in the PPService.StartRequest or PPService.EndRequest events.

Example

Executing the example requires some metabase connection, for example, by means of the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component).

// Get repository service
metabase = eaxAnalyzer.getMetabase();
// Get current request
metabase.EndRequest.add(function(){
  console.log(metabase.getCurrentRequest());
});

After executing the example the console display the current request on addressing the repository.

See also:

PPService