TROIKA.ASP - the MVC framework

Environment.js

Summary

Contains Environment class.

This is part of Troika.ASP Framework - web development MVC framework for ASP 3.0. Please visit www.troika-asp.com for more details.



Version: $Revision: 1.3 $

Author: Pavel Chuchev pav@troika-asp.com


Class Summary
Environment This is Environment class - a central point of access to platform specific APIs.

/**
* @fileoverview Contains <tt>Environment</tt> class.
*
* <p>
* This is part of Troika.ASP Framework - web development MVC framework for ASP 3.0.
* Please visit {@link http://www.troika-asp.com www.troika-asp.com} for more details.
* </p>
*
* @author Pavel Chuchev pav@troika-asp.com
* @version $Revision: 1.3 $
*/
/**
* Constructs a new instance of Environment class.
*
* @class This is <tt>Environment</tt> class - a central point of access to platform specific APIs.
*
* @constructor
*/
function Environment() {

    this.init();
}

/**
* Initializes <tt>Environment</tt>.
*
* @return <tt>Environment</tt> object instance itself.
* @type Environment
*/
Environment.prototype.init = function () {

    this.request =  new RequestAdapter();
    this.response =  new ResponseAdapter();
    this.session =  new SessionAdapter();
    this.server =  new ServerAdapter();
    this.application =  new ApplicationAdapter();

    return this;
};
/**
* Resets this instance, refreshing Request and Session data.
*/
Environment.prototype.reset = function () {

    this.request =  new RequestAdapter();
    this.session =  new SessionAdapter();
};

TROIKA.ASP - the MVC framework

www.troika-asp.com
Documentation generated on Sun Jun 15 17:59:32 2008