What Is a WebObjects Application?
Table of Contents Previous Section
A Note on WebObjects Classes
True to its name, WebObjects is an object-oriented environment for writing web applications. Therefore, when you write a component, an application file, or a session file, you are really writing a class. This is true whether you use WebScript, Java, or Objective-C. You can learn about these classes and where they are used by reading the chapter "WebObjects Viewed Through Its Classes".
Components are subclasses of a class named WOComponent. For example, in Figure 1 the component directory creates a WOComponent subclass named Main. Application files create subclasses of a class named WOApplication, and session files create subclasses of a class named WOSession.
WOComponent, WOApplication, and WOSession are defined, along with other classes, in the WebObjects Framework in NeXT_ROOT/NextLibrary/Frameworks/WebObjects.framework. (NeXT_ROOT is an environment variable defined at installation time. On Windows NT systems, it is C:\NeXT by default. On Mach systems, the NeXT_ROOT environment variable is undefined, but you can think of it as being the root directory /.)
In Java, WebObjects classes have different names. The names shown previously are the WebScript names. (Objective-C uses the same names as WebScript.) In Java, WOComponent is called Component, WOApplication is WebApplication, and WOSession is WebSession. The Java classes are contained in the package next.wo.
Note: This book generally uses the WebScript names for classes and methods. Usually, you can easily discern the Java name from the WebScript name, and vice versa. The following table tells you how to do so.
Where the mapping is not obvious, this book notes both the Java and WebScript/Objective-C names.
Table of Contents Next Section