Newer Version Available
ApexPages Class
Use ApexPages to add and check for messages
associated with the current page, as well as to reference the current page.
Namespace
System
Usage
In addition, ApexPages is used as a namespace for the PageReference Class and the Message Class.