public function __construct()
{
// init body stream
$this->bodyStream = '';
// the request has not been dispatched initially
$this->dispatched = false;
// initialize the instances
$this->context = null;
$this->response = null;
$this->httpRequest = null;
$this->userPrincipal = null;
$this->requestHandler = null;
$this->sessionManager = null;
$this->authenticationManager = null;
// initialize the strings
$this->pathInfo = '';
$this->serverName = '';
$this->requestUri = '';
$this->requestUrl = '';
$this->queryString = '';
$this->servletPath = '';
$this->baseModifier = '';
$this->documentRoot = '';
$this->requestedSessionId = '';
$this->requestedSessionName = '';
// reset the server variables and the parts
$this->parts = array();
$this->handlers = array();
$this->serverVars = array();
$this->attributes = array();
}