Built-in Object Interfaces for Java

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

IScriptingContext

Return an interface to one of the built-in objects: IApplicationObject, IRequest, IResponse, IServer, or ISessionObject.

IApplicationObject

Call the methods and properties of the Application object.

IRequest

Call the methods and properties of the Request object.

IResponse

Call the methods and properties of the Response object.

IServer

Call the methods and properties of the Server object.

ISessionObject

Call the methods and properties of the Session object.

IReadCookie

Retrieve the values and attributes of a cookie stored in the read-only Cookies collection.

IRequestDictionary

Index the subcollections of the IRequest interface. It is also used to retrieve the individual values stored in the ClientCertificate collection.

IStringList

Retrieve the values stored in a string list such as that in the QueryString, Form, or ServerVariables collections.

IWriteCookie

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.


© Microsoft Corporation. All rights reserved.