PATH  WebObjects 4.0 Documentation > What's New in WebObjects 4.0

Table of Contents Previous Section

Deprecated API

The following tables list methods whose use is deprecated in WebObjects 4.0 and list new methods to use in their place. If you don't allow concurrent request handling, you can continue to use the deprecated methods. You'll receive a warning at run-time. If you want to allow concurrent request handling, you must change to the new methods. Use of deprecated methods raises an exception when concurrent request handling is enabled (that is, when you override WOApplication's method allowsConcurrentRequestHandling to return YES or true.)
WOApplication
Old API New API
session WOComponent session
context WOComponent context
pageWithName: WOComponent pageWithName: WOApplication pageWithName:inContext: or pageWithName:forRequest: (Objective-C) WOApplication pageWithName (Java)
handleSessionCreationError handleSessionCreationErrorInContext:
handleSessionRestorationError handleSessionRestorationErrorInContext:
handlePageRestorationError handlePageRestorationErrorInContext:
handleException: handleException:inContext: (Objective-C) handleException (Java)
pathForResourceNamed:ofType: WOResourceManager pathForResourceNamed:inFramework:languages: (Objective-C) WOResourceManager pathForResourceNamed (Java)
urlForResourceNamed:ofType: WOResourceManager urlForResourceNamed:inFramework:languages:request: (Objective-C) WOResourceManager urlForResourceNamed (Java)
stringForKey:inTableNamed:withDefaultValue: WOResourceManager stringForKey:inTableNamed:withDefaultValue:languages: (Objective-C) WOResourceManager stringForKey (Java)
handleRequest: dispatchRequest:
createSession createSessionForRequest:
restoreSession restoreSessionWithID:inContext: (Objective-C) restoreSessionWithID (Java)
restorePageForContextID: WOSession restorePageForContextID:
savePage: WOSession savePage:
saveSession: saveSessionForContext:
dynamicElementWithName:associations:
template:
dynamicElementWithName:associations:template:languages: (Objective-C) dynamicElementWithName (Java)
isBrowserLaunchingEnabled autoOpenInBrowser
setBrowserLaunchingEnabled: Use the WOAutoOpenInBrowser command-line option (see Command-Line Options)
runLoop mainThreadRunLoop
WOAssociation
Old API New API
value valueInComponent:
setValue: setValue:inComponent: (Objective-C) setValue (Java)
WOContext
Old API New API
setDistributionEnabled: WOSession setDistributionEnabled:
isDistributionEnabled WOSession isDistributionEnabled
application WOApplication application class or static method
urlSessionPrefix None (deprecated functionality)
url componentActionURL
WORequest
Old API New API
applicationHost See NSProcessInfo or NSHost (Objective-C) java.net.InetAddress (Java)
contextID WOContext contextID
pageName WOComponent name
senderID WOContext senderID
WOResourceManager
Old API New API
pathForResourceNamed:inFramework: pathForResourceNamed:inFramework:languages: (Objective-C) pathForResourceNamed (Java)
urlForResourceNamed:inFramework: urlForResourceNamed:inFramework:languages:request: (Objective-C) urlForResourceNamed (Java)
WOSession
Old API New API
application WOApplication application class or static method
WOSessionStore
Old API New API
restoreSession restoreSessionWithID:request: (Objective-C) restoreSessionWithID (Java)
saveSession: saveSessionForContext:
cookieSessionStoreWithDistributionDomain:secure: None. See Cookie API for new API that allows you to store session IDs in cookies.
WOStatisticsStore
Old API New API
validateLogin: validateLogin:forSession: (Objective-C) validateLogin (Java)
setMovingAverageSampleSize: setTransactionMovingAverageSampleSize: setSessionMovingAverageSampleSize:
movingAverageSampleSize transactionMovingAverageSampleSize sessionMovingAverageSampleSize
WOComponent
Old API New API
pathForResourceNamed:ofType: WOResourceManager pathForResourceNamed:inFramework:languages: (Objective-C) WOResourceManager pathForResourceNamed (Java)
urlForResourceNamed:ofType: WOResourceManager urlForResourceNamed:inFramework:languages:request: (Objective-C) WOResourceManager urlForResourceNamed (Java)
stringForKey:inTableNamed:withDefaultValue: WOResourceManager stringForKey:inTableNamed:withDefaultValue:languages: (Objective-C) WOResourceManager stringForKey (Java)
templateWithHTMLString:declarationString: templateWithHTMLString:declarationString:languages: (Objective-C) templateWithHTMLString (Java)
WODisplayGroup
Old API New API
setSortOrdering setSortOrderings:
sortOrdering sortOrderings
endEditing None (this method had no effect in WebObjects 3.5)
executeQuery queryMatch, queryMin, queryMax
inputObjectForQualifier queryMatch, queryMin, queryMax
secondObjectForQualifier queryMatch, queryMin, queryMax
setBuildsQualifierFromInput: queryMatch, queryMin, queryMax
buildsQualifierFromInput queryMatch, queryMin, queryMax
qualifierFromInputValues queryMatch, queryMin, queryMax
lastQualifierFromInputValues queryMatch, queryMin, queryMax
localKeys None (this method was inadvertently carried over from EODisplayGroup)
setLocalKeys: None (this method was inadvertently carried over from EODisplayGroup)

Table of Contents Next Section