setAttribute abstract method

void setAttribute(
  1. String name,
  2. Object value
)

Stores a named attribute in the current context.

Attributes are stored for the lifetime of the server or until explicitly removed.

Example:

context.setAttribute('dbConnection', connection);

Implementation

void setAttribute(String name, Object value);