PATH  Documentation > WebObjects 4.5 > WebObjects Reference

Table of Contents

Deprecated API

This file enumerates those WebObjects Framework classes and methods that have been deprecated and should no longer be used. Wherever possible, notes have been included to indicate what API should be used in place of the deprecated class or method.


WOApplication


context

- (WOContext *)context

Deprecated in WebObjects 4.0. Use WOComponent's context method instead.

createSession

- (WOSession *)createSession

Deprecated in WebObjects 4.0 Use createSessionForRequest: instead.

dynamicElementWithName:associations:template:

- (WODynamicElement *)dynamicElementWithName:(NSString *)aName associations:(NSDictionary *)someAssociations template:(WOElement *)anElement

Deprecated in WebObjects 4.0. Use dynamicElementWithName:associations:template:languages: instead.

handleException:

- (WOResponse *)handleException:(NSException *)anException

Deprecated in WebObjects 4.0. Use handleException:inContext: instead.

handlePageRestorationError

- (WOResponse *)handlePageRestorationError

Deprecated in WebObjects 4.0. Use handlePageRestorationErrorInContext: instead.

handleRequest:

- (WOResponse *)handleRequest:(WORequest *)aRequest

Deprecated in WebObjects 4.0. Use dispatchRequest: instead.

handleSessionCreationError

- (WOResponse *)handleSessionCreationError

Deprecated in WebObjects 4.0. Use handleSessionCreationErrorInContext: instead.

handleSessionRestorationError

- (WOResponse *)handleSessionRestorationError

Deprecated in WebObjects 4.0. Use handleSessionRestorationErrorInContext: instead.

logToMonitorWithFormat:

- (void)logToMonitorWithFormat:(NSString *)aFormat, ...

Deprecated in WebObjects 4.5. New features in the Monitor application allow logging of information. The deprecated API does nothing.

monitorHost

+ (NSString *)monitorHost

Deprecated in WebObjects 4.5. Returned the host on which Monitor is assumed to be running. This value was used during initialization if isMonitorEnabled is YES. This was a cover for the deprecated user default WOMonitorHost. New Monitor features eliminate the need for this method.

pageWithName:

- (WOComponent *)pageWithName:(NSString *)aName

Deprecated in WebObjects 4.0. Use pageWithName:forRequest: instead.

pathForResourceNamed:ofType:

- (NSString *)pathForResourceNamed:(NSString *)aName ofType:(NSString *)anExtension

Deprecated in WebObjects 4.0. Use WOResourceManager's implementation of pathForResourceNamed:inFramework:languages: instead.

requiresWOF35RequestHandling

- (BOOL)requiresWOF35RequestHandling

Deprecated in WebObjects 4.5. Apps should be rewritten so that they don't require WebObjects 3.5 behavior.

requiresWOF35Scripting

- (BOOL)requiresWOF35Scripting

Deprecated in WebObjects 4.5. Apps should be rewritten so that they don't require WebObjects 3.5 behavior.

requiresWOF35TemplateParser

- (BOOL)requiresWOF35TemplateParser

Deprecated in WebObjects 4.5. Apps should be rewritten so that they don't require WebObjects 3.5 behavior.

restorePageForContextID:

- (WOComponent *)restorePageForContextID:(NSString *)contextID

Deprecated in WebObjects 4.0. Use WOSession's restorePageForContextID: instead.

restoreSession

- (WOSession *)restoreSession

Deprecated in WebObjects 4.0. Use restoreSessionWithID:inContext: instead.

savePage:

- (void)savePage:(WOComponent *)aPage

Deprecated in WebObjects 4.0. Use WOSession's implementation of savePage: instead.

saveSession:

- (void)saveSession:(WOSession *)aSession

Deprecated in WebObjects 4.0. Use saveSessionForContext: instead.

session

- (WOSession *)session

Deprecated in WebObjects 4.0 Use WOComponent's session method instead.

setMonitorHost:

+ (void)setMonitorHost:(NSString *)aHostName

Deprecated in WebObjects 4.5. This was an accessor to set the monitorHost. New Monitor features eliminate the need for this method.

stringForKey:inTableNamed:withDefaultValue:

- (NSString *)stringForKey:(NSString *)aKey inTableNamed:(NSString *)aTableName withDefaultValue:(NSString *)aDefaultValue

Deprecated in WebObjects 4.0. Use WOResourceManager's implementation of stringForKey:inTableNamed:withDefaultValue:inFramework:languages: instead.

urlForResourceNamed:ofType:

- (NSString *)urlForResourceNamed:(NSString *)aName ofType:(NSString *)anExtension

Deprecated in WebObjects 4.0. Use WOResourceManager's implementation of urlForResourceNamed:inFramework:languages:request: instead.

WOAssociation


setValue:

- (void)setValue:(id)aValue

Deprecated in WebObjects 4.0. Use setValue:inComponent: instead.

value

- (id)value

Deprecated in WebObjects 4.0. Use valueInComponent: instead.

WOComponent


pathForResourceNamed:ofType:

- (NSString *)pathForResourceNamed:(NSString *)aName ofType:(NSString *)anExtension

Deprecated in WebObjects 4.0. Use WOResourceManager's implementation of pathForResourceNamed:inFramework:languages: instead.

requiresWOF35RequestHandling

- (BOOL)requiresWOF35RequestHandling

Deprecated in WebObjects 4.5. Apps should be rewritten so that they don't require WebObjects 3.5 behavior.

stringForKey:inTableNamed:withDefaultValue:

- (NSString *)stringForKey:(NSString *)aKey inTableNamed:(NSString *)aTableName withDefaultValue:(NSString *)aDefaultValue

Deprecated in WebObjects 4.0. Use WOResourceManager's implementation of stringForKey:inTableNamed:withDefaultValue:inFramework:languages: instead.

templateWithHTMLString:declarationString:

+ (WOElement *)templateWithHTMLString:(NSString *)anHTMLString declarationString:(NSString *)aDeclarationString

Deprecated in WebObjects 4.0. Use templateWithHTMLString:declarationString:languages: instead.

urlForResourceNamed:ofType:

- (NSString *)urlForResourceNamed:(NSString *)aResourceName ofType:(NSString *)anExtension

Deprecated in WebObjects 4.0. Use WOResourceManager's implementation of urlForResourceNamed:inFramework:languages:request: instead.

WOContext


application

- (WOApplication *)application

Deprecated in WebObjects 4.0. Use WOApplication's application method instead.

isDistributionEnabled

- (BOOL)isDistributionEnabled

Deprecated in WebObjects 4.0. Use WOSession's implementation of isDistributionEnabled instead.

setDistributionEnabled:

- (void)setDistributionEnabled:(BOOL)flag

Deprecated in WebObjects 4.0. Use WOSession's implementation of setDistributionEnabled: instead.

url

- (NSString *)url

Deprecated in WebObjects 4.0. Use componentActionURL instead.

urlSessionPrefix

- (NSString *)urlSessionPrefix

Deprecated in WebObjects 4.0. There is no alternative since the URL session prefix doesn't mean anything in the current URL format.

WODisplayGroup


setSortOrdering:

- (void)setSortOrdering:(NSArray *)keySortOrderArray

Deprecated in WebObjects 4.0. Renamed to setSortOrderings:.

sortOrdering

- (NSArray *)sortOrdering

Deprecated in WebObjects 4.0. Renamed to sortOrderings.

WORequest


applicationHost

- (NSString *)applicationHost

Deprecated in WebObjects 4.0. See NSProcessInfo or NSHost.

contextID

- (NSString *)contextID

Deprecated in WebObjects 4.0. Use WOContext's implementation of contextID instead.

pageName

- (NSString *)pageName

Deprecated in WebObjects 4.0. Use WOComponent's name method instead.

senderID

- (NSString *)senderID

Deprecated in WebObjects 4.0. Use WOContext's implementation of senderID instead.

WOResourceManager


pathForResourceNamed:inFramework:

- (NSString *)pathForResourceNamed:(NSString *)aResourceName inFramework:(NSString *)aFrameworkName

Deprecated in WebObjects 4.0. Use pathForResourceNamed:inFramework:languages: instead.

urlForResourceNamed:inFramework:

- (NSString *)urlForResourceNamed:(NSString *)aResourceName inFramework:(NSString *)aFrameworkName

Deprecated in WebObjects 4.0. Use urlForResourceNamed:inFramework:languages:request: instead.

WOSession


application

- (WOApplication*)application

Deprecated in WebObjects 4.0. Use WOApplication's application method instead.

WOSessionStore


restoreSession

- (WOSession*)restoreSession

Deprecated in WebObjects 4.0. Use restoreSessionWithID:request: instead.

saveSession:

- (void)saveSession:(WOSession *)aSession

Deprecated in WebObjects 4.0. Use saveSessionForContext: instead.

WOStatisticsStore


validateLogin:

- (BOOL)validateLogin:(NSString *)string

Deprecated in WebObjects 4.0. Use validateLogin:forSession: instead.

Table of Contents