com.cassinidivision.oce.rendering
Class OCEApplication

java.lang.Object
  extended bycom.webobjects.appserver.WOApplication
      extended bycom.cassinidivision.oce.rendering.OCEApplication
All Implemented Interfaces:
NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions

public class OCEApplication
extends WOApplication

A default WOApplication subclass for OCE rendering applications.


Nested Class Summary
 
Nested classes inherited from class com.webobjects.appserver.WOApplication
WOApplication._EventLoggingEnabler, WOApplication.Event
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Field Summary
 
Fields inherited from class com.webobjects.appserver.WOApplication
_adminRequestHandlerKey, _unsetHost, _wasMainInvoked, ApplicationDidDispatchRequestNotification, ApplicationDidFinishLaunchingNotification, ApplicationWillDispatchRequestNotification, ApplicationWillFinishLaunchingNotification
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
_CLASS, NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Constructor Summary
OCEApplication()
           
 
Method Summary
 void cacheEntities()
          Cache certain entities for increased performance.
 WOContext createContextForRequest(WORequest aRequest)
           
 WOResponse dispatchRequest(WORequest request)
           
static WOComponent errorPageInContext(WOContext aContext)
          Create an instance of the current error-handling component using the context provided (convenience method).
static String errorPageName()
          Retrieve the name of the current WOComponent responsible for handling rendering errors.
static WOComponent errorPageWithException(Exception anException, WOContext aContext)
          Create an instance of the current error-handling component preloaded with the error information (convenience method).
 WOResponse handleException(Exception e, WOContext c)
           
 boolean invalidateOnEachRequest()
          Determine if the application is set to invalidate EOs on each request or not.
static EOEditingContext readOnlyEditingContext()
          Retrieve a shared application-wide editing context (singleton).
 
Methods inherited from class com.webobjects.appserver.WOApplication
_addToExpectedLanguages, _checksForSpecialHeaders, _componentDefinition, _componentDefinitionFromClassNamed, _debugString, _expectedLanguages, _initializeSessionInContext, _isDebuggingEnabled, _isDomesticSupportedDevelopmentPlatform, _isForeignSupportedDevelopmentPlatform, _isPageRecreationEnabled, _isSupportedDevelopmentPlatform, _newLocationForRequest, _quitTimer, _rapidTurnaroundActiveForAnyProject, _removeComponentDefinitionCacheContents, _runLoop, _setChecksForSpecialHeaders, _setHost, _setHostAddress, _terminateOrResetTimer, activeSessionsCount, adaptor, adaptors, adaptorsDispatchRequestsConcurrently, adaptorWithName, additionalAdaptors, allowsConcurrentRequestHandling, appendToResponse, application, applicationBaseURL, autoOpenClientApplication, autoOpenInBrowser, awake, baseURL, canAccessFieldsDirectly, cgiAdaptorURL, componentRequestHandlerKey, contextClassName, createRequest, createResourceManager, createResponseInContext, createSessionForRequest, debugString, defaultRequestHandler, defaultRequestHandlerClassName, defaultUndoStackLimit, directActionRequestHandlerKey, directConnectURL, dynamicElementWithName, frameworksBaseURL, handleActionRequestError, handleMalformedCookieString, handlePageRestorationErrorInContext, handleQueryWithUnboundKey, handlerForRequest, handleSessionCreationErrorInContext, handleSessionRestorationErrorInContext, handleTakeValueForUnboundKey, host, hostAddress, includeCommentsInResponses, invokeAction, isCachingEnabled, isConcurrentRequestHandlingEnabled, isDebuggingEnabled, isDirectConnectEnabled, isMonitorEnabled, isPageRefreshOnBacktrackEnabled, isRefusingNewSessions, isTerminating, licensedRequestLimit, licensedRequestWindow, licensingAllowsMultipleInstances, licensingAllowsMultipleThreads, lifebeatDestinationPort, lifebeatEnabled, lifebeatInterval, listenQueueSize, loadFrameworks, lock, logSetValueForDeclarationNamed, logString, logTakeValueForDeclarationNamed, main, main, maxSocketIdleTime, minimumActiveSessionsCount, monitorEnabled, monitorHost, monitoringEnabled, name, number, outputPath, pageCacheSize, pageWithName, path, permanentPageCacheSize, port, primeApplication, primeApplication, printsHTMLParserDiagnostics, projectSearchPath, recordingPath, refuseNewSessions, registeredRequestHandlerKeys, registerRequestHandler, removeRequestHandlerForKey, requestHandlerForKey, requestHandlingLock, resourceManager, resourceRequestHandlerKey, responseForComponentWithName, responseForDirectActionWithNameAndClass, restoreSessionWithID, run, saveSessionForContext, servletConnectURL, sessionStore, sessionStoreClassName, sessionTimeOut, setAdaptor, setAdditionalAdaptors, setAllowsConcurrentRequestHandling, setApplicationBaseURL, setAutoOpenClientApplication, setAutoOpenInBrowser, setCachingEnabled, setCGIAdaptorURL, setComponentRequestHandlerKey, setContextClassName, setDefaultRequestHandler, setDefaultUndoStackLimit, setDirectActionRequestHandlerKey, setDirectConnectEnabled, setFrameworksBaseURL, setIncludeCommentsInResponses, setListenQueueSize, setLoadFrameworks, setMaxSocketIdleTime, setMinimumActiveSessionsCount, setMonitorEnabled, setMonitorHost, setPageCacheSize, setPageRefreshOnBacktrackEnabled, setPermanentPageCacheSize, setPort, setPrintsHTMLParserDiagnostics, setProjectSearchPath, setRecordingPath, setResourceManager, setResourceRequestHandlerKey, setSessionStore, setSessionStoreClassName, setSessionTimeOut, setSMTPHost, setSocketCacheSize, setSocketMonitorSleepTime, setStatisticsStore, setTimeOut, setWebServiceRequestHandlerKey, setWorkerThreadCount, setWorkerThreadCountMax, setWorkerThreadCountMin, sharedEditingContext, shouldRestoreSessionOnCleanEntry, sleep, SMTPHost, socketCacheSize, socketMonitorSleepTime, statistics, statisticsStore, streamActionRequestHandlerKey, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, terminate, terminateAfterTimeInterval, timeOut, toString, unableToSetNullForKey, unlock, validationFailedWithException, valueForKey, valueForKeyPath, wasMainInvoked, webserverConnectURL, webServiceRequestHandlerKey, workerThreadCount, workerThreadCountMax, workerThreadCountMin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OCEApplication

public OCEApplication()
Method Detail

cacheEntities

public void cacheEntities()
Cache certain entities for increased performance.


readOnlyEditingContext

public static EOEditingContext readOnlyEditingContext()
Retrieve a shared application-wide editing context (singleton).

This editing context is intended for read-only usage only.

Returns:
The shared editing context.

dispatchRequest

public WOResponse dispatchRequest(WORequest request)

invalidateOnEachRequest

public boolean invalidateOnEachRequest()
Determine if the application is set to invalidate EOs on each request or not.

Returns:
true if EOs are invalidated on every request, false otherwise.

errorPageName

public static String errorPageName()
Retrieve the name of the current WOComponent responsible for handling rendering errors.

Returns:
String representing the name of a WOComponent.

errorPageInContext

public static WOComponent errorPageInContext(WOContext aContext)
Create an instance of the current error-handling component using the context provided (convenience method).

Parameters:
aContext - The context for the generated component.
Returns:
A new error WOComponent instance.

errorPageWithException

public static WOComponent errorPageWithException(Exception anException,
                                                 WOContext aContext)
Create an instance of the current error-handling component preloaded with the error information (convenience method).

Parameters:
anException - The exception that was thrown as a result of the error condition.
aContext - The context for the generated component.
Returns:
A new error WOComponent instance.

createContextForRequest

public WOContext createContextForRequest(WORequest aRequest)

handleException

public WOResponse handleException(Exception e,
                                  WOContext c)