Active Server Pages implements interfaces that enable your component to access the properties and methods of the ASP built-in objects. The IScriptingContext interface contains methods that return interfaces to the built-in objects. Your component can then use these object interfaces to access the methods and properties of the built-in objects.
The following table lists the built-in object interfaces:
Interface |
Use to |
Return an interface to one of the built-in objects: IApplicationObject, IRequest, IResponse, IServer, or ISessionObject. | |
Call the methods and properties of the Application object. | |
Call the methods and properties of the Request object. | |
Call the methods and properties of the Response object. | |
Call the methods and properties of the Server object. | |
Call the methods and properties of the Session object. | |
Retrieve the values and attributes of a cookie stored in the read-only Cookies collection. | |
Index the subcollections of the IRequest interface. It is also used to retrieve the individual values stored in the ClientCertificate collection. | |
Retrieve the values stored in a string list such as that in the QueryString, Form, or ServerVariables collections. | |
Set the values and attributes of a cookie stored in the write-only Cookies collection. |
The Java type libraries are not installed with Active Server Pages. If you are using Microsoft Visual J++™, you can generate classes from the the Microsoft Active Server Pages Object Library with the Java Type Library Wizard. This wizard can be reached from the Tools menu.
To use the built-in object interfaces in a Java component, you must import the ASP classes into your code as shown below.
import asp.*;
For more information about the built-in objects, see the Object Reference.