2002-08-04 18:00:11 +00:00
|
|
|
/** GSWApplication.h - <title>GSWeb: Class GSWApplication</title>
|
|
|
|
|
2003-02-01 19:07:25 +00:00
|
|
|
Copyright (C) 1999-2003 Free Software Foundation, Inc.
|
2002-08-04 18:00:11 +00:00
|
|
|
|
|
|
|
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
2000-01-22 12:49:49 +00:00
|
|
|
Date: Jan 1999
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
$Revision$
|
|
|
|
$Date$
|
2003-02-01 19:07:25 +00:00
|
|
|
$Id$
|
2002-08-04 18:00:11 +00:00
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
This file is part of the GNUstep Web Library.
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
<license>
|
2000-01-22 12:49:49 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2002-08-04 18:00:11 +00:00
|
|
|
</license>
|
|
|
|
**/
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
#ifndef _GSWApplication_h__
|
|
|
|
#define _GSWApplication_h__
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
extern void GSWApplicationSetDebugSetOption(NSString* opt);
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
extern int WOApplicationMain(NSString* applicationClassName,
|
|
|
|
int argc,
|
|
|
|
const char *argv[]);
|
2000-01-22 12:49:49 +00:00
|
|
|
extern int GSWApplicationMain(NSString* applicationClassName,
|
2002-08-04 18:00:11 +00:00
|
|
|
int argc,
|
|
|
|
const char *argv[]);
|
2000-01-22 12:49:49 +00:00
|
|
|
extern NSString* globalApplicationClassName;
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
extern int GSWebNamingConv;//GSWNAMES_INDEX or WONAMES_INDEX
|
|
|
|
#define GSWebNamingConvInversed (GSWebNamingConv==GSWNAMES_INDEX ? WONAMES_INDEX : GSWNAMES_INDEX)
|
|
|
|
#define GSWebNamingConvForRound(r) ((r)==0 ? GSWebNamingConv : (GSWebNamingConv==GSWNAMES_INDEX ? WONAMES_INDEX : GSWNAMES_INDEX))
|
|
|
|
|
|
|
|
extern BOOL WOStrictFlag;
|
2000-01-22 12:49:49 +00:00
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication : NSObject <NSLocking>
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
NSArray* _adaptors;
|
|
|
|
GSWSessionStore* _sessionStore;
|
|
|
|
GSWMultiKeyDictionary* _componentDefinitionCache;
|
|
|
|
NSTimeInterval _timeOut;
|
|
|
|
NSTimer* _timer;
|
2000-01-22 12:49:49 +00:00
|
|
|
// GSWContext* context; // being deprecated
|
2002-08-04 18:00:11 +00:00
|
|
|
GSWStatisticsStore* _statisticsStore;
|
|
|
|
GSWResourceManager* _resourceManager;
|
|
|
|
NSDistantObject* _remoteMonitor;
|
|
|
|
NSConnection* _remoteMonitorConnection;
|
|
|
|
NSString* _instanceNumber;
|
|
|
|
NSMutableDictionary* _requestHandlers;
|
|
|
|
GSWRequestHandler* _defaultRequestHandler;
|
2001-10-28 10:29:17 +00:00
|
|
|
@public //TODO-NOW REMOVE
|
2002-08-04 18:00:11 +00:00
|
|
|
NSRecursiveLock* _selfLock;
|
2000-01-22 12:49:49 +00:00
|
|
|
#ifndef NDEBUG
|
2002-08-04 18:00:11 +00:00
|
|
|
int _selfLockn;
|
|
|
|
objc_thread_t _selfLock_thread_id;
|
2000-01-22 12:49:49 +00:00
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
NSLock* _globalLock;
|
2000-01-22 12:49:49 +00:00
|
|
|
#ifndef NDEBUG
|
2002-08-04 18:00:11 +00:00
|
|
|
int _globalLockn;
|
|
|
|
objc_thread_t _globalLock_thread_id;
|
2000-01-22 12:49:49 +00:00
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
NSAutoreleasePool* _globalAutoreleasePool;
|
|
|
|
unsigned _pageCacheSize;
|
|
|
|
unsigned _permanentPageCacheSize;
|
|
|
|
int _activeSessionsCount;
|
|
|
|
int _minimumActiveSessionsCount;
|
|
|
|
BOOL _pageRecreationEnabled;
|
|
|
|
BOOL _pageRefreshOnBacktrackEnabled;
|
|
|
|
BOOL _terminating;
|
|
|
|
BOOL _dynamicLoadingEnabled;
|
|
|
|
BOOL _printsHTMLParserDiagnostics;
|
|
|
|
BOOL _refusingNewSessions;
|
|
|
|
BOOL _shouldDieWhenRefusing;
|
|
|
|
BOOL _refusingNewClients;
|
|
|
|
BOOL _refuseThisRequest;
|
|
|
|
BOOL _isMultiThreaded;
|
|
|
|
BOOL _isMTProtected;
|
|
|
|
BOOL _timedRunLoop;
|
|
|
|
BOOL _isTracingEnabled;
|
|
|
|
BOOL _isTracingAssignmentsEnabled;
|
|
|
|
BOOL _isTracingObjectiveCMessagesEnabled;
|
|
|
|
BOOL _isTracingScriptedMessagesEnabled;
|
|
|
|
BOOL _isTracingStatementsEnabled;
|
|
|
|
NSRunLoop* _currentRunLoop;
|
|
|
|
NSDate* _runLoopDate;
|
|
|
|
NSTimer* _initialTimer;
|
|
|
|
NSLock* _activeSessionsCountLock;
|
2000-01-22 12:49:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-(void)dealloc;
|
|
|
|
-(id)init;
|
|
|
|
|
|
|
|
|
|
|
|
-(BOOL)allowsConcurrentRequestHandling;
|
|
|
|
-(BOOL)adaptorsDispatchRequestsConcurrently;
|
|
|
|
-(BOOL)isConcurrentRequestHandlingEnabled;
|
|
|
|
-(BOOL)isRequestHandlingLocked;
|
|
|
|
-(void)lockRequestHandling;
|
|
|
|
-(void)unlockRequestHandling;
|
|
|
|
-(void)lock;
|
|
|
|
-(void)unlock;
|
|
|
|
|
|
|
|
|
|
|
|
-(NSString*)baseURL;
|
|
|
|
|
|
|
|
-(NSString*)number;
|
|
|
|
-(NSString*)path;
|
|
|
|
-(NSString*)name;
|
|
|
|
-(NSString*)description;
|
|
|
|
-(void)setPageRefreshOnBacktrackEnabled:(BOOL)flag;
|
|
|
|
|
|
|
|
-(void)registerRequestHandlers;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)_initAdaptorsWithUserDefaults:(NSUserDefaults*)userDefault;
|
|
|
|
-(NSDictionary*)_argsDictionaryWithUserDefaults:(NSUserDefaults*)userDefault;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(void)unlock;
|
|
|
|
-(void)lock;
|
|
|
|
-(void)unlockRequestHandling;
|
|
|
|
-(void)lockRequestHandling;
|
|
|
|
|
|
|
|
+(void)_initRegistrationDomainDefaults;
|
|
|
|
+(void)_initUserDefaultsKeys;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationA)
|
|
|
|
-(void)becomesMultiThreaded;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationB)
|
|
|
|
-(id)_webserverConnectURL;
|
|
|
|
-(NSString*)_directConnectURL;
|
|
|
|
-(id)_applicationExtension;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationC)
|
|
|
|
-(void)_resetCacheForGeneration;
|
|
|
|
-(void)_resetCache;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationD)
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWComponentDefinition*)componentDefinitionWithName:(NSString*)aName
|
|
|
|
languages:(NSArray*)languages;
|
|
|
|
-(GSWComponentDefinition*)lockedComponentDefinitionWithName:(NSString*)aName
|
|
|
|
languages:(NSArray*)languages;
|
|
|
|
-(GSWComponentDefinition*)lockedLoadComponentDefinitionWithName:(NSString*)aName
|
|
|
|
language:(NSString*)language;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(NSArray*)lockedComponentBearingFrameworks;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(NSArray*)lockedInitComponentBearingFrameworksFromBundleArray:(NSArray*)bundles;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationE)
|
2003-06-25 15:17:29 +00:00
|
|
|
-(void)setContextClassName:(NSString*)className;
|
|
|
|
-(NSString*)contextClassName;
|
|
|
|
-(GSWContext*)createContextForRequest:(GSWRequest*)aRequest;
|
|
|
|
|
2003-02-01 19:07:25 +00:00
|
|
|
-(GSWResponse*)createResponseInContext:(GSWContext*)aContext;
|
|
|
|
-(GSWRequest*)createRequestWithMethod:(NSString*)aMethod
|
|
|
|
uri:(NSString*)anURL
|
|
|
|
httpVersion:(NSString*)aVersion
|
|
|
|
headers:(NSDictionary*)headers
|
|
|
|
content:(NSData*)content
|
|
|
|
userInfo:(NSDictionary*)userInfo;
|
2003-06-25 15:17:29 +00:00
|
|
|
|
2003-02-01 19:07:25 +00:00
|
|
|
-(GSWResourceManager*)createResourceManager;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(void)_discountTerminatedSession;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)_finishInitializingSession:(GSWSession*)aSession;
|
|
|
|
-(GSWSession*)_initializeSessionInContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(int)lockedDecrementActiveSessionCount;
|
|
|
|
-(int)lockedIncrementActiveSessionCount;
|
|
|
|
-(int)_activeSessionsCount;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationF)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)_setContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
// Internal Use only
|
|
|
|
-(GSWContext*)_context;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationG)
|
|
|
|
|
|
|
|
-(BOOL)_isDynamicLoadingEnabled;
|
|
|
|
-(void)_disableDynamicLoading;
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationI)
|
|
|
|
|
|
|
|
-(BOOL)_isPageRecreationEnabled;
|
|
|
|
-(void)_touchPrincipalClasses;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationJ)
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(id)_newLocationForRequest:(GSWRequest*)aRequest;
|
|
|
|
-(void)_connectionDidDie:(id)unknown;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(BOOL)_shouldKill;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)_setShouldKill:(BOOL)flag;
|
|
|
|
-(void)_synchronizeInstanceSettingsWithMonitor:(id)aMonitor;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(BOOL)_setupForMonitoring;
|
|
|
|
-(id)_remoteMonitor;
|
|
|
|
-(NSString*)_monitorHost;
|
|
|
|
-(NSString*)_monitorApplicationName;
|
|
|
|
-(void)_terminateFromMonitor;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationK)
|
|
|
|
-(void)_validateAPI;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWAdaptorManagement)
|
|
|
|
|
|
|
|
-(NSArray*)adaptors;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWAdaptor*)adaptorWithName:(NSString*)aName
|
|
|
|
arguments:(NSDictionary*)someArguments;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWCacheManagement)
|
|
|
|
|
|
|
|
-(BOOL)isCachingEnabled;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setCachingEnabled:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWSessionManagement)
|
|
|
|
|
|
|
|
-(GSWSessionStore*)sessionStore;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setSessionStore:(GSWSessionStore*)sessionStore;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWSession*)createSessionForRequest:(GSWRequest*)aRequest;
|
|
|
|
-(GSWSession*)_createSessionForRequest:(GSWRequest*)aRequest;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(Class)_sessionClass;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWSession*)restoreSessionWithID:(NSString*)aSessionID
|
|
|
|
inContext:(GSWContext*)aContext;
|
|
|
|
-(GSWSession*)_restoreSessionWithID:(NSString*)aSessionID
|
|
|
|
inContext:(GSWContext*)aContext;
|
|
|
|
-(void)saveSessionForContext:(GSWContext*)aContext;
|
|
|
|
-(void)_saveSessionForContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWPageManagement)
|
|
|
|
|
|
|
|
-(unsigned int)pageCacheSize;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setPageCacheSize:(unsigned int)aSize;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(unsigned)permanentPageCacheSize;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setPermanentPageCacheSize:(unsigned)aSize;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(BOOL)isPageRefreshOnBacktrackEnabled;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setPageRefreshOnBacktrackEnabled:(BOOL)flag;
|
|
|
|
-(GSWComponent*)pageWithName:(NSString*)aName
|
|
|
|
forRequest:(GSWRequest*)aRequest;
|
|
|
|
-(GSWComponent*)pageWithName:(NSString*)aName
|
|
|
|
inContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(NSString*)defaultPageName;//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWComponent*)_pageWithName:(NSString*)aName
|
|
|
|
inContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWElementCreation)
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWElement*)dynamicElementWithName:(NSString *)aName
|
|
|
|
associations:(NSDictionary*)someAssociations
|
|
|
|
template:(GSWElement*)templateElement
|
|
|
|
languages:(NSArray*)languages;
|
|
|
|
-(GSWElement*)lockedDynamicElementWithName:(NSString*)aName
|
|
|
|
associations:(NSDictionary*)someAssociations
|
|
|
|
template:(GSWElement*)templateElement
|
|
|
|
languages:(NSArray*)languages;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWRunning)
|
|
|
|
-(NSRunLoop*)runLoop;
|
|
|
|
-(void)threadWillExit;//NDFN
|
|
|
|
-(void)run;
|
|
|
|
-(BOOL)runOnce;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setTimeOut:(NSTimeInterval)aTimeInterval;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(NSTimeInterval)timeOut;
|
|
|
|
-(void)terminate;
|
|
|
|
-(BOOL)isTerminating;
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)_scheduleApplicationTimerForTimeInterval:(NSTimeInterval)aTimeInterval;
|
|
|
|
-(void)addTimer:(NSTimer*)aTimer;//NDFN
|
2000-01-22 12:49:49 +00:00
|
|
|
-(void)cancelInitialTimer;
|
|
|
|
-(void)handleInitialTimer;
|
|
|
|
-(void)_setNextCollectionCount:(int)_count;
|
|
|
|
-(void)_sessionDidTimeOutNotification:(NSNotification*)notification_;
|
|
|
|
-(void)_openInitialURL;
|
|
|
|
-(void)_openURL:(NSString*)_url;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWRequestHandling)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWResponse*)dispatchRequest:(GSWRequest*)aRequest;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(void)awake;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWElement*)invokeActionForRequest:(GSWRequest*)aRequest
|
|
|
|
inContext:(GSWContext*)aContext;
|
|
|
|
-(void)takeValuesFromRequest:(GSWRequest*)aRequest
|
|
|
|
inContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)appendToResponse:(GSWResponse*)aResponse
|
|
|
|
inContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(void)sleep;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWErrorHandling)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWResponse*)handleException:(NSException*)exception
|
|
|
|
inContext:(GSWContext*)aContext;
|
|
|
|
-(GSWResponse*)_handleException:(NSException*)exception
|
|
|
|
inContext:(GSWContext*)aContext;
|
|
|
|
-(GSWResponse*)handlePageRestorationErrorInContext:(GSWContext*)aContext;
|
|
|
|
-(GSWResponse*)_handlePageRestorationErrorInContext:(GSWContext*)aContext;
|
|
|
|
-(GSWResponse*)handleSessionCreationErrorInContext:(GSWContext*)aContext;
|
|
|
|
-(GSWResponse*)_handleSessionCreationErrorInContext:(GSWContext*)aContext;
|
|
|
|
-(GSWResponse*)handleSessionRestorationErrorInContext:(GSWContext*)aContext;
|
|
|
|
-(GSWResponse*)_handleSessionRestorationErrorInContext:(GSWContext*)aContext;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWConveniences)
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)_setApplication:(GSWApplication*)application;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(GSWApplication*)application;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWHTMLTemplateParsingDebugging)
|
|
|
|
-(BOOL)printsHTMLParserDiagnostics;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setPrintsHTMLParserDiagnostics:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWScriptedObjectSupport)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(Class)scriptedClassWithPath:(NSString*)path;
|
|
|
|
-(Class)scriptedClassWithPath:(NSString*)path
|
|
|
|
encoding:(NSStringEncoding)encoding;
|
|
|
|
-(Class)_classWithScriptedClassName:(NSString*)aName
|
|
|
|
languages:(NSArray*)languages;
|
|
|
|
-(void)_setClassFromNameResolutionEnabled:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWLibrarySupport)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(Class)libraryClassWithPath:(NSString*)path;//NDFN
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
2000-03-20 15:50:51 +00:00
|
|
|
//====================================================================
|
2000-01-22 12:49:49 +00:00
|
|
|
@interface GSWApplication (GSWDebugging)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)debugWithString:(NSString*)string;
|
|
|
|
-(void)debugWithFormat:(NSString*)format
|
|
|
|
arguments:(va_list)someArgumentsu;
|
|
|
|
-(void)debugWithFormat:(NSString*)formatString,...;
|
|
|
|
+(void)debugWithFormat:(NSString*)formatString,...;
|
|
|
|
-(void)logWithFormat:(NSString*)aFormat,...;
|
|
|
|
+(void)logWithFormat:(NSString*)aFormat,...;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(void)logWithFormat:(NSString*)formatString_
|
2002-08-04 18:00:11 +00:00
|
|
|
arguments:(va_list)arguments;
|
|
|
|
-(void)logErrorWithFormat:(NSString*)aFormat,...;
|
|
|
|
+(void)logErrorWithFormat:(NSString*)aFormat,...;
|
|
|
|
-(void)logErrorWithFormat:(NSString*)formatString
|
|
|
|
arguments:(va_list)arguments;
|
|
|
|
-(void)trace:(BOOL)flag;
|
|
|
|
-(void)traceAssignments:(BOOL)flag;
|
|
|
|
-(void)traceObjectiveCMessages:(BOOL)flag;
|
|
|
|
-(void)traceScriptedMessages:(BOOL)flag;
|
|
|
|
-(void)traceStatements:(BOOL)flag;
|
|
|
|
+(void)logTakeValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
associationDescription:(NSString*)anAssociationDescription
|
|
|
|
value:(id)aValue;
|
|
|
|
+(void)logSetValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
associationDescription:(NSString*)anAssociationDescription
|
|
|
|
value:(id)aValue;
|
|
|
|
|
|
|
|
-(void)logTakeValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
associationDescription:(NSString*)anAssociationDescription
|
|
|
|
value:(id)aValue;
|
|
|
|
|
|
|
|
-(void)logSetValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
associationDescription:(NSString*)anAssociationDescription
|
|
|
|
value:(id)aValue;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(void)logSynchronizeComponentToParentForValue:(id)value_
|
2002-08-04 18:00:11 +00:00
|
|
|
association:(GSWAssociation*)anAssociation
|
|
|
|
inComponent:(NSObject*)aComponent;
|
|
|
|
+(void)logSynchronizeParentToComponentForValue:(id)aValue
|
|
|
|
association:(GSWAssociation*)anAssociation
|
|
|
|
inComponent:(NSObject*)aComponent;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)_setTracingAspect:(id)unknwon
|
|
|
|
enabled:(BOOL)enabled;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
2000-03-20 15:50:51 +00:00
|
|
|
//====================================================================
|
|
|
|
//NDFN
|
|
|
|
//Same as GSWDebugging but it print messages on stdout AND call GSWDebugging methods
|
|
|
|
@interface GSWApplication (GSWDebuggingStatus)
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)statusDebugWithString:(NSString*)aString;
|
|
|
|
-(void)statusDebugWithFormat:(NSString*)aFormat
|
|
|
|
arguments:(va_list)arguments;
|
|
|
|
-(void)statusDebugWithFormat:(NSString*)aFormat,...;
|
|
|
|
+(void)statusDebugWithFormat:(NSString*)aFormat,...;
|
|
|
|
-(void)statusLogWithFormat:(NSString*)aFormat,...;
|
|
|
|
+(void)statusLogWithFormat:(NSString*)aFormat,...;
|
|
|
|
-(void)statusLogWithFormat:(NSString*)aFormat
|
|
|
|
arguments:(va_list)arguments;
|
|
|
|
-(void)statusLogErrorWithFormat:(NSString*)aFormat,...;
|
|
|
|
+(void)statusLogErrorWithFormat:(NSString*)aFormat,...;
|
|
|
|
-(void)statusLogErrorWithFormat:(NSString*)aFormat
|
|
|
|
arguments:(va_list)arguments;
|
2000-03-20 15:50:51 +00:00
|
|
|
@end
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWStatisticsSupport)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setStatisticsStore:(GSWStatisticsStore*)statisticsStore;
|
2000-08-25 10:36:16 +00:00
|
|
|
-(NSDictionary*)statistics;//bycopy
|
2000-01-22 12:49:49 +00:00
|
|
|
-(GSWStatisticsStore*)statisticsStore;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (MonitorableApplication)
|
|
|
|
-(BOOL)monitoringEnabled;
|
|
|
|
-(int)activeSessionsCount;
|
|
|
|
-(int)minimumActiveSessionsCount;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setMinimumActiveSessionsCount:(int)aCount;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(BOOL)isRefusingNewSessions;
|
|
|
|
-(void)refuseNewSessions:(BOOL)flag;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)logToMonitorWithFormat:(NSString*)aFormat;
|
|
|
|
-(void)terminateAfterTimeInterval:(NSTimeInterval)aTimeInterval;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWResourceManagerSupport)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setResourceManager:(GSWResourceManager*)resourceManager;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(GSWResourceManager*)resourceManager;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (RequestDispatching)
|
|
|
|
-(GSWRequestHandler*)defaultRequestHandler;
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)setDefaultRequestHandler:(GSWRequestHandler*)handler;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)registerRequestHandler:(GSWRequestHandler*)handler
|
|
|
|
forKey:(NSString*)aKey;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(void)removeRequestHandlerForKey:(NSString*)requestHandlerKey;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
-(NSArray*)registeredRequestHandlerKeys;
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWRequestHandler*)requestHandlerForKey:(NSString*)aKey;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWRequestHandler*)handlerForRequest:(GSWRequest*)aRequest;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (UserDefaults)
|
|
|
|
+(NSArray*)loadFrameworks;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setLoadFrameworks:(NSArray*)frameworks;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(BOOL)isDebuggingEnabled;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setDebuggingEnabled:(BOOL)flag;
|
2000-03-20 15:50:51 +00:00
|
|
|
+(BOOL)isStatusDebuggingEnabled;//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setStatusDebuggingEnabled:(BOOL)flag;//NDFN
|
2000-01-22 12:49:49 +00:00
|
|
|
+(BOOL)autoOpenInBrowser;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setAutoOpenInBrowser:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(BOOL)isDirectConnectEnabled;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setDirectConnectEnabled:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)cgiAdaptorURL;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setCGIAdaptorURL:(NSString*)url;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(BOOL)isCachingEnabled;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setCachingEnabled:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)applicationBaseURL;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setApplicationBaseURL:(NSString*)baseURL;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)frameworksBaseURL;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setFrameworksBaseURL:(NSString*)baseURL;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)recordingPath;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setRecordingPath:(NSString*)path;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSArray*)projectSearchPath;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setProjectSearchPath:(NSArray*)pathArray;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(BOOL)isMonitorEnabled;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setMonitorEnabled:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)monitorHost;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setMonitorHost:(NSString*)hostName;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)SMTPHost;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setSMTPHost:(NSString*)hostName;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)adaptor;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setAdaptor:(NSString*)adaptorName;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(id)port;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setPort:(id)port;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(id)host;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setHost:(id)host;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(id)listenQueueSize;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setListenQueueSize:(id)aSize;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(id)workerThreadCount;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setWorkerThreadCount:(id)workerThreadCount;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSArray*)additionalAdaptors;
|
|
|
|
+(void)setAdditionalAdaptors:(NSArray*)adaptorList;
|
|
|
|
+(BOOL)includeCommentsInResponses;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setIncludeCommentsInResponses:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)componentRequestHandlerKey;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setComponentRequestHandlerKey:(NSString*)aKey;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)directActionRequestHandlerKey;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setDirectActionRequestHandlerKey:(NSString*)aKey;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(NSString*)resourceRequestHandlerKey;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setResourceRequestHandlerKey:(NSString*)aKey;
|
|
|
|
+(void)setSessionTimeOut:(NSNumber*)aTimeOut;
|
2002-07-04 11:01:56 +00:00
|
|
|
+(NSNumber*)sessionTimeOut;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setSessionTimeOutValue:(NSTimeInterval)aTimeOutValue;
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
+(NSTimeInterval)sessionTimeOutValue;
|
2000-03-20 15:50:51 +00:00
|
|
|
+(NSString*)debugSetConfigFilePath;//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)setDebugSetConfigFilePath:(NSString*)debugSetConfigFilePath;//NDFN
|
2002-05-14 11:28:50 +00:00
|
|
|
+(NSString*)saveResponsesPath;//NDFN
|
|
|
|
+(void)setSaveResponsesPath:(NSString*)saveResponsesPath;//NDFN
|
2002-10-12 11:37:42 +00:00
|
|
|
+(NSString*)defaultTemplateParser;//NDFN
|
|
|
|
+(void)setDefaultTemplateParser:(NSString*)defaultTemplateParser;//NDFN
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationInternals)
|
|
|
|
+(NSDictionary*)_webServerConfigDictionary;
|
|
|
|
+(Class)_applicationClass;
|
|
|
|
+(Class)_compiledApplicationClass;
|
|
|
|
+(GSWRequestHandler*)_componentRequestHandler;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationClassB)
|
|
|
|
+(id)defaultModelGroup;
|
|
|
|
+(id)_modelGroupFromBundles:(id)_bundles;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationClassC)
|
|
|
|
-(NSDictionary*)mainBundleInfoDictionary;
|
|
|
|
+(NSDictionary*)mainBundleInfoDictionary;
|
|
|
|
-(NSDictionary*)bundleInfo;
|
|
|
|
+(NSDictionary*)bundleInfo;
|
|
|
|
-(NSBundle*)mainBundle;
|
|
|
|
+(NSBundle*)mainBundle;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationClassD)
|
|
|
|
+(int)_garbageCollectionRepeatCount;
|
|
|
|
+(BOOL)_lockDefaultEditingContext;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)_setLockDefaultEditingContext:(BOOL)flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
+(id)_allowsConcurrentRequestHandling;
|
2002-08-04 18:00:11 +00:00
|
|
|
+(void)_setAllowsConcurrentRequestHandling:(id)unknown;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (GSWApplicationClassE)
|
|
|
|
+(int)_requestLimit;
|
|
|
|
+(int)_requestWindow;
|
|
|
|
+(BOOL)_multipleThreads;
|
|
|
|
+(BOOL)_multipleInstances;
|
|
|
|
+(void)_readLicenseParameters;
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@interface GSWApplication (NDFN)
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
-(id)propListWithResourceNamed:(NSString*)aName
|
|
|
|
ofType:(NSString*)aType
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
languages:(NSArray*)languages;
|
|
|
|
+(BOOL)createUnknownComponentClasses:(NSArray*)classes
|
|
|
|
superClassName:(NSString*)aSuperClassName;
|
|
|
|
+(void)addDynCreateClassName:(NSString*)aClassName
|
|
|
|
superClassName:(NSString*)aSuperClassName;
|
2000-01-22 12:49:49 +00:00
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
-(NSString*)pathForResourceNamed:(NSString*)aName
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
languages:(NSArray*)languages;
|
2000-01-22 12:49:49 +00:00
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
-(NSString*)pathForResourceNamed:(NSString*)aName
|
|
|
|
ofType:(NSString*)aType
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
languages:(NSArray*)languages;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
-(NSString*)urlForResourceNamed:(NSString*)aName
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
languages:(NSArray*)languages
|
|
|
|
request:(GSWRequest*)aRequest;
|
2000-01-22 12:49:49 +00:00
|
|
|
//NDFN
|
|
|
|
-(NSString*)stringForKey:(NSString*)key_
|
2002-08-04 18:00:11 +00:00
|
|
|
inTableNamed:(NSString*)aTableName
|
|
|
|
withDefaultValue:(NSString*)defaultValue
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
languages:(NSArray*)languages;
|
2000-01-22 12:49:49 +00:00
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
-(NSDictionary*)stringsTableNamed:(NSString*)aTableName
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
languages:(NSArray*)languages;
|
2000-01-22 12:49:49 +00:00
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
-(NSArray*)stringsTableArrayNamed:(NSString*)aTableName
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
languages:(NSArray*)languages;
|
2001-10-28 10:29:17 +00:00
|
|
|
//NDFN
|
|
|
|
-(NSArray*)filterLanguages:(NSArray*)languages;
|
2000-01-22 12:49:49 +00:00
|
|
|
@end
|
|
|
|
//====================================================================
|
|
|
|
/*
|
|
|
|
@interface GSWApplication (GSWDeprecatedAPI)
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWComponent*)pageWithName:(NSString*)aName; //OldFN
|
2000-01-22 12:49:49 +00:00
|
|
|
-(void)savePage:(GSWComponent*)page_;
|
|
|
|
-(GSWSession*)session;
|
|
|
|
-(GSWContext*)context;
|
|
|
|
-(GSWSession*)createSession;
|
|
|
|
-(GSWSession*)restoreSession;
|
|
|
|
-(void)saveSession:(GSWSession*)session_;
|
|
|
|
|
|
|
|
-(GSWResponse*)handleSessionCreationError;
|
|
|
|
-(GSWResponse*)handleSessionRestorationError;
|
|
|
|
-(GSWResponse*)handlePageRestorationError;
|
|
|
|
-(GSWResponse*)handleException:(NSException*)exception_;
|
|
|
|
|
|
|
|
-(GSWComponent*)restorePageForContextID:(NSString*)contextID_;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(NSString*)pathForResourceNamed:(NSString*)aName
|
|
|
|
ofType:(NSString*)aType;
|
|
|
|
-(NSString*)urlForResourceNamed:(NSString*)aName
|
|
|
|
ofType:(NSString*)aType;
|
2000-01-22 12:49:49 +00:00
|
|
|
-(NSString*)stringForKey:(NSString*)key_
|
|
|
|
inTableNamed:(NSString*)table_
|
|
|
|
withDefaultValue:(NSString*)defaultValue_;
|
2002-08-04 18:00:11 +00:00
|
|
|
-(GSWResponse*)handleRequest:(GSWRequest*)aRequest;
|
|
|
|
-(GSWDynamicElement*)dynamicElementWithName:(NSString*)aName
|
2000-01-22 12:49:49 +00:00
|
|
|
associations:(NSDictionary*)associations_
|
|
|
|
template:(GSWElement*)templateElement_; //OldFN
|
|
|
|
@end
|
|
|
|
*/
|
|
|
|
extern GSWApplication* GSWApp;
|
|
|
|
#endif //_GSWApplication_h__
|