2002-03-06 23:13:23 +00:00
|
|
|
|
/** GSWApplication.m - <title>GSWeb: Class GSWApplication</title>
|
2002-08-04 18:00:11 +00:00
|
|
|
|
|
2003-01-19 15:33:07 +00:00
|
|
|
|
Copyright (C) 1999-2003 Free Software Foundation, Inc.
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
2002-03-06 23:13:23 +00:00
|
|
|
|
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
2000-01-22 12:49:49 +00:00
|
|
|
|
Date: Jan 1999
|
2002-03-06 23:13:23 +00:00
|
|
|
|
|
|
|
|
|
$Revision$
|
|
|
|
|
$Date$
|
2002-11-27 20:25:22 +00:00
|
|
|
|
$Id$
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
|
|
This file is part of the GNUstep Web Library.
|
|
|
|
|
|
2002-03-06 23:13:23 +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-03-06 23:13:23 +00:00
|
|
|
|
</license>
|
|
|
|
|
**/
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
2003-03-21 14:32:57 +00:00
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
|
|
RCS_ID("$Id$")
|
2003-01-19 15:33:07 +00:00
|
|
|
|
|
2003-01-22 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/Makefile.postamble:
o use $(LN_S) -f in install-WO-headers
o added $(MKDIRS) $(GNUSTEP_HEADERS)/$(GSWExtensions_wo_HEADER_FILES_INSTALL_DIR);
* GSWExtensionsGSW.framework/Makefile.postamble: use $(LN_S) -f in install-WO-headers
2003-01-20 David Ayers <d.ayers@inode.at>
* Makefile.postamble
o added support for make gswnames=(gsw,wo,all) (corrected
typo)
o reinserted support for $(INSTALL_ROOT_DIR)
* config.h.in
o added HAVE_GDL2
* configure
o added support for --with-gswnames=(gsw,wo,all)
o set LIBWRAP during configure
o added config.mak.in as configurable file
* configure.ac
o (see configure)
* config.mak: removed (replaced by config.mak.in)
* config.mak.in: new file
o added support for make gswnames=(gsw,wo,all)
* gsweb.make.in
o add GSANTLR as auxiliary lib
o add gsweb libs to AUXILIARY_GSW_LIBS
o include correct extensions for GSW/WO-libs
* gsweb_wo.make: new file
* GSWeb/GSWConfig.h
o changed support for GSWEB_WONAMES
o conditionally import file GSWWOCompatiblity
here instead of in GSWeb.h
* GSWeb/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o removed reference to unused files:
GSWeb.m, GSWWOCompatibility.m
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWeb/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
o remove Makefile.preamble during distclean
* GSWeb/Makefile.preamble.in
o fixed typo
* GSWeb/GSWeb.h
o moved GSW/WO-Name-mapping to GSWWOCompatibility.h
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWeb.m: removed
* GSWeb/GSWWOCompatibility.h
o changed GSWEB_WONAMES handling
o removed hybrid namespace WO subclasses
o moved & reorganized GSW/WO-Name-mapping from GSWeb.h
o inlucluded missing GSW/WO-Name-mappings
* GSWeb/GSWWOCompatibility.m: removed
* GSWeb/*.m
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWApplication.m
o remove special GSW/WO handling of WOApp
* GSWeb/WebObject/WO*: removed
* GSWeb/WebObject/WebObjects
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWExtensions/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWExtensions/Makefile.preamble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
* GSWExtensions/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
* GSWExtensions/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtWOCompatibility.h"
o replaces inclusions of
<GSWExtensions/file.h> with "file.h"
* GSWExtensions/GSWExtensions.h: new file
* GSWExtensions/WOExtensions.h: new file
* GSWExtensions/GSWExtWOCompatibility.h: new file
* GSWExtensionsGSW/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new file GSWExtGSWWOCompatibility.h
o added support to create WO header files
* GSWExtensionsGSW/Makefile.pramble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
o removed GSWExtensions from ADDITIONAL_LIB_DIRS
* GSWExtensionsGSW/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtGSWWOCompatibility.h"
* GSWExtensions/GSWExtGSWWOCompatibility.h: new file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@15675 72102866-910b-0410-8b05-ffd578937521
2003-01-22 12:24:26 +00:00
|
|
|
|
#include "GSWeb.h"
|
|
|
|
|
|
2000-10-04 22:19:43 +00:00
|
|
|
|
#if GDL2 // GDL2 implementation
|
|
|
|
|
#include <EOAccess/EOModelGroup.h>
|
|
|
|
|
#endif
|
2002-08-06 22:06:41 +00:00
|
|
|
|
#ifdef TCSDB
|
|
|
|
|
#include <TCSimpleDB/TCSimpleDB.h>
|
|
|
|
|
#endif
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#include "stacktrace.h"
|
|
|
|
|
#include "attach.h"
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
Monitor Refresh (or View Details):
|
|
|
|
|
application lock
|
|
|
|
|
GSWStatisticsStore statistics
|
|
|
|
|
application unlock
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
2000-02-06 16:32:26 +00:00
|
|
|
|
|
|
|
|
|
@interface GSWApplication (GSWApplicationPrivate)
|
|
|
|
|
- (void)_setPool:(NSAutoreleasePool *)pool;
|
|
|
|
|
@end
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//====================================================================
|
|
|
|
|
GSWApplication* GSWApp=nil;
|
|
|
|
|
NSDictionary* globalAppDefaultOptions = nil;
|
|
|
|
|
NSString* globalApplicationClassName=nil;
|
|
|
|
|
NSMutableDictionary* localDynCreateClassNames=nil;
|
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
|
|
|
|
int GSWebNamingConv=GSWNAMES_INDEX;
|
|
|
|
|
BOOL WOStrictFlag=NO;
|
2003-03-21 14:32:57 +00:00
|
|
|
|
NSString* GSWPageNotFoundException=@"GSWPageNotFoundException";
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
void GSWApplicationDebugSetChange()
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
static NSString* prevStateString=nil;
|
|
|
|
|
NSProcessInfo* processInfo=[NSProcessInfo processInfo];
|
|
|
|
|
NSMutableSet* debugSet=[processInfo debugSet];
|
|
|
|
|
NSString* debugSetConfigFilePath=nil;
|
|
|
|
|
NSString* newStateString=nil;
|
|
|
|
|
BOOL change=NO;
|
2002-12-02 22:00:20 +00:00
|
|
|
|
|
|
|
|
|
debugSetConfigFilePath = [GSWApplication debugSetConfigFilePath];
|
|
|
|
|
NSDebugFLog(@"debugSetConfigFilePath=%@", debugSetConfigFilePath);
|
|
|
|
|
|
|
|
|
|
if (debugSetConfigFilePath)
|
|
|
|
|
newStateString = [NSString stringWithContentsOfFile:
|
|
|
|
|
[GSWApplication debugSetConfigFilePath]];
|
|
|
|
|
|
|
|
|
|
NSDebugFLog(@"debugSet=%@", debugSet);
|
|
|
|
|
NSDebugFLog(@"newStateString=%@", newStateString);
|
2003-06-25 15:17:29 +00:00
|
|
|
|
NSDebugFLog(@"prevStateString=%@", prevStateString);
|
2002-12-02 22:00:20 +00:00
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (newStateString)
|
2002-12-02 22:00:20 +00:00
|
|
|
|
change =! [newStateString isEqualToString: prevStateString];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
else if (prevStateString)
|
2002-12-02 22:00:20 +00:00
|
|
|
|
change =! [prevStateString isEqualToString: newStateString];
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugFLog(@"change=%d",change);
|
|
|
|
|
|
|
|
|
|
if (change)
|
|
|
|
|
{
|
|
|
|
|
NSArray* pList=[newStateString propertyList];
|
|
|
|
|
[debugSet removeAllObjects];
|
|
|
|
|
if (pList && [pList isKindOfClass:[NSArray class]])
|
|
|
|
|
{
|
|
|
|
|
int count=[pList count];
|
|
|
|
|
int i=0;
|
|
|
|
|
for(i=0;i<count;i++)
|
|
|
|
|
{
|
|
|
|
|
[debugSet addObject:[pList objectAtIndex:i]];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
ASSIGN(prevStateString,newStateString);
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
|
void GSWApplicationSetDebugSetOption(NSString* opt)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSProcessInfo* processInfo=nil;
|
|
|
|
|
processInfo=[NSProcessInfo processInfo];
|
|
|
|
|
if ([opt isEqualToString:@"all"])
|
|
|
|
|
{
|
|
|
|
|
NSDebugFLog(@"Adding All DebugOptions");
|
|
|
|
|
[[processInfo debugSet] addObject:@"dflt"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"GSWebFn"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"seriousError"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"exception"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"error"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"gswdync"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"low"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"gswcomponents"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"associations"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"sessions"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"bundles"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"requests"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"resmanager"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"options"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"info"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"trace"];
|
|
|
|
|
/*
|
|
|
|
|
//[NSObject enableDoubleReleaseCheck:YES];
|
|
|
|
|
[NSPort setDebug:255];
|
|
|
|
|
behavior_set_debug(1);
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
else if ([opt isEqualToString:@"most"])
|
|
|
|
|
{
|
|
|
|
|
NSDebugFLog(@"Adding Most DebugOptions");
|
|
|
|
|
[[processInfo debugSet] addObject:@"dflt"];
|
|
|
|
|
// [[processInfo debugSet] addObject:@"GSWebFn"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"seriousError"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"exception"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"error"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"gswdync"];
|
|
|
|
|
// [[processInfo debugSet] addObject:@"low"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"gswcomponents"];
|
|
|
|
|
|
|
|
|
|
[[processInfo debugSet] addObject:@"associations"];
|
|
|
|
|
// [[processInfo debugSet] addObject:@"sessions"];
|
|
|
|
|
// [[processInfo debugSet] addObject:@"bundles"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"requests"];
|
|
|
|
|
// [[processInfo debugSet] addObject:@"resmanager"];
|
|
|
|
|
// [[processInfo debugSet] addObject:@"options"];
|
|
|
|
|
[[processInfo debugSet] addObject:@"info"];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
[[processInfo debugSet] addObject:opt];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
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
|
|
|
|
// Main function
|
2002-08-04 18:00:11 +00:00
|
|
|
|
int GSWApplicationMainReal(NSString* applicationClassName,
|
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
|
|
|
|
int argc,
|
|
|
|
|
const char *argv[])
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
Class applicationClass=Nil;
|
|
|
|
|
int result=0;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSArray* args=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//call NSBundle Start:_usesFastJavaBundleSetup
|
|
|
|
|
//call :NSBundle Start:_setUsesFastJavaBundleSetup:YES
|
|
|
|
|
//call NSBundle mainBundle
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSProcessInfo* processInfo=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NSString* envGNUstepStringEncoding=nil;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAutoreleasePool *appAutoreleasePool=nil;
|
2000-02-06 16:32:26 +00:00
|
|
|
|
|
|
|
|
|
appAutoreleasePool = [NSAutoreleasePool new];
|
2003-02-01 19:07:25 +00:00
|
|
|
|
GSWLogMemCF("New NSAutoreleasePool: %p",appAutoreleasePool);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
/*
|
|
|
|
|
//TODO
|
|
|
|
|
DebugInstall("/dvlp/projects/app/Source/app.gswa/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps/app_server");
|
|
|
|
|
DebugEnableBreakpoints();
|
|
|
|
|
*/
|
2002-08-04 18:00:11 +00:00
|
|
|
|
processInfo=[NSProcessInfo processInfo];
|
|
|
|
|
envGNUstepStringEncoding=[[processInfo environment]
|
|
|
|
|
objectForKey:@"GNUSTEP_STRING_ENCODING"];
|
|
|
|
|
NSCAssert(envGNUstepStringEncoding,
|
|
|
|
|
@"GNUSTEP_STRING_ENCODING environement variable is not defined !");
|
|
|
|
|
NSCAssert([NSString defaultCStringEncoding]!=NSASCIIStringEncoding,
|
|
|
|
|
@"NSString defaultCStringEncoding is NSASCIIStringEncoding. Please define GNUSTEP_STRING_ENCODING environement variable to better one !");
|
|
|
|
|
if (!envGNUstepStringEncoding
|
|
|
|
|
|| [NSString defaultCStringEncoding]==NSASCIIStringEncoding)
|
|
|
|
|
{
|
|
|
|
|
result=-1;
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (result>=0)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
|
|
|
|
|
if (defaults)
|
|
|
|
|
{
|
|
|
|
|
NSDictionary* args=[defaults volatileDomainForName:NSArgumentDomain];
|
|
|
|
|
if (args && [args count]>0)
|
|
|
|
|
{
|
|
|
|
|
NSMutableDictionary* newArgs=[NSMutableDictionary dictionary];
|
|
|
|
|
NSEnumerator* argEnum=nil;
|
|
|
|
|
NSString* argKey=nil;
|
|
|
|
|
id argValue=nil;
|
|
|
|
|
argEnum=[args keyEnumerator];
|
|
|
|
|
while ((argKey = [argEnum nextObject]))
|
|
|
|
|
{
|
|
|
|
|
argValue=[args objectForKey:argKey];
|
|
|
|
|
if ([argKey hasPrefix:@"-GSW"])
|
|
|
|
|
argKey = [argKey substringFromIndex:1];
|
|
|
|
|
[newArgs setObject:argValue
|
|
|
|
|
forKey:argKey];
|
|
|
|
|
};
|
2002-11-27 20:25:22 +00:00
|
|
|
|
NSDebugFLog(@"NSArgumentDomain: %@ Args: %@",NSArgumentDomain,newArgs);
|
|
|
|
|
[defaults removeVolatileDomainForName:NSArgumentDomain];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[defaults setVolatileDomain:newArgs
|
|
|
|
|
forName:NSArgumentDomain];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
if (!localDynCreateClassNames)
|
|
|
|
|
localDynCreateClassNames=[NSMutableDictionary new];
|
|
|
|
|
if (!globalAppDefaultOptions)
|
|
|
|
|
{
|
|
|
|
|
NSDictionary* defaultsOptions=nil;
|
|
|
|
|
globalAppDefaultOptions=[[GSWApplication bundleInfo] objectForKey:@"defaults"];
|
|
|
|
|
NSDebugFLLog(@"options",@"globalAppDefaultOptions=%@",globalAppDefaultOptions);
|
|
|
|
|
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWebNamingConv=%d",GSWebNamingConv);
|
|
|
|
|
NSCAssert1((GSWebNamingConv==WONAMES_INDEX || GSWebNamingConv==GSWNAMES_INDEX),
|
|
|
|
|
@"GSWebNamingConv=%d",GSWebNamingConv);
|
|
|
|
|
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWClassName_DefaultAdaptor -> %@",
|
|
|
|
|
GSWClassName_DefaultAdaptor[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_Adaptor -> %@",
|
|
|
|
|
GSWOPT_Adaptor[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_AdditionalAdaptors -> %@",
|
|
|
|
|
GSWOPT_AdditionalAdaptors[GSWebNamingConv]);
|
2003-06-25 15:17:29 +00:00
|
|
|
|
NSDebugFLLog(@"options",@"GSWClassName_DefaultContext -> %@",
|
|
|
|
|
GSWClassName_DefaultContext[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_Context -> %@",
|
|
|
|
|
GSWOPT_Context[GSWebNamingConv]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_ApplicationBaseURL_WO -> %@",
|
|
|
|
|
GSWOPTVALUE_ApplicationBaseURL_WO);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_ApplicationBaseURL_GSWEB -> %@",
|
|
|
|
|
GSWOPTVALUE_ApplicationBaseURL_GSWEB);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_ApplicationBaseURL -> %@",
|
|
|
|
|
GSWOPT_ApplicationBaseURL[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_AutoOpenInBrowser -> %@",
|
|
|
|
|
GSWOPTVALUE_AutoOpenInBrowser);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_AutoOpenInBrowser -> %@",
|
|
|
|
|
GSWOPT_AutoOpenInBrowser[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_CGIAdaptorURL_WO -> %@",
|
|
|
|
|
GSWOPTVALUE_CGIAdaptorURL_WO);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_CGIAdaptorURL_GSWEB -> %@",
|
|
|
|
|
GSWOPTVALUE_CGIAdaptorURL_GSWEB);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_CGIAdaptorURL -> %@",
|
|
|
|
|
GSWOPT_CGIAdaptorURL[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_CachingEnabled -> %@",
|
|
|
|
|
GSWOPTVALUE_CachingEnabled);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_CachingEnabled -> %@",
|
|
|
|
|
GSWOPT_CachingEnabled[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWComponentRequestHandlerKey -> %@",
|
|
|
|
|
GSWComponentRequestHandlerKey[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_ComponentRequestHandlerKey -> %@",
|
|
|
|
|
GSWOPT_ComponentRequestHandlerKey[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_DebuggingEnabled -> %@",
|
|
|
|
|
GSWOPTVALUE_DebuggingEnabled);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_DebuggingEnabled -> %@",
|
|
|
|
|
GSWOPT_DebuggingEnabled[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_StatusDebuggingEnabled -> %@",
|
|
|
|
|
GSWOPTVALUE_StatusDebuggingEnabled);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_StatusDebuggingEnabled -> %@",
|
|
|
|
|
GSWOPT_StatusDebuggingEnabled[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWDirectActionRequestHandlerKey -> %@",
|
|
|
|
|
GSWDirectActionRequestHandlerKey[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_DirectActionRequestHandlerKey -> %@",
|
|
|
|
|
GSWOPT_DirectActionRequestHandlerKey[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_DirectConnectEnabled -> %@",
|
|
|
|
|
GSWOPTVALUE_DirectConnectEnabled);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_DirectConnectEnabled -> %@",
|
|
|
|
|
GSWOPT_DirectConnectEnabled[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_FrameworksBaseURL -> %@",
|
|
|
|
|
GSWOPTVALUE_FrameworksBaseURL);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_FrameworksBaseURL -> %@",
|
|
|
|
|
GSWOPT_FrameworksBaseURL[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_IncludeCommentsInResponse -> %@",
|
|
|
|
|
GSWOPTVALUE_IncludeCommentsInResponse);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_IncludeCommentsInResponse -> %@",
|
|
|
|
|
GSWOPT_IncludeCommentsInResponse[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_ListenQueueSize -> %@",
|
|
|
|
|
GSWOPTVALUE_ListenQueueSize);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_ListenQueueSize -> %@",
|
|
|
|
|
GSWOPT_ListenQueueSize[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_LoadFrameworks -> %@",
|
|
|
|
|
GSWOPT_LoadFrameworks[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_MonitorEnabled -> %@",
|
|
|
|
|
GSWOPTVALUE_MonitorEnabled);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_MonitorEnabled -> %@",
|
|
|
|
|
GSWOPT_MonitorEnabled[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_MonitorHost -> %@",
|
|
|
|
|
GSWOPTVALUE_MonitorHost);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_MonitorHost -> %@",
|
|
|
|
|
GSWOPT_MonitorHost[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_Port -> %@",
|
|
|
|
|
GSWOPTVALUE_Port);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_Port -> %@",
|
|
|
|
|
GSWOPT_Port[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWResourceRequestHandlerKey -> %@",
|
|
|
|
|
GSWResourceRequestHandlerKey[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_ResourceRequestHandlerKey -> %@",
|
|
|
|
|
GSWOPT_ResourceRequestHandlerKey[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_SMTPHost -> %@",
|
|
|
|
|
GSWOPTVALUE_SMTPHost);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_SMTPHost -> %@",
|
|
|
|
|
GSWOPT_SMTPHost[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_SessionTimeOut -> %@",
|
|
|
|
|
GSWOPTVALUE_SessionTimeOut);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_SessionTimeOut -> %@",
|
|
|
|
|
GSWOPT_SessionTimeOut[GSWebNamingConv]);
|
|
|
|
|
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_WorkerThreadCount -> %@",
|
|
|
|
|
GSWOPTVALUE_WorkerThreadCount);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_WorkerThreadCount -> %@",
|
|
|
|
|
GSWOPT_WorkerThreadCount[GSWebNamingConv]);
|
|
|
|
|
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_MultiThreadEnabled -> %@",
|
|
|
|
|
GSWOPTVALUE_MultiThreadEnabled);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_MultiThreadEnabled -> %@",
|
|
|
|
|
GSWOPT_MultiThreadEnabled);
|
|
|
|
|
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPT_AdaptorHost -> %@",
|
|
|
|
|
GSWOPT_AdaptorHost[GSWebNamingConv]);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_AdaptorHost -> %@",
|
|
|
|
|
GSWOPTVALUE_AdaptorHost);
|
|
|
|
|
NSDebugFLLog(@"options",@"GSWOPTVALUE_SaveResponsesPath -> %@",
|
|
|
|
|
GSWOPTVALUE_SaveResponsesPath);
|
2002-10-12 11:37:42 +00:00
|
|
|
|
NSDebugFLLog(@"options",@"DefaultTemplateParser -> %@",
|
|
|
|
|
GSWOPTVALUE_DefaultTemplateParser);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
|
|
|
|
|
defaultsOptions =
|
|
|
|
|
[NSDictionary dictionaryWithObjectsAndKeys:
|
|
|
|
|
GSWClassName_DefaultAdaptor[GSWebNamingConv], GSWOPT_Adaptor[GSWebNamingConv],
|
|
|
|
|
[NSArray array], GSWOPT_AdditionalAdaptors[GSWebNamingConv],
|
2003-06-25 15:17:29 +00:00
|
|
|
|
(GSWebNamingConv==WONAMES_INDEX ? GSWOPTVALUE_ApplicationBaseURL_WO : GSWOPTVALUE_ApplicationBaseURL_GSWEB), GSWOPT_ApplicationBaseURL[GSWebNamingConv],
|
|
|
|
|
GSWClassName_DefaultContext[GSWebNamingConv], GSWOPT_Context[GSWebNamingConv],
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWOPTVALUE_AutoOpenInBrowser, GSWOPT_AutoOpenInBrowser[GSWebNamingConv],
|
|
|
|
|
(GSWebNamingConv==WONAMES_INDEX ? GSWOPTVALUE_CGIAdaptorURL_WO : GSWOPTVALUE_CGIAdaptorURL_GSWEB),
|
|
|
|
|
GSWOPT_CGIAdaptorURL[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_CachingEnabled, GSWOPT_CachingEnabled[GSWebNamingConv],
|
|
|
|
|
GSWComponentRequestHandlerKey[GSWebNamingConv], GSWOPT_ComponentRequestHandlerKey[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_DebuggingEnabled, GSWOPT_DebuggingEnabled[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_StatusDebuggingEnabled, GSWOPT_StatusDebuggingEnabled[GSWebNamingConv],
|
|
|
|
|
GSWDirectActionRequestHandlerKey[GSWebNamingConv],GSWOPT_DirectActionRequestHandlerKey[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_DirectConnectEnabled, GSWOPT_DirectConnectEnabled[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_FrameworksBaseURL, GSWOPT_FrameworksBaseURL[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_IncludeCommentsInResponse, GSWOPT_IncludeCommentsInResponse[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_ListenQueueSize, GSWOPT_ListenQueueSize[GSWebNamingConv],
|
|
|
|
|
[NSArray array], GSWOPT_LoadFrameworks[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_MonitorEnabled, GSWOPT_MonitorEnabled[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_MonitorHost, GSWOPT_MonitorHost[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_Port, GSWOPT_Port[GSWebNamingConv],
|
|
|
|
|
GSWResourceRequestHandlerKey[GSWebNamingConv], GSWOPT_ResourceRequestHandlerKey[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_SMTPHost, GSWOPT_SMTPHost[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_SessionTimeOut, GSWOPT_SessionTimeOut[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_WorkerThreadCount, GSWOPT_WorkerThreadCount[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_MultiThreadEnabled, GSWOPT_MultiThreadEnabled,
|
|
|
|
|
GSWOPTVALUE_AdaptorHost, GSWOPT_AdaptorHost[GSWebNamingConv],
|
|
|
|
|
GSWOPTVALUE_SaveResponsesPath, GSWOPT_SaveResponsesPath[GSWebNamingConv],
|
2002-10-12 11:37:42 +00:00
|
|
|
|
GSWOPTVALUE_DefaultTemplateParser, GSWOPT_DefaultTemplateParser[GSWebNamingConv],
|
2002-08-04 18:00:11 +00:00
|
|
|
|
nil, nil];
|
|
|
|
|
NSDebugFLLog(@"options",@"_globalAppDefaultOptions=%@",globalAppDefaultOptions);
|
|
|
|
|
globalAppDefaultOptions=[NSDictionary dictionaryWithDictionary:globalAppDefaultOptions
|
|
|
|
|
andDefaultEntriesFromDictionary:defaultsOptions];
|
|
|
|
|
NSDebugFLLog(@"options",@"_globalAppDefaultOptions=%@",globalAppDefaultOptions);
|
|
|
|
|
};
|
|
|
|
|
[defaults registerDefaults:globalAppDefaultOptions];
|
|
|
|
|
|
|
|
|
|
args=[processInfo arguments];
|
|
|
|
|
{
|
|
|
|
|
int i=0;
|
|
|
|
|
int count=[args count];
|
|
|
|
|
NSString* opt=nil;
|
|
|
|
|
NSString* debugOpt=nil;
|
|
|
|
|
for(i=0;i<count;i++)
|
|
|
|
|
{
|
|
|
|
|
debugOpt=nil;
|
|
|
|
|
opt=[args objectAtIndex:i];
|
|
|
|
|
if ([opt hasPrefix:@"--GSWebDebug="])
|
2002-09-22 14:27:04 +00:00
|
|
|
|
debugOpt=[opt stringByDeletingPrefix:@"--GSWebDebug="];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
else if ([opt hasPrefix:@"-GSWebDebug="])
|
2002-09-22 14:27:04 +00:00
|
|
|
|
debugOpt=[opt stringByDeletingPrefix:@"-GSWebDebug="];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
else if ([opt hasPrefix:@"GSWebDebug="])
|
2002-09-22 14:27:04 +00:00
|
|
|
|
debugOpt=[opt stringByDeletingPrefix:@"GSWebDebug="];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (debugOpt)
|
|
|
|
|
GSWApplicationSetDebugSetOption(debugOpt);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
//TODO
|
|
|
|
|
if (applicationClassName && [applicationClassName length]>0)
|
|
|
|
|
ASSIGNCOPY(globalApplicationClassName,applicationClassName);
|
|
|
|
|
GSWApplicationDebugSetChange();
|
|
|
|
|
applicationClass=[GSWApplication _applicationClass];
|
2003-01-19 15:33:07 +00:00
|
|
|
|
NSDebugFLog(@"=======");
|
|
|
|
|
NSDebugFLog(@"applicationClass: %@",applicationClass);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!applicationClass)
|
|
|
|
|
{
|
|
|
|
|
NSCAssert(NO,@"!applicationClass");
|
|
|
|
|
//TODO error
|
|
|
|
|
result=-1;
|
|
|
|
|
};
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (result>=0)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSArray* frameworks=[applicationClass loadFrameworks];
|
|
|
|
|
NSDebugFLog(@"LOAD Frameworks frameworks=%@",frameworks);
|
|
|
|
|
if (frameworks)
|
|
|
|
|
{
|
|
|
|
|
NSBundle* bundle=nil;
|
|
|
|
|
int i=0;
|
|
|
|
|
BOOL loadResult=NO;
|
|
|
|
|
NSString* GNUstepRoot=[[[NSProcessInfo processInfo]environment]
|
|
|
|
|
objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
|
|
|
|
|
NSDebugFLLog(@"bundles",@"GNUstepRoot=%@",GNUstepRoot);
|
|
|
|
|
// NSDebugFLLog(@"bundles",@"[[NSProcessInfo processInfo]environment]=%@",[[NSProcessInfo processInfo]environment]);
|
|
|
|
|
NSDebugFLLog(@"bundles",@"[NSProcessInfo processInfo]=%@",
|
|
|
|
|
[NSProcessInfo processInfo]);
|
|
|
|
|
for(i=0;i<[frameworks count];i++)
|
|
|
|
|
{
|
|
|
|
|
NSString* bundlePath=[frameworks objectAtIndex:i];
|
|
|
|
|
NSDebugFLLog(@"bundles",@"bundlePath=%@",bundlePath);
|
|
|
|
|
//TODO
|
|
|
|
|
NSDebugFLLog(@"bundles",@"GSFrameworkPSuffix=%@",GSFrameworkPSuffix);
|
|
|
|
|
bundlePath=[NSString stringWithFormat:@"%@/Library/Frameworks/%@%@",GNUstepRoot,bundlePath,GSFrameworkPSuffix];
|
|
|
|
|
NSDebugFLLog(@"bundles",@"bundlePath=%@",bundlePath);
|
|
|
|
|
bundle=[NSBundle bundleWithPath:bundlePath];
|
|
|
|
|
NSDebugFLLog(@"bundles",@"bundle=%@",bundle);
|
|
|
|
|
loadResult=[bundle load];
|
|
|
|
|
NSDebugFLog(@"_bundlePath %@ loadResult=%s",bundlePath,(loadResult ? "YES" : "NO"));
|
|
|
|
|
if (!loadResult)
|
|
|
|
|
{
|
|
|
|
|
result=-1;
|
|
|
|
|
ExceptionRaise(@"GSWApplication",@"Can't load framework %@",
|
|
|
|
|
bundlePath);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2003-04-09 12:03:17 +00:00
|
|
|
|
NSDebugFLLog(@"bundles",@"[NSBundle allBundles] pathes=%@",[[NSBundle allBundles] valueForKey:@"resourcePath"]);
|
|
|
|
|
NSDebugFLLog(@"bundles",@"[NSBundle allFrameworks] pathes=%@",[[NSBundle allFrameworks] valueForKey:@"resourcePath"]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (result>=0)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NS_DURING
|
|
|
|
|
{
|
|
|
|
|
id app=[applicationClass new];
|
|
|
|
|
if (app)
|
|
|
|
|
result=1;
|
|
|
|
|
else
|
|
|
|
|
result=-1;
|
|
|
|
|
};
|
|
|
|
|
// Make sure we pass all exceptions back to the requestor.
|
|
|
|
|
NS_HANDLER
|
|
|
|
|
{
|
|
|
|
|
NSLog(@"Can't create Application (Class:%@)- %@ %@ Name:%@ Reason:%@\n",
|
|
|
|
|
applicationClass,
|
|
|
|
|
localException,
|
|
|
|
|
[localException description],
|
|
|
|
|
[localException name],
|
|
|
|
|
[localException reason]);
|
|
|
|
|
result=-1;
|
|
|
|
|
}
|
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
};
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugLog(@"result=%d",result);
|
2003-01-22 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/Makefile.postamble:
o use $(LN_S) -f in install-WO-headers
o added $(MKDIRS) $(GNUSTEP_HEADERS)/$(GSWExtensions_wo_HEADER_FILES_INSTALL_DIR);
* GSWExtensionsGSW.framework/Makefile.postamble: use $(LN_S) -f in install-WO-headers
2003-01-20 David Ayers <d.ayers@inode.at>
* Makefile.postamble
o added support for make gswnames=(gsw,wo,all) (corrected
typo)
o reinserted support for $(INSTALL_ROOT_DIR)
* config.h.in
o added HAVE_GDL2
* configure
o added support for --with-gswnames=(gsw,wo,all)
o set LIBWRAP during configure
o added config.mak.in as configurable file
* configure.ac
o (see configure)
* config.mak: removed (replaced by config.mak.in)
* config.mak.in: new file
o added support for make gswnames=(gsw,wo,all)
* gsweb.make.in
o add GSANTLR as auxiliary lib
o add gsweb libs to AUXILIARY_GSW_LIBS
o include correct extensions for GSW/WO-libs
* gsweb_wo.make: new file
* GSWeb/GSWConfig.h
o changed support for GSWEB_WONAMES
o conditionally import file GSWWOCompatiblity
here instead of in GSWeb.h
* GSWeb/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o removed reference to unused files:
GSWeb.m, GSWWOCompatibility.m
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWeb/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
o remove Makefile.preamble during distclean
* GSWeb/Makefile.preamble.in
o fixed typo
* GSWeb/GSWeb.h
o moved GSW/WO-Name-mapping to GSWWOCompatibility.h
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWeb.m: removed
* GSWeb/GSWWOCompatibility.h
o changed GSWEB_WONAMES handling
o removed hybrid namespace WO subclasses
o moved & reorganized GSW/WO-Name-mapping from GSWeb.h
o inlucluded missing GSW/WO-Name-mappings
* GSWeb/GSWWOCompatibility.m: removed
* GSWeb/*.m
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWApplication.m
o remove special GSW/WO handling of WOApp
* GSWeb/WebObject/WO*: removed
* GSWeb/WebObject/WebObjects
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWExtensions/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWExtensions/Makefile.preamble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
* GSWExtensions/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
* GSWExtensions/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtWOCompatibility.h"
o replaces inclusions of
<GSWExtensions/file.h> with "file.h"
* GSWExtensions/GSWExtensions.h: new file
* GSWExtensions/WOExtensions.h: new file
* GSWExtensions/GSWExtWOCompatibility.h: new file
* GSWExtensionsGSW/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new file GSWExtGSWWOCompatibility.h
o added support to create WO header files
* GSWExtensionsGSW/Makefile.pramble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
o removed GSWExtensions from ADDITIONAL_LIB_DIRS
* GSWExtensionsGSW/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtGSWWOCompatibility.h"
* GSWExtensions/GSWExtGSWWOCompatibility.h: new file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@15675 72102866-910b-0410-8b05-ffd578937521
2003-01-22 12:24:26 +00:00
|
|
|
|
printf("result=%d\n",result);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (result>=0 && GSWApp)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
[GSWApp _setPool:[NSAutoreleasePool new]];
|
2003-04-09 12:03:17 +00:00
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[GSWApp run];
|
2003-04-09 12:03:17 +00:00
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
DESTROY(GSWApp);
|
|
|
|
|
};
|
2003-02-01 19:07:25 +00:00
|
|
|
|
GSWLogMemCF("Destroy NSAutoreleasePool: %p",appAutoreleasePool);
|
2000-02-12 13:22:07 +00:00
|
|
|
|
DESTROY(appAutoreleasePool);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
return result;
|
|
|
|
|
};
|
|
|
|
|
|
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
|
|
|
|
//====================================================================
|
|
|
|
|
// Main function (for WO compatibility)
|
|
|
|
|
int WOApplicationMain(NSString* applicationClassName,
|
|
|
|
|
int argc,
|
|
|
|
|
const char *argv[])
|
|
|
|
|
{
|
|
|
|
|
GSWebNamingConv=WONAMES_INDEX;
|
|
|
|
|
return GSWApplicationMainReal(applicationClassName,argc,argv);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
// Main function (GSWeb)
|
|
|
|
|
int GSWApplicationMain(NSString* applicationClassName,
|
|
|
|
|
int argc,
|
|
|
|
|
const char *argv[])
|
|
|
|
|
{
|
|
|
|
|
GSWebNamingConv=GSWNAMES_INDEX;
|
|
|
|
|
return GSWApplicationMainReal(applicationClassName,argc,argv);
|
|
|
|
|
};
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication
|
|
|
|
|
|
2000-02-06 16:32:26 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
- (void)_setPool:(NSAutoreleasePool *)pool
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_globalAutoreleasePool = pool;
|
2000-02-06 16:32:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(id)init
|
|
|
|
|
{
|
|
|
|
|
id ret=[[self superclass]init];
|
|
|
|
|
[GSWAssociation addLogHandlerClasse:[self class]];
|
|
|
|
|
return ret;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(void)dealloc
|
|
|
|
|
{
|
|
|
|
|
[GSWAssociation removeLogHandlerClasse:[self class]];
|
|
|
|
|
DESTROY(localDynCreateClassNames);
|
|
|
|
|
DESTROY(globalAppDefaultOptions);
|
|
|
|
|
[[self superclass]dealloc];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------------
|
|
|
|
|
//init
|
|
|
|
|
|
|
|
|
|
-(id)init
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSUserDefaults* standardUserDefaults=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if ((self=[super init]))
|
|
|
|
|
{
|
|
|
|
|
_timeOut=2*60*60;
|
|
|
|
|
// context=nil;//deprecated
|
|
|
|
|
_selfLock=[NSRecursiveLock new];
|
|
|
|
|
_globalLock=[NSLock new];
|
2003-04-09 12:03:17 +00:00
|
|
|
|
|
|
|
|
|
NSDebugMLLog(@"application",@"GSCurrentThreadDictionary()=%@",GSCurrentThreadDictionary());
|
|
|
|
|
|
|
|
|
|
//Do it before run so application can addTimer,... in -run
|
|
|
|
|
NSDebugMLLog(@"application",@"[NSRunLoop currentRunLoop]=%@",[NSRunLoop currentRunLoop]);
|
|
|
|
|
ASSIGN(_currentRunLoop,[NSRunLoop currentRunLoop]);
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_pageCacheSize=30;
|
|
|
|
|
_permanentPageCacheSize=30;
|
|
|
|
|
_pageRecreationEnabled=YES;
|
|
|
|
|
_pageRefreshOnBacktrackEnabled=YES;
|
|
|
|
|
_refusingNewSessions = NO;
|
|
|
|
|
_minimumActiveSessionsCount = 0; // 0 is default
|
|
|
|
|
_dynamicLoadingEnabled=YES;
|
|
|
|
|
_printsHTMLParserDiagnostics=YES;
|
|
|
|
|
[[self class] _setApplication:self];
|
|
|
|
|
[self _touchPrincipalClasses];
|
|
|
|
|
standardUserDefaults=[NSUserDefaults standardUserDefaults];
|
|
|
|
|
NSDebugMLLog(@"options",@"standardUserDefaults=%@",standardUserDefaults);
|
|
|
|
|
[self _initAdaptorsWithUserDefaults:standardUserDefaults]; //TODOV
|
|
|
|
|
_sessionStore=[GSWServerSessionStore new];
|
|
|
|
|
//call isMonitorEnabled
|
|
|
|
|
|
|
|
|
|
/*????
|
|
|
|
|
NSBundle* _mainBundle=[NSBundle mainBundle];
|
|
|
|
|
NSArray* _allFrameworks=[_mainBundle allFrameworks];
|
|
|
|
|
int _frameworkN=0;
|
|
|
|
|
for(_frameworkN=0;_frameworkN<[_allFrameworks count];_frameworkN++)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* _bundlePath=[[_allFrameworks objectAtIndex:_frameworkN] bundlePath];
|
|
|
|
|
//TODO what ???
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
*/
|
|
|
|
|
//call adaptorsDispatchRequestsConcurrently
|
|
|
|
|
_activeSessionsCountLock=[NSLock new];
|
|
|
|
|
_componentDefinitionCache=[GSWMultiKeyDictionary new];
|
2003-02-01 19:07:25 +00:00
|
|
|
|
[self setResourceManager:[self createResourceManager]];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[self setStatisticsStore:[[GSWStatisticsStore new]autorelease]];
|
|
|
|
|
if ([[self class]isMonitorEnabled])
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"init: call self _setupForMonitoring");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[self _setupForMonitoring];
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"init: call appGSWBundle initializeObject:...");
|
|
|
|
|
[[GSWResourceManager _applicationGSWBundle] initializeObject:self
|
|
|
|
|
fromArchiveNamed:@"Application"];
|
|
|
|
|
[self setPrintsHTMLParserDiagnostics:NO];
|
|
|
|
|
//call recordingPath
|
|
|
|
|
NSDebugMLLog0(@"application",@"init: call self registerRequestHandlers");
|
|
|
|
|
[self registerRequestHandlers];
|
|
|
|
|
[self _validateAPI];
|
|
|
|
|
NSDebugMLLog0(@"application",@"init: addObserver");
|
|
|
|
|
[[NSNotificationCenter defaultCenter]addObserver:self
|
|
|
|
|
selector:@selector(_sessionDidTimeOutNotification:)
|
|
|
|
|
name:GSWNotification__SessionDidTimeOutNotification[GSWebNamingConv]
|
|
|
|
|
object:nil];
|
|
|
|
|
NSDebugMLLog0(@"application",@"init: addObserver called");
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
return self;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)dealloc
|
|
|
|
|
{
|
2002-03-06 23:13:23 +00:00
|
|
|
|
GSWLogMemC("Dealloc GSWApplication");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
DESTROY(_adaptors);
|
|
|
|
|
DESTROY(_sessionStore);
|
|
|
|
|
DESTROY(_componentDefinitionCache);
|
|
|
|
|
DESTROY(_timer);
|
|
|
|
|
// DESTROY(_context);//deprecated
|
|
|
|
|
DESTROY(_statisticsStore);
|
|
|
|
|
DESTROY(_resourceManager);
|
|
|
|
|
DESTROY(_remoteMonitor);
|
|
|
|
|
DESTROY(_remoteMonitorConnection);
|
|
|
|
|
DESTROY(_instanceNumber);
|
|
|
|
|
DESTROY(_requestHandlers);
|
|
|
|
|
DESTROY(_defaultRequestHandler);
|
2002-03-06 23:13:23 +00:00
|
|
|
|
GSWLogMemC("Dealloc GSWApplication: selfLock");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
DESTROY(_selfLock);
|
2002-03-06 23:13:23 +00:00
|
|
|
|
GSWLogMemC("Dealloc GSWApplication: globalLock");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
DESTROY(_globalLock);
|
2002-03-06 23:13:23 +00:00
|
|
|
|
GSWLogMemC("Dealloc GSWApplication: globalAutoreleasePool");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
DESTROY(_globalAutoreleasePool);
|
|
|
|
|
DESTROY(_currentRunLoop);
|
|
|
|
|
DESTROY(_runLoopDate);
|
|
|
|
|
DESTROY(_initialTimer);
|
|
|
|
|
DESTROY(_activeSessionsCountLock);
|
2001-02-23 18:01:19 +00:00
|
|
|
|
|
|
|
|
|
if (GSWApp == self)
|
2002-10-16 15:38:34 +00:00
|
|
|
|
{
|
2001-02-23 18:01:19 +00:00
|
|
|
|
GSWApp = nil;
|
2003-01-22 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/Makefile.postamble:
o use $(LN_S) -f in install-WO-headers
o added $(MKDIRS) $(GNUSTEP_HEADERS)/$(GSWExtensions_wo_HEADER_FILES_INSTALL_DIR);
* GSWExtensionsGSW.framework/Makefile.postamble: use $(LN_S) -f in install-WO-headers
2003-01-20 David Ayers <d.ayers@inode.at>
* Makefile.postamble
o added support for make gswnames=(gsw,wo,all) (corrected
typo)
o reinserted support for $(INSTALL_ROOT_DIR)
* config.h.in
o added HAVE_GDL2
* configure
o added support for --with-gswnames=(gsw,wo,all)
o set LIBWRAP during configure
o added config.mak.in as configurable file
* configure.ac
o (see configure)
* config.mak: removed (replaced by config.mak.in)
* config.mak.in: new file
o added support for make gswnames=(gsw,wo,all)
* gsweb.make.in
o add GSANTLR as auxiliary lib
o add gsweb libs to AUXILIARY_GSW_LIBS
o include correct extensions for GSW/WO-libs
* gsweb_wo.make: new file
* GSWeb/GSWConfig.h
o changed support for GSWEB_WONAMES
o conditionally import file GSWWOCompatiblity
here instead of in GSWeb.h
* GSWeb/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o removed reference to unused files:
GSWeb.m, GSWWOCompatibility.m
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWeb/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
o remove Makefile.preamble during distclean
* GSWeb/Makefile.preamble.in
o fixed typo
* GSWeb/GSWeb.h
o moved GSW/WO-Name-mapping to GSWWOCompatibility.h
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWeb.m: removed
* GSWeb/GSWWOCompatibility.h
o changed GSWEB_WONAMES handling
o removed hybrid namespace WO subclasses
o moved & reorganized GSW/WO-Name-mapping from GSWeb.h
o inlucluded missing GSW/WO-Name-mappings
* GSWeb/GSWWOCompatibility.m: removed
* GSWeb/*.m
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWApplication.m
o remove special GSW/WO handling of WOApp
* GSWeb/WebObject/WO*: removed
* GSWeb/WebObject/WebObjects
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWExtensions/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWExtensions/Makefile.preamble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
* GSWExtensions/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
* GSWExtensions/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtWOCompatibility.h"
o replaces inclusions of
<GSWExtensions/file.h> with "file.h"
* GSWExtensions/GSWExtensions.h: new file
* GSWExtensions/WOExtensions.h: new file
* GSWExtensions/GSWExtWOCompatibility.h: new file
* GSWExtensionsGSW/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new file GSWExtGSWWOCompatibility.h
o added support to create WO header files
* GSWExtensionsGSW/Makefile.pramble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
o removed GSWExtensions from ADDITIONAL_LIB_DIRS
* GSWExtensionsGSW/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtGSWWOCompatibility.h"
* GSWExtensions/GSWExtGSWWOCompatibility.h: new file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@15675 72102866-910b-0410-8b05-ffd578937521
2003-01-22 12:24:26 +00:00
|
|
|
|
}
|
2001-02-23 18:01:19 +00:00
|
|
|
|
|
2002-03-06 23:13:23 +00:00
|
|
|
|
GSWLogMemC("Dealloc GSWApplication Super");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[super dealloc];
|
2002-03-06 23:13:23 +00:00
|
|
|
|
GSWLogMemC("End Dealloc GSWApplication");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSString*)description
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* dscr=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[self lock];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
dscr=[NSString stringWithFormat:
|
|
|
|
|
@"<%s %p - name=%@ adaptors=%@ sessionStore=%@ pageCacheSize=%d permanentPageCacheSize=%d pageRecreationEnabled=%s pageRefreshOnBacktrackEnabled=%s componentDefinitionCache=%@ caching=%s terminating=%s timeOut=%f dynamicLoadingEnabled=%s>",
|
|
|
|
|
object_get_class_name(self),
|
|
|
|
|
(void*)self,
|
|
|
|
|
[self name],
|
|
|
|
|
[[self adaptors] description],
|
|
|
|
|
[[self sessionStore] description],
|
|
|
|
|
[self pageCacheSize],
|
|
|
|
|
[self permanentPageCacheSize],
|
|
|
|
|
[self _isPageRecreationEnabled] ? "YES" : "NO",
|
|
|
|
|
[self isPageRefreshOnBacktrackEnabled] ? "YES" : "NO",
|
|
|
|
|
[_componentDefinitionCache description],
|
|
|
|
|
[self isCachingEnabled] ? "YES" : "NO",
|
|
|
|
|
[self isTerminating] ? "YES" : "NO",
|
|
|
|
|
[self timeOut],
|
|
|
|
|
[self _isDynamicLoadingEnabled] ? "YES" : "NO"];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[self unlock];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return dscr;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// allowsConcurrentRequestHandling
|
|
|
|
|
-(BOOL)allowsConcurrentRequestHandling
|
|
|
|
|
{
|
|
|
|
|
return YES;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// adaptorsDispatchRequestsConcurrently
|
|
|
|
|
-(BOOL)adaptorsDispatchRequestsConcurrently
|
|
|
|
|
{
|
|
|
|
|
//TODO: use isMultiThreaded ?
|
2002-08-04 18:00:11 +00:00
|
|
|
|
BOOL adaptorsDispatchRequestsConcurrently=NO;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
int i=0;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
int adaptorsCount=[_adaptors count];
|
|
|
|
|
for(i=0;!adaptorsDispatchRequestsConcurrently && i<adaptorsCount;i++)
|
|
|
|
|
adaptorsDispatchRequestsConcurrently=[[_adaptors objectAtIndex:i]dispatchesRequestsConcurrently];
|
|
|
|
|
return adaptorsDispatchRequestsConcurrently;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// isConcurrentRequestHandlingEnabled
|
|
|
|
|
-(BOOL)isConcurrentRequestHandlingEnabled
|
|
|
|
|
{
|
|
|
|
|
return [self allowsConcurrentRequestHandling];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// lockRequestHandling
|
|
|
|
|
-(BOOL)isRequestHandlingLocked
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [_globalLock isLocked];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// lockRequestHandling
|
|
|
|
|
-(void)lockRequestHandling
|
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
if (![self isConcurrentRequestHandlingEnabled])
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
/* NSDebugMLLog(@"application",@"globalLockn=%d globalLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
globalLockn,(void*)
|
|
|
|
|
globalLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());
|
|
|
|
|
if (globalLockn>0)
|
|
|
|
|
{
|
|
|
|
|
if (globalLock_thread_id!=objc_thread_id())
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"PROBLEM: owner!=thread id");
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
*/
|
|
|
|
|
NS_DURING
|
|
|
|
|
{
|
|
|
|
|
NSDebugLockMLog(@"GLOBALLOCK lock ThreadID=%p\n",(void*)objc_thread_id());
|
|
|
|
|
//TODO-NOW TmpLockBeforeDate(globalLock,[NSDate dateWithTimeIntervalSinceNow:GSLOCK_DELAY_S]);
|
|
|
|
|
[_globalLock lock];
|
|
|
|
|
NSDebugLockMLog(@"GLOBALLOCK locked ThreadID=%p\n",(void*)objc_thread_id());
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#ifndef NDEBUG
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_globalLockn++;
|
|
|
|
|
_globalLock_thread_id=objc_thread_id();
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
|
/* NSDebugMLLog(@"application",@"globalLockn=%d globalLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
globalLockn,
|
|
|
|
|
(void*)globalLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());*/
|
|
|
|
|
}
|
|
|
|
|
NS_HANDLER
|
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"globalLock tmplockBeforeDate");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// unlockRequestHandling
|
|
|
|
|
-(void)unlockRequestHandling
|
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
if (![self isConcurrentRequestHandlingEnabled])
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NS_DURING
|
|
|
|
|
{
|
|
|
|
|
/* NSDebugMLLog(@"application",@"globalLockn=%d globalLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
globalLockn,
|
|
|
|
|
(void*)globalLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());*/
|
|
|
|
|
if (_globalLockn>0)
|
|
|
|
|
{
|
|
|
|
|
if (_globalLock_thread_id!=objc_thread_id())
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog0(@"application",@"PROBLEM: owner!=thread id");
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
NSDebugLockMLog(@"GLOBALLOCK unlock ThreadID=%p\n",(void*)objc_thread_id());
|
|
|
|
|
TmpUnlock(_globalLock);
|
|
|
|
|
NSDebugLockMLog(@"GLOBALLOCK unlocked ThreadID=%p\n",(void*)objc_thread_id());
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#ifndef NDEBUG
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_globalLockn--;
|
|
|
|
|
if (_globalLockn==0)
|
|
|
|
|
_globalLock_thread_id=NULL;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
|
/* NSDebugMLLog(@"application",@"globalLockn=%d globalLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
globalLockn,
|
|
|
|
|
(void*)globalLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());*/
|
|
|
|
|
}
|
|
|
|
|
NS_HANDLER
|
|
|
|
|
{
|
2003-02-01 19:07:25 +00:00
|
|
|
|
NSDebugMLog(@"globalLockn=%d globalLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
_globalLockn,
|
|
|
|
|
(void*)_globalLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());
|
2002-08-04 18:00:11 +00:00
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"globalLock tmpunlock");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// lock
|
|
|
|
|
-(void)lock
|
|
|
|
|
{
|
|
|
|
|
//call adaptorsDispatchRequestsConcurrently
|
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
/* NSDebugMLLog(@"application",@"selfLockn=%d selfLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
selfLockn,
|
|
|
|
|
(void*)selfLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());
|
|
|
|
|
if (selfLockn>0)
|
|
|
|
|
{
|
|
|
|
|
if (selfLock_thread_id!=objc_thread_id())
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"PROBLEM: owner!=thread id");
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
*/
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
/* printf("SELFLOCK lock ThreadID=%p\n",(void*)objc_thread_id());
|
|
|
|
|
TmpLockBeforeDate(selfLock,[NSDate dateWithTimeIntervalSinceNow:GSLOCK_DELAY_S]);
|
|
|
|
|
printf("SELFLOCK locked ThreadID=%p\n",(void*)objc_thread_id());
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
selfLockn++;
|
|
|
|
|
selfLock_thread_id=objc_thread_id();
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"selfLockn=%d selfLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
selfLockn,
|
|
|
|
|
(void*)selfLock_thread_id,
|
2000-01-22 12:49:49 +00:00
|
|
|
|
(void*)objc_thread_id());
|
2002-08-04 18:00:11 +00:00
|
|
|
|
*/
|
|
|
|
|
[_selfLock lock];//NEW
|
2001-10-28 10:29:17 +00:00
|
|
|
|
#ifndef NDEBUG
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_selfLockn++;
|
|
|
|
|
_selfLock_thread_id=objc_thread_id();
|
2001-10-28 10:29:17 +00:00
|
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"selfLock tmplockBeforeDate");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// unlock
|
|
|
|
|
-(void)unlock
|
|
|
|
|
{
|
|
|
|
|
//call adaptorsDispatchRequestsConcurrently
|
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
/* NSDebugMLLog(@"application",@"selfLockn=%d selfLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
selfLockn,
|
|
|
|
|
(void*)selfLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());
|
|
|
|
|
if (selfLockn>0)
|
|
|
|
|
{
|
|
|
|
|
if (selfLock_thread_id!=objc_thread_id())
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"PROBLEM: owner!=thread id");
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
*/
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_DURING
|
2002-03-06 23:13:23 +00:00
|
|
|
|
{
|
|
|
|
|
NSDebugLockMLog(@"SELFLOCK unlock ThreadID=%p\n",(void*)objc_thread_id());
|
|
|
|
|
// TmpUnlock(selfLock);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[_selfLock unlock];//NEW
|
2002-03-06 23:13:23 +00:00
|
|
|
|
NSDebugLockMLog(@"SELFLOCK unlocked ThreadID=%p\n",(void*)objc_thread_id());
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#ifndef NDEBUG
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_selfLockn--;
|
|
|
|
|
if (_selfLockn==0)
|
|
|
|
|
_selfLock_thread_id=NULL;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
#endif
|
2002-03-06 23:13:23 +00:00
|
|
|
|
/* NSDebugMLLog(@"application",@"selfLockn=%d selfLock_thread_id=%p objc_thread_id()=%p",
|
|
|
|
|
selfLockn,
|
|
|
|
|
(void*)selfLock_thread_id,
|
|
|
|
|
(void*)objc_thread_id());
|
|
|
|
|
*/
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-03-06 23:13:23 +00:00
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"selfLockn=%d selfLock_thread_id=%p objc_thread_id()=%p",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_selfLockn,
|
|
|
|
|
(void*)_selfLock_thread_id,
|
2002-03-06 23:13:23 +00:00
|
|
|
|
(void*)objc_thread_id());
|
2002-08-04 18:00:11 +00:00
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"selfLock tmpunlock");
|
2002-03-06 23:13:23 +00:00
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(void)_initRegistrationDomainDefaults
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(void)_initUserDefaultsKeys
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//name
|
|
|
|
|
|
|
|
|
|
-(NSString*)name
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* name=nil;
|
|
|
|
|
NSProcessInfo* processInfo=nil;
|
|
|
|
|
NSString* processName=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
//TODO
|
|
|
|
|
/* if (applicationName)
|
|
|
|
|
return applicationName;
|
|
|
|
|
else
|
|
|
|
|
{*/
|
2002-08-04 18:00:11 +00:00
|
|
|
|
processInfo=[NSProcessInfo processInfo];
|
|
|
|
|
processName=[processInfo processName];
|
|
|
|
|
NSDebugMLLog(@"application",@"_cmd:%p",_cmd);
|
|
|
|
|
NSDebugMLLog(@"application",@"processInfo:%@",processInfo);
|
|
|
|
|
NSDebugMLLog(@"application",@"processName:%@",processName);
|
|
|
|
|
processName=[processName lastPathComponent];
|
|
|
|
|
if ([processName hasSuffix:GSWApplicationPSuffix[GSWebNamingConv]])
|
2002-09-22 14:27:04 +00:00
|
|
|
|
name=[processName stringByDeletingSuffix:GSWApplicationPSuffix[GSWebNamingConv]];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
else
|
|
|
|
|
name=processName;
|
|
|
|
|
NSDebugMLLog(@"application",@"_name:%@ %p",name,name);
|
|
|
|
|
// };
|
|
|
|
|
return name;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//number
|
|
|
|
|
-(NSString*)number
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return @"0";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setPageRefreshOnBacktrackEnabled:
|
|
|
|
|
-(void)setPageRefreshOnBacktrackEnabled:(BOOL)flag
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_pageRefreshOnBacktrackEnabled=flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//path
|
|
|
|
|
-(NSString*)path
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* path=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
NSDebugMLLog(@"bundles",@"[GSWResourceManager _applicationGSWBundle]:%@",[GSWResourceManager _applicationGSWBundle]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
path=[[GSWResourceManager _applicationGSWBundle] path]; //return : H:\Wotests\ObjCTest3
|
|
|
|
|
NSDebugMLLog(@"application",@"path:%@",path);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return path;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//baseURL
|
|
|
|
|
-(NSString*)baseURL
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* baseURL=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
baseURL=[GSWURLPrefix[GSWebNamingConv] stringByAppendingString:[self name]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return baseURL;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)registerRequestHandlers
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* componentRequestHandlerKey=nil;
|
|
|
|
|
NSString* resourceRequestHandlerKey=nil;
|
|
|
|
|
NSString* directActionRequestHandlerKey=nil;
|
|
|
|
|
GSWRequestHandler* componentRequestHandler=nil;
|
|
|
|
|
GSWResourceRequestHandler* resourceRequestHandler=nil;
|
|
|
|
|
GSWDirectActionRequestHandler* directActionRequestHandler=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
componentRequestHandler=[[self class] _componentRequestHandler];
|
|
|
|
|
componentRequestHandlerKey=[[self class] componentRequestHandlerKey];
|
|
|
|
|
NSDebugMLLog(@"application",@"componentRequestHandlerKey:%@",componentRequestHandlerKey);
|
|
|
|
|
|
|
|
|
|
resourceRequestHandler=(GSWResourceRequestHandler*)[GSWResourceRequestHandler handler];
|
|
|
|
|
resourceRequestHandlerKey=[[self class] resourceRequestHandlerKey];
|
|
|
|
|
NSDebugMLLog(@"application",@"resourceRequestHandlerKey:%@",resourceRequestHandlerKey);
|
|
|
|
|
|
|
|
|
|
directActionRequestHandler=(GSWDirectActionRequestHandler*)[GSWDirectActionRequestHandler handler];
|
|
|
|
|
directActionRequestHandlerKey=[[self class] directActionRequestHandlerKey];
|
|
|
|
|
NSDebugMLLog(@"application",@"directActionRequestHandlerKey:%@",directActionRequestHandlerKey);
|
|
|
|
|
|
|
|
|
|
[self registerRequestHandler:componentRequestHandler
|
|
|
|
|
forKey:componentRequestHandlerKey];
|
|
|
|
|
[self registerRequestHandler:resourceRequestHandler
|
|
|
|
|
forKey:resourceRequestHandlerKey];
|
|
|
|
|
[self registerRequestHandler:directActionRequestHandler
|
|
|
|
|
forKey:directActionRequestHandlerKey];
|
|
|
|
|
[self registerRequestHandler:directActionRequestHandler
|
|
|
|
|
forKey:GSWDirectActionRequestHandlerKey[GSWebNamingConvInversed]];
|
|
|
|
|
NSDebugMLLog(@"application",@"_requestHandlers:%@",_requestHandlers);
|
|
|
|
|
[self setDefaultRequestHandler:componentRequestHandler];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_initAdaptorsWithUserDefaults:(NSUserDefaults*)userDefaults
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWAdaptor* adaptor=nil;
|
|
|
|
|
NSDictionary* args=nil;
|
2003-05-14 08:08:57 +00:00
|
|
|
|
NSString* adaptorName=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"options",@"userDefault=%@",userDefaults);
|
|
|
|
|
args=[self _argsDictionaryWithUserDefaults:userDefaults];
|
|
|
|
|
NSDebugMLLog(@"options",@"args=%@",args);
|
2003-05-14 08:08:57 +00:00
|
|
|
|
adaptorName=[userDefaults objectForKey:GSWOPT_Adaptor[GSWebNamingConv]];
|
|
|
|
|
NSAssert([adaptorName length]>0,@"No adaptor name");
|
|
|
|
|
adaptor=[self adaptorWithName:adaptorName
|
2002-08-04 18:00:11 +00:00
|
|
|
|
arguments:args];
|
|
|
|
|
if (_adaptors)
|
|
|
|
|
ASSIGN(_adaptors,[_adaptors arrayByAddingObject:adaptor]);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
ASSIGN(_adaptors,[NSArray arrayWithObject:adaptor]);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(NSDictionary*)_argsDictionaryWithUserDefaults:(NSUserDefaults*)userDefault
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//VERIFY
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSNumber* port=nil;
|
|
|
|
|
NSString* host=nil;
|
|
|
|
|
NSString* adaptor=nil;
|
|
|
|
|
NSNumber* workerThreadCount=nil;
|
|
|
|
|
NSNumber* listenQueueSize=nil;
|
|
|
|
|
NSMutableDictionary* argsDict=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
port=[[self class] port];
|
|
|
|
|
host=[[self class] host];
|
|
|
|
|
adaptor=(NSString*)[[self class] adaptor];
|
|
|
|
|
workerThreadCount=[[self class] workerThreadCount];
|
|
|
|
|
listenQueueSize=[[self class] listenQueueSize];
|
|
|
|
|
argsDict=(NSMutableDictionary*)[NSMutableDictionary dictionary];
|
|
|
|
|
[argsDict addEntriesFromDictionary:[userDefault dictionaryRepresentation]];
|
|
|
|
|
if (port)
|
|
|
|
|
[argsDict setObject:port
|
|
|
|
|
forKey:GSWOPT_Port[GSWebNamingConv]];
|
|
|
|
|
if (host)
|
|
|
|
|
[argsDict setObject:host
|
|
|
|
|
forKey:GSWOPT_Host[GSWebNamingConv]];
|
|
|
|
|
if (adaptor)
|
|
|
|
|
[argsDict setObject:adaptor
|
|
|
|
|
forKey:GSWOPT_Adaptor[GSWebNamingConv]];
|
|
|
|
|
if (workerThreadCount)
|
|
|
|
|
[argsDict setObject:workerThreadCount
|
|
|
|
|
forKey:GSWOPT_WorkerThreadCount[GSWebNamingConv]];
|
|
|
|
|
if (listenQueueSize)
|
|
|
|
|
[argsDict setObject:listenQueueSize
|
|
|
|
|
forKey:GSWOPT_ListenQueueSize[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return argsDict;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationA)
|
|
|
|
|
-(void)becomesMultiThreaded
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationB)
|
|
|
|
|
-(id)_webserverConnectURL
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return @"";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSString*)_directConnectURL
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* directConnectURL=nil;
|
2002-11-27 20:25:22 +00:00
|
|
|
|
//Not used yet NSString* cgiAdaptorURL=[[self class]cgiAdaptorURL]; //return http://titi.toto.com/cgi/GSWeb.exe
|
|
|
|
|
//Not used yet NSArray* adaptor=[self adaptors];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//(call name)
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return directConnectURL; //return http://titi.toto.com:1436/cgi/GSWeb.exe/ObjCTest3
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(id)_applicationExtension
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
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
|
|
|
|
return GSWApplicationSuffix[GSWebNamingConv];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationC)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_resetCacheForGeneration
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_resetCache
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSEnumerator* anEnum=nil;
|
|
|
|
|
id object=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"componentDefinitionCache=%@",_componentDefinitionCache);
|
|
|
|
|
anEnum=[_componentDefinitionCache objectEnumerator];
|
|
|
|
|
while ((object = [anEnum nextObject]))
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"object=%@",object);
|
|
|
|
|
if (object!=GSNotFoundMarker && ![object isCachingEnabled])
|
|
|
|
|
[object _clearCache];
|
|
|
|
|
};
|
|
|
|
|
if (![self isCachingEnabled])
|
|
|
|
|
{
|
|
|
|
|
[[GSWResourceManager _applicationGSWBundle] clearCache];
|
|
|
|
|
};
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,@"In clearCache");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
//TODO
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationD)
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWComponentDefinition*)componentDefinitionWithName:(NSString*)aName
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWComponentDefinition* componentDefinition=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"info",@"aName=%@",aName);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
componentDefinition=[self lockedComponentDefinitionWithName:aName
|
|
|
|
|
languages:languages];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In lockedComponentDefinitionWithName");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return componentDefinition;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWComponentDefinition*)lockedComponentDefinitionWithName:(NSString*)aName
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2000-03-16 16:16:49 +00:00
|
|
|
|
BOOL isCachedComponent=NO;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWComponentDefinition* componentDefinition=nil;
|
|
|
|
|
NSString* language=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
int iLanguage=0;
|
2003-06-25 15:17:29 +00:00
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
NSDate* startDate=[NSDate date];
|
|
|
|
|
NSDate* stopDate=nil;
|
|
|
|
|
#endif
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"aName %p=%@",aName,aName);
|
|
|
|
|
for(iLanguage=0;iLanguage<[languages count] && !componentDefinition;iLanguage++)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
language=[languages objectAtIndex:iLanguage];
|
|
|
|
|
if (language)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"trying language=%@",language);
|
2002-01-26 10:43:23 +00:00
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"[self isCachingEnabled]=%s",([self isCachingEnabled] ? "YES" : "NO"));
|
|
|
|
|
if ([self isCachingEnabled])
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
componentDefinition=[_componentDefinitionCache objectForKeys:aName,language,nil];
|
|
|
|
|
if (componentDefinition==(GSWComponentDefinition*)GSNotFoundMarker)
|
|
|
|
|
componentDefinition=nil;
|
|
|
|
|
else if (componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
isCachedComponent=YES;
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
componentDefinition=[self lockedLoadComponentDefinitionWithName:aName
|
|
|
|
|
language:language];
|
2002-01-26 10:43:23 +00:00
|
|
|
|
if ([self isCachingEnabled])
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (componentDefinition)
|
|
|
|
|
[_componentDefinitionCache setObject:componentDefinition
|
|
|
|
|
forKeys:aName,language,nil];
|
2002-01-26 10:43:23 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[_componentDefinitionCache setObject:GSNotFoundMarker
|
|
|
|
|
forKeys:aName,language,nil];
|
2002-01-26 10:43:23 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
language=nil;
|
2002-01-26 10:43:23 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"trying no language");
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"[self isCachingEnabled]=%s",([self isCachingEnabled] ? "YES" : "NO"));
|
|
|
|
|
if ([self isCachingEnabled])
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
componentDefinition=[_componentDefinitionCache objectForKeys:aName,nil];
|
|
|
|
|
if (componentDefinition==(GSWComponentDefinition*)GSNotFoundMarker)
|
|
|
|
|
componentDefinition=nil;
|
|
|
|
|
else if (componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
isCachedComponent=YES;
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"D componentDefinition for %@ %s cached",aName,(componentDefinition ? "" : "NOT"));
|
|
|
|
|
if (!componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
componentDefinition=[self lockedLoadComponentDefinitionWithName:aName
|
|
|
|
|
language:language];
|
2002-01-26 10:43:23 +00:00
|
|
|
|
if ([self isCachingEnabled])
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (componentDefinition)
|
|
|
|
|
[_componentDefinitionCache setObject:componentDefinition
|
|
|
|
|
forKeys:aName,nil];
|
2002-01-26 10:43:23 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[_componentDefinitionCache setObject:GSNotFoundMarker
|
|
|
|
|
forKeys:aName,nil];
|
2002-01-26 10:43:23 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2003-04-09 12:03:17 +00:00
|
|
|
|
NSLog(@"EXCEPTION: allFrameworks pathes=%@",[[NSBundle allFrameworks] valueForKey:@"resourcePath"]);
|
2003-03-21 14:32:57 +00:00
|
|
|
|
ExceptionRaise(GSWPageNotFoundException,
|
2002-01-26 10:43:23 +00:00
|
|
|
|
@"Unable to create component definition for %@ for languages: %@ (no componentDefinition).",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
aName,
|
|
|
|
|
languages);
|
2002-01-26 10:43:23 +00:00
|
|
|
|
};
|
2003-06-25 15:17:29 +00:00
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
stopDate=[NSDate date];
|
|
|
|
|
#endif
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2003-06-25 15:17:29 +00:00
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
[self statusDebugWithFormat:@"Component %@ %s language %@ (%sCached) search time: %.3f s",
|
|
|
|
|
aName,
|
|
|
|
|
(language ? "" : "no"),
|
|
|
|
|
(language ? language : @""),
|
|
|
|
|
(isCachedComponent ? "" : "Not "),
|
|
|
|
|
[stopDate timeIntervalSinceDate:startDate]];
|
|
|
|
|
#else
|
2002-01-26 10:43:23 +00:00
|
|
|
|
[self statusDebugWithFormat:@"Component %@ %s language %@ (%sCached)",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
aName,
|
|
|
|
|
(language ? "" : "no"),
|
|
|
|
|
(language ? language : @""),
|
2002-01-26 10:43:23 +00:00
|
|
|
|
(isCachedComponent ? "" : "Not ")];
|
2003-06-25 15:17:29 +00:00
|
|
|
|
#endif
|
2002-01-26 10:43:23 +00:00
|
|
|
|
};
|
2003-07-11 19:16:37 +00:00
|
|
|
|
#ifdef DEBUG
|
2003-06-25 15:17:29 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"%s componentDefinition (%p) for %@ class=%@ %s. search time: %.3f s",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
(componentDefinition ? "FOUND" : "NOTFOUND"),
|
|
|
|
|
componentDefinition,
|
|
|
|
|
aName,
|
|
|
|
|
(componentDefinition ? [[componentDefinition class] description]: @""),
|
2003-06-25 15:17:29 +00:00
|
|
|
|
(componentDefinition ? (isCachedComponent ? "(Cached)" : "(Not Cached)") : ""),
|
2003-07-11 19:16:37 +00:00
|
|
|
|
[stopDate timeIntervalSinceDate:startDate]);
|
|
|
|
|
#else
|
|
|
|
|
NSDebugMLLog(@"application",@"%s componentDefinition (%p) for %@ class=%@ %s.",
|
|
|
|
|
(componentDefinition ? "FOUND" : "NOTFOUND"),
|
|
|
|
|
componentDefinition,
|
|
|
|
|
aName,
|
|
|
|
|
(componentDefinition ? [[componentDefinition class] description]: @""),
|
|
|
|
|
(componentDefinition ? (isCachedComponent ? "(Cached)" : "(Not Cached)") : ""));
|
|
|
|
|
#endif
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return componentDefinition;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWComponentDefinition*)lockedLoadComponentDefinitionWithName:(NSString*)aName
|
|
|
|
|
language:(NSString*)language
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWComponentDefinition* componentDefinition=nil;
|
|
|
|
|
GSWResourceManager* resourceManager=nil;
|
|
|
|
|
NSString* frameworkName=nil;
|
|
|
|
|
NSString* resourceName=nil;
|
|
|
|
|
NSString* htmlResourceName=nil;
|
|
|
|
|
NSString* path=nil;
|
|
|
|
|
NSString* url=nil;
|
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
|
|
|
|
int iName=0;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"aName=%@",aName);
|
|
|
|
|
for(iName=0;!path && iName<2;iName++)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
resourceName=[aName stringByAppendingString:GSWPagePSuffix[GSWebNamingConvForRound(iName)]];
|
|
|
|
|
htmlResourceName=[aName stringByAppendingString:GSWComponentTemplatePSuffix];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"resourceName=%@",resourceName);
|
|
|
|
|
resourceManager=[self resourceManager];
|
|
|
|
|
path=[resourceManager pathForResourceNamed:resourceName
|
|
|
|
|
inFramework:nil
|
|
|
|
|
language:language];
|
|
|
|
|
NSDebugMLLog(@"application",@"path=%@",path);
|
|
|
|
|
if (!path)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSArray* frameworks=[self lockedComponentBearingFrameworks];
|
|
|
|
|
NSBundle* framework=nil;
|
|
|
|
|
int frameworkN=0;
|
|
|
|
|
for(frameworkN=0;frameworkN<[frameworks count] && !path;frameworkN++)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
framework=[frameworks objectAtIndex:frameworkN];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"TRY framework=%@",framework);
|
|
|
|
|
path=[resourceManager pathForResourceNamed:resourceName
|
|
|
|
|
inFramework:[framework bundleName]
|
|
|
|
|
language:language];
|
|
|
|
|
if (!path)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
path=[resourceManager pathForResourceNamed:htmlResourceName
|
|
|
|
|
inFramework:[framework bundleName]
|
|
|
|
|
language:language];
|
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
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (path)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"framework=%@ class=%@",framework,[framework class]);
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"framework bundlePath=%@",[framework bundlePath]);
|
|
|
|
|
frameworkName=[framework bundlePath];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"frameworkName=%@",frameworkName);
|
|
|
|
|
frameworkName=[frameworkName lastPathComponent];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"frameworkName=%@",frameworkName);
|
|
|
|
|
frameworkName=[frameworkName stringByDeletingPathExtension];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"frameworkName=%@",frameworkName);
|
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
|
|
|
|
};
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"path=%@",path);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
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
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (path)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
url=[resourceManager urlForResourceNamed:resourceName
|
|
|
|
|
inFramework:frameworkName //NEW
|
|
|
|
|
languages:(language ? [NSArray arrayWithObject:language] : nil)
|
|
|
|
|
request:nil];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"url=%@",url);
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"frameworkName=%@",frameworkName);
|
|
|
|
|
NSDebugMLog(!@"Component %@ Found at=%@",aName,path);
|
|
|
|
|
componentDefinition=[[[GSWComponentDefinition alloc] initWithName:aName
|
|
|
|
|
path:path
|
|
|
|
|
baseURL:url
|
|
|
|
|
frameworkName:frameworkName] autorelease];
|
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
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return componentDefinition;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSArray*)lockedComponentBearingFrameworks
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSArray* array=nil;
|
2002-09-16 23:50:55 +00:00
|
|
|
|
NSMutableArray* allFrameworks=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-09-16 23:50:55 +00:00
|
|
|
|
allFrameworks=[[NSBundle allFrameworks] mutableCopy];
|
|
|
|
|
[allFrameworks addObjectsFromArray:[NSBundle allBundles]];
|
2003-04-09 12:03:17 +00:00
|
|
|
|
//NSDebugMLLog(@"gswcomponents",@"allFrameworks=%@",allFrameworks);
|
|
|
|
|
//NSDebugFLLog(@"gswcomponents",@"allFrameworks pathes=%@",[allFrameworks valueForKey:@"resourcePath"]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
array=[self lockedInitComponentBearingFrameworksFromBundleArray:allFrameworks];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"array=%@",array);
|
2002-09-16 23:50:55 +00:00
|
|
|
|
[allFrameworks release];
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return array;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(NSArray*)lockedInitComponentBearingFrameworksFromBundleArray:(NSArray*)bundles
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSMutableArray* array=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
int i=0;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSBundle* bundle=nil;
|
|
|
|
|
NSDictionary* bundleInfo=nil;
|
|
|
|
|
id hasGSWComponents=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
array=[NSMutableArray array];
|
|
|
|
|
for(i=0;i<[bundles count];i++)
|
|
|
|
|
{
|
|
|
|
|
bundle=[bundles objectAtIndex:i];
|
2003-04-09 12:03:17 +00:00
|
|
|
|
//NSDebugMLLog(@"gswcomponents",@"bundle=%@",bundle);
|
|
|
|
|
//NSDebugMLLog(@"gswcomponents",@"bundle resourcePath=%@",[bundle resourcePath]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
bundleInfo=[bundle infoDictionary];
|
2003-04-09 12:03:17 +00:00
|
|
|
|
//NSDebugMLLog(@"gswcomponents",@"bundleInfo=%@",bundleInfo);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
hasGSWComponents=[bundleInfo objectForKey:@"HasGSWComponents"];
|
2003-04-09 12:03:17 +00:00
|
|
|
|
//NSDebugMLLog(@"gswcomponents",@"hasGSWComponents=%@",hasGSWComponents);
|
|
|
|
|
//NSDebugMLLog(@"gswcomponents",@"hasGSWComponents class=%@",[hasGSWComponents class]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (boolValueFor(hasGSWComponents))
|
|
|
|
|
{
|
|
|
|
|
[array addObject:bundle];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"Add %@",[bundle bundleName]);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
// NSDebugMLLog(@"gswcomponents",@"_array=%@",_array);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return array;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationE)
|
|
|
|
|
|
2003-06-25 15:17:29 +00:00
|
|
|
|
-(void)setContextClassName:(NSString*)className
|
|
|
|
|
{
|
|
|
|
|
NSAssert(NO,@"TODO");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-(NSString*)contextClassName
|
|
|
|
|
{
|
|
|
|
|
NSUserDefaults* userDefaults=[NSUserDefaults standardUserDefaults];
|
|
|
|
|
NSString* contextClassName=[userDefaults objectForKey:GSWOPT_Context[GSWebNamingConv]];
|
|
|
|
|
NSAssert([contextClassName length]>0,@"No contextClassName");
|
|
|
|
|
return contextClassName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-(GSWContext*)createContextForRequest:(GSWRequest*)aRequest
|
|
|
|
|
{
|
|
|
|
|
GSWContext* context=nil;
|
|
|
|
|
NSString* contextClassName=[self contextClassName];
|
|
|
|
|
Class contextClass=NSClassFromString(contextClassName);
|
|
|
|
|
NSAssert1(contextClass,@"No contextClass named '%@'",contextClassName);
|
|
|
|
|
if (contextClass)
|
|
|
|
|
{
|
|
|
|
|
context=[contextClass contextWithRequest:aRequest];
|
|
|
|
|
}
|
|
|
|
|
if (!context)
|
|
|
|
|
{
|
|
|
|
|
//TODO: throw cleaner exception
|
|
|
|
|
NSAssert(NO,@"Can't create context");
|
|
|
|
|
};
|
|
|
|
|
return context;
|
|
|
|
|
}
|
|
|
|
|
|
2003-02-01 19:07:25 +00:00
|
|
|
|
-(GSWResponse*)createResponseInContext:(GSWContext*)aContext
|
|
|
|
|
{
|
|
|
|
|
return [[GSWResponse new]autorelease];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
-(GSWRequest*)createRequestWithMethod:(NSString*)aMethod
|
|
|
|
|
uri:(NSString*)anURL
|
|
|
|
|
httpVersion:(NSString*)aVersion
|
|
|
|
|
headers:(NSDictionary*)headers
|
|
|
|
|
content:(NSData*)content
|
|
|
|
|
userInfo:(NSDictionary*)userInfo
|
|
|
|
|
{
|
|
|
|
|
return [[[GSWRequest alloc]initWithMethod:aMethod
|
|
|
|
|
uri:anURL
|
|
|
|
|
httpVersion:aVersion
|
|
|
|
|
headers:headers
|
|
|
|
|
content:content
|
|
|
|
|
userInfo:userInfo]autorelease];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
-(GSWResourceManager*)createResourceManager
|
|
|
|
|
{
|
|
|
|
|
return [[GSWResourceManager new]autorelease];
|
|
|
|
|
};
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_discountTerminatedSession
|
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock]; //TODO mettre le lock ailleur
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
[self lockedDecrementActiveSessionCount];
|
|
|
|
|
/*
|
|
|
|
|
if ([self isRefusingNewSessions])
|
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
};
|
|
|
|
|
*/
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In lockedDecrementActiveSessionCount...");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_finishInitializingSession:(GSWSession*)aSession
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
[[GSWResourceManager _applicationGSWBundle] initializeObject:aSession
|
|
|
|
|
fromArchiveNamed:@"Session"];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In initializeObject:fromArchiveNamed:");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWSession*)_initializeSessionInContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
if ([self isRefusingNewSessions])
|
|
|
|
|
{
|
|
|
|
|
//TODO erreur ?
|
|
|
|
|
NSDebugMLLog0(@"application",@"isRefusingNewSessions!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
*/
|
|
|
|
|
// {
|
|
|
|
|
[self lockedIncrementActiveSessionCount];
|
|
|
|
|
session=[self createSessionForRequest:[aContext request]];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session:%@",session);
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session ID:%@",[session sessionID]);
|
|
|
|
|
[aContext _setSession:session];
|
|
|
|
|
[session awakeInContext:aContext];
|
|
|
|
|
// };
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In lockedIncrementActiveSessionCount...");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return session;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(int)lockedDecrementActiveSessionCount
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_activeSessionsCount--;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _activeSessionsCount;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(int)lockedIncrementActiveSessionCount
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_activeSessionsCount++;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _activeSessionsCount;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(int)_activeSessionsCount
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _activeSessionsCount;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationF)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_setContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSMutableDictionary* threadDictionary=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
threadDictionary=GSCurrentThreadDictionary();
|
|
|
|
|
if (aContext)
|
|
|
|
|
[threadDictionary setObject:aContext
|
|
|
|
|
forKey:GSWThreadKey_Context];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[threadDictionary removeObjectForKey:GSWThreadKey_Context];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
// ASSIGN(context,_context);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"context:%p",(void*)aContext);
|
|
|
|
|
NSDebugMLLog(@"application",@"context retain count:%p",[aContext retainCount]);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// Internal Use only
|
|
|
|
|
-(GSWContext*)_context
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWContext* context=nil;
|
|
|
|
|
NSMutableDictionary* threadDictionary=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
threadDictionary=GSCurrentThreadDictionary();
|
|
|
|
|
context=[threadDictionary objectForKey:GSWThreadKey_Context];
|
|
|
|
|
NSDebugMLLog(@"application",@"context:%p",(void*)context);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return context;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationG)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(BOOL)_isDynamicLoadingEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _dynamicLoadingEnabled;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_disableDynamicLoading
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_dynamicLoadingEnabled=NO;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationI)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(BOOL)_isPageRecreationEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _pageRecreationEnabled;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_touchPrincipalClasses
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSArray* allFrameworks=nil;
|
|
|
|
|
int frameworkN=0;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
//????
|
|
|
|
|
allFrameworks=[NSBundle allFrameworks];
|
|
|
|
|
for(frameworkN=0;frameworkN<[allFrameworks count];frameworkN++)
|
|
|
|
|
{
|
2002-11-27 20:25:22 +00:00
|
|
|
|
//Not used yet NSDictionary* infoDictionary=[[allFrameworks objectAtIndex:frameworkN] infoDictionary];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
//TODO what ???
|
|
|
|
|
};
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,@"");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationJ)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(id)_newLocationForRequest:(GSWRequest*)aRequest
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//appell<EFBFBD> quand le moteur est ferm<EFBFBD>
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_connectionDidDie:(id)unknown
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(BOOL)_shouldKill
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return NO;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//TODO return (Vv9@0:4c8)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_setShouldKill:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_synchronizeInstanceSettingsWithMonitor:(id)_monitor
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(BOOL)_setupForMonitoring
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
id remoteMonitor=nil;
|
|
|
|
|
NSString* monitorApplicationName=nil;
|
|
|
|
|
NSNumber* port=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
monitorApplicationName=[self _monitorApplicationName];
|
|
|
|
|
port=[[self class]port];
|
|
|
|
|
remoteMonitor=[self _remoteMonitor];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return (remoteMonitor!=nil);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(id)_remoteMonitor
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!_remoteMonitor)
|
|
|
|
|
{
|
|
|
|
|
NSString* monitorHost=[self _monitorHost];
|
|
|
|
|
NSNumber* workerThreadCount=[[self class]workerThreadCount];
|
|
|
|
|
id proxy=nil;
|
|
|
|
|
NSDebugFLLog(@"monitor",@"monitorHost=%@",monitorHost);
|
|
|
|
|
NSDebugFLLog(@"monitor",@"workerThreadCount=%@",workerThreadCount);
|
|
|
|
|
[NSDistantObject setDebug:YES];
|
|
|
|
|
_remoteMonitorConnection = [NSConnection connectionWithRegisteredName:GSWMonitorServiceName
|
|
|
|
|
host:monitorHost];
|
|
|
|
|
proxy=[_remoteMonitorConnection rootProxy];
|
|
|
|
|
_remoteMonitor=[proxy targetForProxy];
|
|
|
|
|
[self _synchronizeInstanceSettingsWithMonitor:_remoteMonitor];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _remoteMonitor;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSString*)_monitorHost
|
|
|
|
|
{
|
|
|
|
|
return [[self class]monitorHost];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSString*)_monitorApplicationName
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* name=[self name];
|
|
|
|
|
NSNumber* port=[[self class]port];
|
|
|
|
|
NSString* monitorApplicationName=[NSString stringWithFormat:@"%@-%@",
|
|
|
|
|
name,
|
|
|
|
|
port];
|
|
|
|
|
return monitorApplicationName;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//TODO return value is Vv8@0:4 and not void !
|
|
|
|
|
-(void)_terminateFromMonitor
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
2000-08-25 10:36:16 +00:00
|
|
|
|
exit;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationK)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_validateAPI
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWAdaptorManagement)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//adaptors
|
|
|
|
|
|
|
|
|
|
-(NSArray*)adaptors
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _adaptors;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//adaptorWithName:arguments:
|
|
|
|
|
|
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
|
|
|
|
-(GSWAdaptor*)adaptorWithName:(NSString*)name
|
|
|
|
|
arguments:(NSDictionary*)arguments
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
//call _isDynamicLoadingEnabled
|
|
|
|
|
// call isTerminating
|
|
|
|
|
//call isCachingEnabled
|
|
|
|
|
//call isPageRefreshOnBacktrackEnabled
|
|
|
|
|
*/
|
|
|
|
|
GSWAdaptor* adaptor=nil;
|
|
|
|
|
Class gswadaptorClass=nil;
|
|
|
|
|
Class adaptorClass=nil;
|
|
|
|
|
LOGObjectFnStart();
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"adaptor name:%@",name);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
gswadaptorClass=[GSWAdaptor class];
|
2003-05-14 08:08:57 +00:00
|
|
|
|
NSAssert([name length]>0,@"No adaptor name");
|
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
|
|
|
|
adaptorClass=NSClassFromString(name);
|
|
|
|
|
NSAssert1(adaptorClass,@"No adaptor named '%@'",name);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (adaptorClass)
|
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
|
|
|
|
{
|
|
|
|
|
if (ClassIsKindOfClass(adaptorClass,gswadaptorClass))
|
|
|
|
|
{
|
|
|
|
|
adaptor=[[[adaptorClass alloc] initWithName:name
|
|
|
|
|
arguments:arguments] autorelease];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"adaptor:%@",adaptor);
|
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
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
NSAssert1(NO,@"adaptor of class %@ is not a GSWAdaptor",name);
|
|
|
|
|
};
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
return adaptor;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWCacheManagement)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setCachingEnabled:
|
|
|
|
|
-(void)setCachingEnabled:(BOOL)flag_
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//isCachingEnabled
|
|
|
|
|
-(BOOL)isCachingEnabled
|
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
return [[self class]isCachingEnabled];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWSessionManagement)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//sessionStore
|
|
|
|
|
-(GSWSessionStore*)sessionStore
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _sessionStore;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setSessionStore:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setSessionStore:(GSWSessionStore*)sessionStore
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2003-03-03 08:47:29 +00:00
|
|
|
|
NSDebugMLog(@"sessionStore %@=%@",[sessionStore class],sessionStore);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
ASSIGN(_sessionStore,sessionStore);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)saveSessionForContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
session=[aContext existingSession];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
|
|
|
|
if (session)
|
|
|
|
|
{
|
|
|
|
|
[self _saveSessionForContext:aContext];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionStore=%@",_sessionStore);
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_saveSessionForContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
session=[aContext existingSession];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
|
|
|
|
if (session)
|
2002-05-14 11:28:50 +00:00
|
|
|
|
{
|
|
|
|
|
NS_DURING
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[session sleepInContext:aContext];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
|
|
|
|
[_sessionStore checkInSessionForContext:aContext];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
|
|
|
|
[aContext _setSession:nil];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionStore=%@",_sessionStore);
|
2002-05-14 11:28:50 +00:00
|
|
|
|
}
|
|
|
|
|
NS_HANDLER
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In _saveSessionForContext:");
|
2002-05-14 11:28:50 +00:00
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
[localException raise];
|
|
|
|
|
}
|
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWSession*)restoreSessionWithID:(NSString*)sessionID
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
2003-06-25 15:17:29 +00:00
|
|
|
|
NSDebugMLLog(@"sessions",@"Start Restore Session. sessionID=%@",sessionID);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[aContext _setRequestSessionID:sessionID];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionID=%@",sessionID);
|
|
|
|
|
NSDebugMLLog(@"sessions",@"_sessionStore=%@",_sessionStore);
|
|
|
|
|
session=[self _restoreSessionWithID:sessionID
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
[aContext _setRequestSessionID:nil]; //ATTN: pass nil for unkwon reason
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
2003-06-25 15:17:29 +00:00
|
|
|
|
NSDebugMLLog(@"sessions",@"Stop Restore Session. sessionID=%@",sessionID);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return session;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWSession*)_restoreSessionWithID:(NSString*)sessionID
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWRequest* request=nil;
|
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"sessions",@"aContext=%@",aContext);
|
|
|
|
|
request=[aContext request];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"request=%@",request);
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionID_=%@",sessionID);
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionStore=%@",_sessionStore);
|
|
|
|
|
session=[_sessionStore checkOutSessionWithID:sessionID
|
|
|
|
|
request:request];
|
|
|
|
|
[aContext _setSession:session];//even if nil :-)
|
|
|
|
|
[session awakeInContext:aContext];//even if nil :-)
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return session;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(Class)_sessionClass
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
Class sessionClass=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
/* [[GSWResourceManager _applicationGSWBundle] lock];
|
|
|
|
|
[[GSWResourceManager _applicationGSWBundle] unlock];
|
|
|
|
|
*/
|
|
|
|
|
sessionClass=[[GSWResourceManager _applicationGSWBundle] scriptedClassWithName:GSWClassName_Session
|
|
|
|
|
superclassName:GSWClassName_Session];
|
|
|
|
|
if (!sessionClass)
|
|
|
|
|
sessionClass=NSClassFromString(GSWClassName_Session);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
//Search Compiled Class "Session" (subclass of GSWsession)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
gswsessionClass=NSClassFromString();
|
|
|
|
|
sessionClass=NSClassFromString(GSWClassName_Session);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
|
|
//If not found, search for library "Session" in application .gswa directory
|
|
|
|
|
if (!_sessionClass)
|
|
|
|
|
{
|
|
|
|
|
NSString* sessionPath=[self pathForResourceNamed:@"session"
|
|
|
|
|
ofType:nil];
|
|
|
|
|
Class _principalClass=[self libraryClassWithPath:sessionPath];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"_principalClass=%@",_principalClass);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (_principalClass)
|
|
|
|
|
{
|
|
|
|
|
_sessionClass=NSClassFromString(GSWClassName_Session);
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"sessionClass=%@",_sessionClass);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//If not found, search for scripted "Session" in application .gswa directory
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!sessionClass)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//If not found, search for scripted "Session" in a session.gsws file
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!sessionClass)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
};
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!sessionClass)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
sessionClass=_gswsessionClass;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (!ClassIsKindOfClass(_sessionClass,_gswsessionClass))
|
|
|
|
|
{
|
|
|
|
|
//TODO exception
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"session class is not a kind of GSWSession\n");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"_sessionClass:%@",_sessionClass);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
*/
|
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return sessionClass;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWSession*)createSessionForRequest:(GSWRequest*)aRequest
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
session=[self _createSessionForRequest:aRequest];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session:%@",session);
|
2002-10-28 19:57:10 +00:00
|
|
|
|
[_statisticsStore _applicationCreatedSession:session];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return session;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWSession*)_createSessionForRequest:(GSWRequest*)aRequest
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
Class sessionClass=Nil;
|
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
sessionClass=[self _sessionClass];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionClass:%@",sessionClass);
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In _sessionClass");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!sessionClass)
|
|
|
|
|
{
|
|
|
|
|
//TODO erreur
|
|
|
|
|
NSDebugMLLog0(@"application",@"No Session Class");
|
2002-11-18 11:14:55 +00:00
|
|
|
|
NSAssert(NO,@"Can't find session class");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
session=[[sessionClass new]autorelease];
|
|
|
|
|
};
|
|
|
|
|
NSDebugMLLog(@"sessions",@"session:%@",session);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return session;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWPageManagement)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setPageCacheSize:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setPageCacheSize:(unsigned int)size
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_pageCacheSize = size;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//pageCacheSize
|
|
|
|
|
|
|
|
|
|
-(unsigned int)pageCacheSize
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _pageCacheSize;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(unsigned)permanentPageCacheSize;
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _permanentPageCacheSize;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setPermanentPageCacheSize:(unsigned)size
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//isPageRefreshOnBacktrackEnabled
|
|
|
|
|
|
|
|
|
|
-(BOOL)isPageRefreshOnBacktrackEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _pageRefreshOnBacktrackEnabled;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setPageRefreshOnBacktrackEnabled:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
[self lock];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_pageRefreshOnBacktrackEnabled=flag;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWComponent*)pageWithName:(NSString*)aName
|
|
|
|
|
forRequest:(GSWRequest*)aRequest
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWComponent*)pageWithName:(NSString*)aName
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWComponent* component=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAssert(aContext,@"No Context");
|
|
|
|
|
component=[self _pageWithName:aName
|
|
|
|
|
inContext:aContext];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return component;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
|
|
|
|
-(NSString*)defaultPageName
|
|
|
|
|
{
|
|
|
|
|
return GSWMainPageName;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWComponent*)_pageWithName:(NSString*)aName
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWComponent* component=nil;
|
|
|
|
|
GSWComponentDefinition* componentDefinition=nil;
|
|
|
|
|
NSArray* languages=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"info",@"aName %p=%@",aName,aName);
|
|
|
|
|
NSAssert(aContext,@"No Context");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-11-18 11:14:55 +00:00
|
|
|
|
// If the pageName is empty, try to get one from -defaultPageName
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if ([aName length]<=0)
|
|
|
|
|
aName=[self defaultPageName];//NDFN
|
2002-11-18 11:14:55 +00:00
|
|
|
|
// If the pageName is still empty, use a default one ("Main")
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if ([aName length]<=0)
|
|
|
|
|
aName=GSWMainPageName;
|
2002-11-18 11:14:55 +00:00
|
|
|
|
|
2003-06-25 15:17:29 +00:00
|
|
|
|
NSDebugMLLog(@"info",@"aName=%@",aName);
|
|
|
|
|
|
2002-11-18 11:14:55 +00:00
|
|
|
|
// Retrieve context languages
|
2002-08-04 18:00:11 +00:00
|
|
|
|
languages=[aContext languages];
|
2003-06-25 15:17:29 +00:00
|
|
|
|
NSDebugMLLog(@"info",@"languages=%@",languages);
|
2002-11-18 11:14:55 +00:00
|
|
|
|
|
|
|
|
|
// Find component definition for pageName and languages
|
2002-08-04 18:00:11 +00:00
|
|
|
|
componentDefinition=[self lockedComponentDefinitionWithName:aName
|
|
|
|
|
languages:languages];
|
|
|
|
|
NSDebugMLLog(@"info",@"componentDefinition %p=%@ (%@)",
|
|
|
|
|
componentDefinition,
|
|
|
|
|
componentDefinition,
|
|
|
|
|
[componentDefinition class]);
|
2002-01-26 10:43:23 +00:00
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In lockedComponentDefinitionWithName:");
|
2002-01-26 10:43:23 +00:00
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
NS_DURING
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog0(@"info",@"GSWApplication _pageWithName no componentDefinition");
|
2002-01-26 10:43:23 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2002-11-18 11:14:55 +00:00
|
|
|
|
// As we've found a component defintion, we create an instance (an object of class GSWComponent)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAssert(aContext,@"No Context");
|
|
|
|
|
component=[componentDefinition componentInstanceInContext:aContext];
|
|
|
|
|
NSAssert(aContext,@"No Context");
|
2002-11-18 11:14:55 +00:00
|
|
|
|
// Next we awake it
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[component awakeInContext:aContext];
|
2002-11-18 11:14:55 +00:00
|
|
|
|
|
|
|
|
|
// And flag it as a page.
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[component _setIsPage:YES];
|
2002-01-26 10:43:23 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In componentInstanceInContext:");
|
2002-01-26 10:43:23 +00:00
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return component;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWElementCreation)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWElement*)dynamicElementWithName:(NSString*)aName
|
|
|
|
|
associations:(NSDictionary*)someAssociations
|
|
|
|
|
template:(GSWElement*)templateElement
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWElement* element=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
element=[self lockedDynamicElementWithName:aName
|
|
|
|
|
associations:someAssociations
|
|
|
|
|
template:templateElement
|
|
|
|
|
languages:languages];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
[self unlock];
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In lockedDynamicElementWithName:associations:template:languages:");
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return element;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWElement*)lockedDynamicElementWithName:(NSString*)aName
|
|
|
|
|
associations:(NSDictionary*)someAssociations
|
|
|
|
|
template:(GSWElement*)templateElement
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWElement* element=nil;
|
|
|
|
|
Class elementClass=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//lock bundle
|
|
|
|
|
//unlock bundle
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if ([someAssociations isAssociationDebugEnabledInComponent:nil])
|
|
|
|
|
[someAssociations associationsSetDebugEnabled];
|
|
|
|
|
elementClass=NSClassFromString(aName);
|
|
|
|
|
NSDebugMLLog(@"info",@"elementClass %p:%@",elementClass,elementClass);
|
|
|
|
|
NSDebugMLLog(@"info",@"elementClass superClass:%@",[elementClass superClass]);
|
2002-12-06 16:10:52 +00:00
|
|
|
|
if (elementClass && !ClassIsKindOfClass(elementClass,[GSWComponent class]))
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"info",@"CREATE Element of Class %p:%@",aName,aName);
|
|
|
|
|
element=[[[elementClass alloc] initWithName:aName
|
|
|
|
|
associations:someAssociations
|
|
|
|
|
template:templateElement]
|
|
|
|
|
autorelease];
|
|
|
|
|
NSDebugMLLog(@"info",@"Created Element %p: %@",element,element);
|
2002-01-26 10:43:23 +00:00
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWComponentDefinition* componentDefinition=nil;
|
|
|
|
|
componentDefinition=[self lockedComponentDefinitionWithName:aName
|
|
|
|
|
languages:languages];
|
|
|
|
|
if (componentDefinition)
|
2002-01-26 10:43:23 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"info",@"CREATE SubComponent %p:%@",aName,aName);
|
|
|
|
|
element=[componentDefinition componentReferenceWithAssociations:someAssociations
|
|
|
|
|
template:templateElement];
|
|
|
|
|
NSDebugMLLog(@"info",@"Created SubComponent %p: %@",element,element);
|
2002-01-26 10:43:23 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ExceptionRaise(@"GSWApplication",
|
|
|
|
|
@"GSWApplication: Component Definition named '%@' not found or can't be created",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
aName);
|
2002-01-26 10:43:23 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return element;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWRunning)
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//run
|
|
|
|
|
|
|
|
|
|
-(void)run
|
|
|
|
|
{
|
|
|
|
|
//call allowsConcurrentRequestHandling
|
|
|
|
|
//call [[self class]_multipleThreads];
|
|
|
|
|
//call [self name];
|
|
|
|
|
//call [[self class]_requestWindow];
|
|
|
|
|
//call [[self class]_requestLimit];
|
|
|
|
|
//call [self becomesMultiThreaded];
|
|
|
|
|
//call [[self class]_requestWindow];
|
|
|
|
|
//call [[self class]_requestLimit];
|
|
|
|
|
//call [self resourceManager];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
SEL registerForEventsSEL=NULL;
|
|
|
|
|
SEL unregisterForEventsSEL=NULL;
|
|
|
|
|
NSDebugMLLog0(@"application",@"GSWApplication run");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLog(@"ThreadID=%p\n",(void*)objc_thread_id());
|
|
|
|
|
registerForEventsSEL=@selector(registerForEvents);
|
|
|
|
|
unregisterForEventsSEL=@selector(unregisterForEvents);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"adaptors=%@",_adaptors);
|
|
|
|
|
[_adaptors makeObjectsPerformSelector:registerForEventsSEL];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"NSRunLoop run");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//call adaptor run
|
|
|
|
|
//call self _openInitialURL
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"GSCurrentThreadDictionary()=%@",GSCurrentThreadDictionary());
|
|
|
|
|
NSDebugMLLog(@"application",@"[NSRunLoop currentRunLoop]=%@",[NSRunLoop currentRunLoop]);
|
2003-04-09 12:03:17 +00:00
|
|
|
|
NSAssert(_currentRunLoop,@"No runLoop");
|
|
|
|
|
|
|
|
|
|
[_currentRunLoop run];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"NSRunLoop end run");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[_adaptors makeObjectsPerformSelector:unregisterForEventsSEL];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"GSWApplication end run");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//runLoop
|
|
|
|
|
|
|
|
|
|
-(NSRunLoop*)runLoop
|
|
|
|
|
{
|
2003-04-09 12:03:17 +00:00
|
|
|
|
return _currentRunLoop;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
// threadWillExit
|
|
|
|
|
//NDFN
|
|
|
|
|
-(void)threadWillExit
|
|
|
|
|
{
|
2001-10-28 10:29:17 +00:00
|
|
|
|
// GSWLogC("GC** GarbageCollector collectGarbages START");
|
2002-11-27 20:25:22 +00:00
|
|
|
|
printf("GC** GarbageCollector collectGarbages START\n");
|
2001-10-28 10:29:17 +00:00
|
|
|
|
//TODO-NOW [GarbageCollector collectGarbages];//LAST //CLEAN
|
|
|
|
|
// GSWLogC("GC** GarbageCollector collectGarbages STOP");
|
2002-11-27 20:25:22 +00:00
|
|
|
|
printf("GC** GarbageCollector collectGarbages STOP\n");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setTimeOut:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setTimeOut:(NSTimeInterval)aTimeInterval
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_timeOut=aTimeInterval;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//timeOut
|
|
|
|
|
|
|
|
|
|
-(NSTimeInterval)timeOut
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _timeOut;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//isTerminating
|
|
|
|
|
|
|
|
|
|
-(BOOL)isTerminating
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return NO;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//terminate
|
|
|
|
|
//TODO return (Vv8@0:4)
|
|
|
|
|
-(void)terminate
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_scheduleApplicationTimerForTimeInterval:(NSTimeInterval)aTimeInterval
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)addTimer:(NSTimer*)aTimer
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"[self runLoop]=%p",(void*)[self runLoop]);
|
|
|
|
|
NSDebugMLLog(@"application",@"currentMode=%@",[[self runLoop]currentMode]);
|
|
|
|
|
NSDebugMLLog(@"application",@"NSDefaultRunLoopMode=%@",NSDefaultRunLoopMode);
|
|
|
|
|
[[self runLoop]addTimer:aTimer
|
|
|
|
|
forMode:NSDefaultRunLoopMode];
|
|
|
|
|
NSDebugMLLog(@"application",@"limitDateForMode=%@",[[self runLoop]limitDateForMode:NSDefaultRunLoopMode]);
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,@"In addTimer:");
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)cancelInitialTimer
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)handleInitialTimer
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_setNextCollectionCount:(int)_count
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_sessionDidTimeOutNotification:(NSNotification*)notification
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
// does nothing ?
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(void)_openInitialURL
|
|
|
|
|
{
|
|
|
|
|
//call resourceMLanager ?
|
|
|
|
|
if ([[self class]isDirectConnectEnabled])
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSString* directConnectURL=[self _directConnectURL];
|
|
|
|
|
if ([[self class]autoOpenInBrowser])
|
|
|
|
|
{
|
|
|
|
|
[self _openURL:directConnectURL];
|
|
|
|
|
if ([[self class]isDebuggingEnabled])
|
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_openURL:(NSString*)url
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
// [NSBundle bundleForClass:XX];
|
|
|
|
|
//TODO finish
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(BOOL)runOnce
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return YES;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWRequestHandling)
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)checkAppIfRefused:(GSWRequest*)aRequest
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDictionary* requestHandlerValues=nil;
|
|
|
|
|
GSWResponse* response=nil;
|
|
|
|
|
NSString* sessionID=nil;
|
|
|
|
|
BOOL refuseRequest = NO;
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
|
|
|
|
|
NS_DURING
|
|
|
|
|
{
|
2002-09-16 23:50:55 +00:00
|
|
|
|
// NSLog(@"Application : checkAppIfRefused");
|
|
|
|
|
// NSLog(@"Application : allSessionIDs = %@", [_sessionStore allSessionIDs]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
requestHandlerValues=[GSWComponentRequestHandler _requestHandlerValuesForRequest:aRequest];
|
|
|
|
|
if (requestHandlerValues)
|
|
|
|
|
{
|
2002-09-16 23:50:55 +00:00
|
|
|
|
// NSLog(@"Application : requestHandlerValues is set");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
|
|
|
|
|
sessionID=[requestHandlerValues objectForKey:GSWKey_SessionID[GSWebNamingConv]];
|
|
|
|
|
if (!sessionID)
|
|
|
|
|
{
|
|
|
|
|
NSLog(@"Application : sessionID is nil");
|
|
|
|
|
|
|
|
|
|
if ([self isRefusingNewSessions])
|
|
|
|
|
refuseRequest = YES;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2002-09-16 23:50:55 +00:00
|
|
|
|
// NSLog(@"Application : sessionID found : %@", sessionID);
|
|
|
|
|
// NSLog(@"Application : allSessionIDs = %@", [_sessionStore allSessionIDs]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
// check for existing session ID
|
|
|
|
|
if (![_sessionStore containsSessionID:sessionID])
|
|
|
|
|
{
|
2002-09-16 23:50:55 +00:00
|
|
|
|
// NSLog(@"Application : sessionStore does not contain _sessionID");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if ([self isRefusingNewSessions])
|
|
|
|
|
refuseRequest = YES;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (refuseRequest)
|
|
|
|
|
{
|
|
|
|
|
NSLog(@"Application : refuseRequest == YES ,generate Response");
|
|
|
|
|
// generate response, to refuse the request
|
|
|
|
|
response=[GSWResponse generateRefusingResponseInContext:nil
|
|
|
|
|
forRequest:aRequest];
|
|
|
|
|
if (response)
|
|
|
|
|
[response _finalizeInContext:nil]; //DO Call _finalizeInContext: !
|
|
|
|
|
}
|
|
|
|
|
}
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
}
|
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
NS_ENDHANDLER;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
}
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)dispatchRequest:(GSWRequest*)aRequest
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWResponse* response=nil;
|
|
|
|
|
GSWRequestHandler* requestHandler=nil;
|
2002-10-28 19:57:10 +00:00
|
|
|
|
NSDate* reqStartDate=nil;
|
|
|
|
|
NSTimeInterval timeInterval = 0.0;
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
[self lock];
|
|
|
|
|
GSWApplicationDebugSetChange();
|
|
|
|
|
[self unlock];
|
|
|
|
|
#endif
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
|
2002-10-28 19:57:10 +00:00
|
|
|
|
reqStartDate = [NSDate date];
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
response = [self checkAppIfRefused:aRequest];
|
|
|
|
|
if (!response)
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"requests",@"aRequest=%@",aRequest);
|
|
|
|
|
requestHandler=[self handlerForRequest:aRequest];
|
|
|
|
|
NSDebugMLLog(@"requests",@"requestHandler=%@",requestHandler);
|
|
|
|
|
if (!requestHandler)
|
|
|
|
|
requestHandler=[self defaultRequestHandler];
|
|
|
|
|
NSDebugMLLog(@"requests",@"requestHandler=%@",requestHandler);
|
|
|
|
|
if (!requestHandler)
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog0(@"application",@"GSWApplication dispatchRequest: no request handler");
|
|
|
|
|
//TODO error
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"requests",@"sessionStore=%@",_sessionStore);
|
|
|
|
|
response=[requestHandler handleRequest:aRequest];
|
|
|
|
|
NSDebugMLLog(@"requests",@"sessionStore=%@",_sessionStore);
|
|
|
|
|
[self _resetCache];
|
2002-10-28 19:57:10 +00:00
|
|
|
|
timeInterval=[reqStartDate timeIntervalSinceNow];
|
|
|
|
|
// negate to make positive
|
|
|
|
|
timeInterval = timeInterval*-1.0;
|
|
|
|
|
[_statisticsStore _applicationDidHandleComponentActionRequestInTimeInterval:timeInterval];
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"requests",@"sessionStore=%@",_sessionStore);
|
|
|
|
|
};
|
|
|
|
|
if (!response)
|
|
|
|
|
{
|
|
|
|
|
//TODO RESPONSE_PB
|
|
|
|
|
};
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//awake
|
|
|
|
|
|
|
|
|
|
-(void)awake
|
|
|
|
|
{
|
|
|
|
|
//Does Nothing
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//takeValuesFromRequest:inContext:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)takeValuesFromRequest:(GSWRequest*)aRequest
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[aContext setValidate:YES];
|
|
|
|
|
session=[aContext existingSession];
|
|
|
|
|
[session takeValuesFromRequest:aRequest
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
[aContext setValidate:NO];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//invokeActionForRequest:inContext:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWElement*)invokeActionForRequest:(GSWRequest*)aRequest
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
GSWElement* element=nil;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2000-02-12 13:08:41 +00:00
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
session=[aContext existingSession];
|
|
|
|
|
element=[session invokeActionForRequest:aRequest
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
}
|
2000-02-12 13:08:41 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
LOGException0(@"exception in GSWApplication invokeActionForRequest:inContext");
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo(localException,
|
|
|
|
|
@"In GSWApplication invokeActionForRequest:inContext");
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
[localException raise];
|
|
|
|
|
}
|
2000-02-12 13:08:41 +00:00
|
|
|
|
NS_ENDHANDLER;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
return element;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//appendToResponse:inContext:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)appendToResponse:(GSWResponse*)aResponse
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWRequest* request=nil;
|
|
|
|
|
GSWSession* session=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2003-01-19 15:33:07 +00:00
|
|
|
|
NS_DURING
|
|
|
|
|
{
|
|
|
|
|
request=[aContext request];
|
|
|
|
|
NSDebugMLog(@"request=%p",request);
|
|
|
|
|
session=[aContext existingSession];
|
|
|
|
|
NSDebugMLog(@"session=%p",session);
|
|
|
|
|
[session appendToResponse:aResponse
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
//call request headerForKey:@"x-gsweb-recording"
|
|
|
|
|
//call applic recordingPath
|
|
|
|
|
}
|
|
|
|
|
NS_HANDLER
|
|
|
|
|
{
|
|
|
|
|
LOGException(@"exception in %@ appendToResponse:inContext",
|
|
|
|
|
[self class]);
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo(localException,
|
|
|
|
|
@"In %@ appendToResponse:inContext",
|
|
|
|
|
[self class]);
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
[localException raise];
|
|
|
|
|
}
|
|
|
|
|
NS_ENDHANDLER;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//sleep
|
|
|
|
|
|
|
|
|
|
-(void)sleep
|
|
|
|
|
{
|
|
|
|
|
//Does Nothing
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWErrorHandling)
|
|
|
|
|
|
2003-03-21 14:32:57 +00:00
|
|
|
|
//Not used now. For future exception handling rewrite
|
|
|
|
|
-(GSWResponse*)_invokeDefaultException:(NSException*)exception
|
|
|
|
|
named:(NSString*)name
|
|
|
|
|
inContext:(GSWContext*)aContext
|
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
GSWResponse* response=nil;
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
response=[GSWResponse responseWithMessage:@"Exception Handling failed"
|
|
|
|
|
inContext:aContext
|
|
|
|
|
forRequest:nil];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
return response;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//Not used now. For future exception handling rewrite
|
|
|
|
|
-(GSWResponse*)_handleErrorWithPageNamed:(NSString*)pageName
|
|
|
|
|
exception:(NSException*)anException
|
|
|
|
|
inContext:(GSWContext*)aContext
|
|
|
|
|
{
|
|
|
|
|
GSWResponse* response=nil;
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
NS_DURING
|
|
|
|
|
{
|
|
|
|
|
GSWComponent* page=[self pageWithName:pageName
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
if (anException)
|
|
|
|
|
[page takeValue:anException
|
|
|
|
|
forKey:@"exception"];
|
|
|
|
|
response=[page generateResponse];
|
|
|
|
|
}
|
|
|
|
|
NS_HANDLER
|
|
|
|
|
{
|
|
|
|
|
// My God ! Exception on exception !
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In _handleException:inContext:");
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
if ([[localException name]isEqualToString:GSWPageNotFoundException])
|
|
|
|
|
response=[self _invokeDefaultException:localException
|
|
|
|
|
named:pageName
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//TODO: better exception text...
|
|
|
|
|
NSException* exception=[NSException exceptionWithName:@"Exception"
|
|
|
|
|
reason:[NSString stringWithFormat:@"Cant handle exception %@",localException]
|
|
|
|
|
userInfo:nil];
|
|
|
|
|
response=[self _invokeDefaultException:exception
|
|
|
|
|
named:pageName
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
return response;
|
|
|
|
|
};
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)handleException:(NSException*)anException
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWResponse* response=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"context=%@",aContext);
|
|
|
|
|
NSDebugMLog(@"EXCEPTION=%@",anException);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
response=[self _handleException:anException
|
|
|
|
|
inContext:aContext];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In _handleException:inContext:");
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
response=[GSWResponse responseWithMessage:@"Exception Handling failed"
|
|
|
|
|
inContext:aContext
|
|
|
|
|
forRequest:nil];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAssert(![response isFinalizeInContextHasBeenCalled],
|
|
|
|
|
@"GSWApplication handleException: _finalizeInContext called for GSWResponse");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)_handleException:(NSException*)anException
|
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWContext* context=aContext;
|
|
|
|
|
GSWResponse* response=nil;
|
|
|
|
|
GSWResourceManager* resourceManager=nil;
|
|
|
|
|
NSString* exceptionPage=nil;
|
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
|
|
|
|
int iName=0;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWComponent* page=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2003-03-24 07:45:52 +00:00
|
|
|
|
NSLog(@"EXCEPTION: %@",anException);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"context=%@",context);
|
|
|
|
|
if (context)
|
|
|
|
|
[context _putAwakeComponentsToSleep];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2000-08-25 10:36:16 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
LOGError0(@"No context !");
|
|
|
|
|
context=[GSWContext contextWithRequest:nil];
|
|
|
|
|
LOGError0(@"Really can't get context !");
|
2000-08-25 10:36:16 +00:00
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
//TODO Hack: verify that there is an application context otherswise, it failed in component Creation
|
|
|
|
|
if (![self _context])
|
|
|
|
|
[self _setContext:context];
|
|
|
|
|
resourceManager=[self resourceManager];
|
|
|
|
|
for(iName=0;!page && iName<2;iName++)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
exceptionPage=[NSString stringWithFormat:@"%@%@",
|
|
|
|
|
GSWExceptionPageName[GSWebNamingConvForRound(iName)],
|
|
|
|
|
GSWPagePSuffix[GSWebNamingConvForRound(iName)]];
|
|
|
|
|
NSDebugMLog(@"exceptionPage=%@",exceptionPage);
|
|
|
|
|
if ([resourceManager pathForResourceNamed:exceptionPage
|
|
|
|
|
inFramework:GSWFramework_extensions[GSWebNamingConvForRound(iName)]
|
|
|
|
|
languages:nil])
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2003-03-21 14:32:57 +00:00
|
|
|
|
NSDebugMLog(@"exceptionPage=%@ found",exceptionPage);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_DURING
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
page=[self pageWithName:GSWExceptionPageName[GSWebNamingConvForRound(iName)]
|
|
|
|
|
inContext:context];
|
2003-03-24 07:45:52 +00:00
|
|
|
|
[page takeValue:anException
|
|
|
|
|
forKey:@"exception"];
|
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
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
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
|
|
|
|
{
|
|
|
|
|
LOGError0(@"exception in pageWithName while loading GSWExceptionPage !");
|
|
|
|
|
//TODO
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
2003-03-21 14:32:57 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
LOGError(@"exceptionPage=%@ Not found",exceptionPage);
|
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
|
|
|
|
};
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (page)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
id monitor=nil;
|
|
|
|
|
response=[page generateResponse];
|
|
|
|
|
monitor=[self _remoteMonitor];
|
|
|
|
|
if (monitor)
|
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
|
|
|
|
{
|
2002-11-27 20:25:22 +00:00
|
|
|
|
//Not used yet NSString* monitorApplicationName=[self _monitorApplicationName];
|
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
|
|
|
|
//TODO
|
|
|
|
|
};
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
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
|
|
|
|
{
|
|
|
|
|
LOGError0(@"Can't find exception page");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
response=[GSWResponse responseWithMessage:@"Exception Handling failed. Can't find Exception Page"
|
|
|
|
|
inContext:context
|
|
|
|
|
forRequest:nil];
|
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
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAssert(![response isFinalizeInContextHasBeenCalled],
|
|
|
|
|
@"GSWApplication _handleException: _finalizeInContext called for GSWResponse");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//handlePageRestorationError
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)handlePageRestorationErrorInContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWResponse* response=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
response=[self _handlePageRestorationErrorInContext:aContext];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In _handlePageRestorationErrorInContext:");
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
response=[GSWResponse responseWithMessage:@"Exception Handling failed. Can't find Page Restoration Error Page"
|
|
|
|
|
inContext:aContext
|
|
|
|
|
forRequest:nil];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAssert(![response isFinalizeInContextHasBeenCalled],
|
|
|
|
|
@"GSWApplication handlePageRestorationErrorInContext: _finalizeInContext called for GSWResponse");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//handlePageRestorationError
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)_handlePageRestorationErrorInContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWContext* context=aContext;
|
|
|
|
|
GSWResponse* response=nil;
|
|
|
|
|
GSWComponent* errorPage=nil;
|
|
|
|
|
GSWResourceManager* resourceManager=nil;
|
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
|
|
|
|
int iName=0;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* restorationErrorPage=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (context)
|
|
|
|
|
[context _putAwakeComponentsToSleep];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2000-08-25 10:36:16 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
LOGError0(@"No context !");
|
|
|
|
|
context=[GSWContext contextWithRequest:nil];
|
|
|
|
|
LOGError0(@"Really can't get context !");
|
2000-08-25 10:36:16 +00:00
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
//TODO Hack: verify that there is an application context otherswise, it failed in component Creation
|
|
|
|
|
if (![self _context])
|
|
|
|
|
[self _setContext:context];
|
|
|
|
|
resourceManager=[self resourceManager];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"GSWComponentRequestHandler _dispatchWithPreparedSession no page");
|
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
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
for(iName=0;!errorPage && iName<2;iName++)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
restorationErrorPage=[NSString stringWithFormat:@"%@%@",
|
|
|
|
|
GSWPageRestorationErrorPageName[GSWebNamingConvForRound(iName)],
|
|
|
|
|
GSWPagePSuffix[GSWebNamingConvForRound(iName)]];
|
|
|
|
|
NSDebugMLog(@"restorationErrorPage=%@",restorationErrorPage);
|
|
|
|
|
if ([resourceManager pathForResourceNamed:restorationErrorPage
|
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
|
|
|
|
inFramework:GSWFramework_extensions[GSWebNamingConvForRound(iName)]
|
2002-08-04 18:00:11 +00:00
|
|
|
|
languages:nil])
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
NS_DURING
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
errorPage=[self pageWithName:GSWPageRestorationErrorPageName[GSWebNamingConvForRound(iName)]
|
|
|
|
|
inContext:context];
|
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
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
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
|
|
|
|
{
|
|
|
|
|
LOGError0(@" exception in pageWithName while loading GSWPageRestorationErrorPage !");
|
|
|
|
|
//TODO
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
}
|
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
|
|
|
|
else
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGError0(@"");//TODO
|
|
|
|
|
};
|
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
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (errorPage)
|
|
|
|
|
response=[errorPage generateResponse];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
response=[GSWResponse responseWithMessage:@"Exception Handling failed. Can't find Page Restoration Error Page"
|
|
|
|
|
inContext:context
|
|
|
|
|
forRequest:nil];
|
|
|
|
|
};
|
|
|
|
|
NSAssert(![response isFinalizeInContextHasBeenCalled],
|
|
|
|
|
@"GSWApplication _handlePageRestorationErrorInContext: _finalizeInContext called for GSWResponse");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//handleSessionCreationError
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)handleSessionCreationErrorInContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWResponse* response=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
response=[self _handleSessionCreationErrorInContext:aContext];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In _handleSessionCreationErrorInContext:");
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
response=[GSWResponse responseWithMessage:@"Session Creation Error Handling failed."
|
|
|
|
|
inContext:aContext
|
|
|
|
|
forRequest:nil];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAssert(![response isFinalizeInContextHasBeenCalled],
|
|
|
|
|
@"GSWApplication handleSessionCreationErrorInContext: _finalizeInContext called for GSWResponse");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//handleSessionCreationError
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)_handleSessionCreationErrorInContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//handleSessionRestorationError
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)handleSessionRestorationErrorInContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWResponse* response=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
response=[self _handleSessionRestorationErrorInContext:aContext];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo0(localException,
|
|
|
|
|
@"In _handleSessionRestorationErrorInContext:");
|
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
|
response=[GSWResponse responseWithMessage:@"Session Restoration Error Handling failed."
|
|
|
|
|
inContext:aContext
|
|
|
|
|
forRequest:nil];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSAssert(![response isFinalizeInContextHasBeenCalled],
|
|
|
|
|
@"GSWApplication handleSessionRestorationErrorInContext: _finalizeInContext called for GSWResponse");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//handleSessionRestorationError
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)_handleSessionRestorationErrorInContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWContext* context=aContext;
|
|
|
|
|
GSWResponse* response=nil;
|
|
|
|
|
GSWComponent* errorPage=nil;
|
|
|
|
|
GSWResourceManager* resourceManager=nil;
|
|
|
|
|
NSString* sessionRestorationErrorPage=nil;
|
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
|
|
|
|
int iName=0;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (context)
|
|
|
|
|
[context _putAwakeComponentsToSleep];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2000-08-25 10:36:16 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
LOGError0(@"No context !");
|
|
|
|
|
context=[GSWContext contextWithRequest:nil];
|
|
|
|
|
LOGError0(@"Really can't get context !");
|
2000-08-25 10:36:16 +00:00
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
//TODO Hack: verify that there is an application context otherswise, it failed in component Creation
|
|
|
|
|
if (![self _context])
|
|
|
|
|
[self _setContext:context];
|
|
|
|
|
resourceManager=[self resourceManager];
|
|
|
|
|
for(iName=0;!errorPage && iName<2;iName++)
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
sessionRestorationErrorPage=[NSString stringWithFormat:@"%@%@",
|
|
|
|
|
GSWSessionRestorationErrorPageName[GSWebNamingConvForRound(iName)],
|
|
|
|
|
GSWPagePSuffix[GSWebNamingConvForRound(iName)]];
|
|
|
|
|
NSDebugMLog(@"sessionRestorationErrorPage=%@",sessionRestorationErrorPage);
|
|
|
|
|
if ([resourceManager pathForResourceNamed:sessionRestorationErrorPage
|
|
|
|
|
inFramework:GSWFramework_extensions[GSWebNamingConvForRound(iName)]
|
|
|
|
|
languages:nil])
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
NS_DURING
|
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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
errorPage=[self pageWithName:GSWSessionRestorationErrorPageName[GSWebNamingConvForRound(iName)]
|
|
|
|
|
inContext:context];
|
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
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
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
|
|
|
|
{
|
|
|
|
|
LOGError0(@"Exception in pageWIthName while loading GSWSessionRestorationErrorPage !");
|
|
|
|
|
//TODO
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
}
|
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
|
|
|
|
else
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGError0(@"");//TODO
|
|
|
|
|
};
|
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
|
|
|
|
};
|
2001-10-28 10:29:17 +00:00
|
|
|
|
//======>
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (errorPage)
|
|
|
|
|
response=[errorPage generateResponse];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
else
|
2001-10-28 10:29:17 +00:00
|
|
|
|
//<========
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
response=[GSWResponse responseWithMessage:@"Session Restoration Error Handling failed."
|
|
|
|
|
inContext:context
|
|
|
|
|
forRequest:nil];
|
|
|
|
|
};
|
|
|
|
|
NSAssert(![response isFinalizeInContextHasBeenCalled],
|
|
|
|
|
@"GSWApplication _handleSessionRestorationErrorInContext: _finalizeInContext called for GSWResponse");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return response;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWConveniences)
|
|
|
|
|
+(GSWApplication*)application
|
|
|
|
|
{
|
|
|
|
|
return GSWApp;
|
|
|
|
|
};
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)_setApplication:(GSWApplication*)application
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
//Call self _isDynamicLoadingEnabled
|
|
|
|
|
//call self isTerminating
|
|
|
|
|
//call self isCachingEnabled
|
|
|
|
|
//call self isPageRefreshOnBacktrackEnabled
|
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
|
|
|
|
NSDebugMLog(@"setApplication:%p (of class %@) name:%@",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
application,
|
|
|
|
|
[application class],
|
|
|
|
|
[application name]);
|
|
|
|
|
GSWApp=application;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWHTMLTemplateParsingDebugging)
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setPrintsHTMLParserDiagnostics:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setPrintsHTMLParserDiagnostics:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
_printsHTMLParserDiagnostics=flag;
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//printsHTMLParserDiagnostics
|
|
|
|
|
|
|
|
|
|
-(BOOL)printsHTMLParserDiagnostics
|
|
|
|
|
{
|
2000-10-04 22:19:43 +00:00
|
|
|
|
//FIXME
|
|
|
|
|
// return [GSWHTMLParser printsDiagnostics];
|
|
|
|
|
return NO;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWScriptedObjectSupport)
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//scriptedClassWithPath:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(Class)scriptedClassWithPath:(NSString*)path
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//scriptedClassWithPath:encoding:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(Class)scriptedClassWithPath:(NSString*)path
|
|
|
|
|
encoding:(NSStringEncoding)encoding
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(Class)_classWithScriptedClassName:(NSString*)aName
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_setClassFromNameResolutionEnabled:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWLibrarySupport)
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(Class)libraryClassWithPath:(NSString*)path
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
Class aClass=nil;
|
|
|
|
|
NSBundle* bundle=[NSBundle bundleWithPath:path];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"GSWApplication libraryClassWithPath:bundle=%@",bundle);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (bundle)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
BOOL result=[bundle load];
|
|
|
|
|
NSDebugMLLog(@"application",@"GSWApplication libraryClassWithPath:bundle load result=%d",result);
|
|
|
|
|
aClass=[bundle principalClass];
|
|
|
|
|
NSDebugMLLog(@"application",@"GSWApplication libraryClassWithPath:bundle class=%@",aClass);
|
|
|
|
|
};
|
|
|
|
|
return aClass;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@implementation GSWApplication (GSWDebugging)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)debugWithString:(NSString*)aString
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
if ([[self class]isDebuggingEnabled])
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
fputs([aString cString],stderr);
|
|
|
|
|
fputs("\n",stderr);
|
|
|
|
|
fflush(stderr);
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)debugWithFormat:(NSString*)aFormat
|
|
|
|
|
arguments:(va_list)arguments
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* string=[NSString stringWithFormat:aFormat
|
|
|
|
|
arguments:arguments];
|
|
|
|
|
[self debugWithString:string];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)debugWithFormat:(NSString*)aFormat,...
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2000-08-25 10:36:16 +00:00
|
|
|
|
va_list ap=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[self debugWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)debugWithFormat:(NSString*)aFormat,...
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2000-08-25 10:36:16 +00:00
|
|
|
|
va_list ap=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[GSWApp debugWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)_setTracingAspect:(id)unknwon
|
|
|
|
|
enabled:(BOOL)enabled
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)logWithFormat:(NSString*)aFormat,...
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2000-08-25 10:36:16 +00:00
|
|
|
|
va_list ap=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[self logWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)logWithFormat:(NSString*)aFormat,...
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2000-08-25 10:36:16 +00:00
|
|
|
|
va_list ap=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[GSWApp logWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)logWithFormat:(NSString*)aFormat
|
|
|
|
|
arguments:(va_list)arguments
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* string=[NSString stringWithFormat:aFormat
|
|
|
|
|
arguments:arguments];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
fputs([string cString],stderr);
|
|
|
|
|
fputs("\n",stderr);
|
|
|
|
|
fflush(stderr);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)logErrorWithFormat:(NSString*)aFormat,...
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2000-08-25 10:36:16 +00:00
|
|
|
|
va_list ap=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[self logErrorWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)logErrorWithFormat:(NSString*)aFormat,...
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2000-08-25 10:36:16 +00:00
|
|
|
|
va_list ap=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[GSWApp logErrorWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)logErrorWithFormat:(NSString*)aFormat
|
|
|
|
|
arguments:(va_list)arguments
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
const char* cString=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* string=[NSString stringWithFormat:aFormat
|
|
|
|
|
arguments:arguments];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
cString=[string cString];
|
|
|
|
|
fputs(cString,stderr);
|
|
|
|
|
fputs("\n",stderr);
|
|
|
|
|
fflush(stderr);
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
fputs(cString,stdout);
|
|
|
|
|
fputs("\n",stdout);
|
|
|
|
|
fflush(stdout);
|
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//trace:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)trace:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (flag!=_isTracingEnabled)
|
|
|
|
|
{
|
|
|
|
|
[self lock];
|
|
|
|
|
_isTracingEnabled=flag;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//traceAssignments:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)traceAssignments:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (flag!=_isTracingAssignmentsEnabled)
|
|
|
|
|
{
|
|
|
|
|
[self lock];
|
|
|
|
|
_isTracingAssignmentsEnabled=flag;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//traceObjectiveCMessages:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)traceObjectiveCMessages:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (flag!=_isTracingObjectiveCMessagesEnabled)
|
|
|
|
|
{
|
|
|
|
|
[self lock];
|
|
|
|
|
_isTracingObjectiveCMessagesEnabled=flag;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//traceScriptedMessages:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)traceScriptedMessages:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (flag!=_isTracingScriptedMessagesEnabled)
|
|
|
|
|
{
|
|
|
|
|
[self lock];
|
|
|
|
|
_isTracingScriptedMessagesEnabled=flag;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//traceStatements:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)traceStatements:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (flag!=_isTracingStatementsEnabled)
|
|
|
|
|
{
|
|
|
|
|
[self lock];
|
|
|
|
|
_isTracingStatementsEnabled=flag;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)logSynchronizeComponentToParentForValue:(id)aValue
|
|
|
|
|
association:(GSWAssociation*)anAssociation
|
|
|
|
|
inComponent:(NSObject*)aComponent
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
[self logWithFormat:@"ComponentToParent [%@:%@] %@ ==> %@",
|
|
|
|
|
@"",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[aComponent description],
|
|
|
|
|
aValue,
|
|
|
|
|
[anAssociation bindingName]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)logSynchronizeParentToComponentForValue:(id)aValue
|
|
|
|
|
association:(GSWAssociation*)anAssociation
|
|
|
|
|
inComponent:(NSObject*)aComponent
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
[self logWithFormat:@"ParentToComponent [%@:%@] %@ ==> %@",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
@"",
|
|
|
|
|
[aComponent description],
|
|
|
|
|
aValue,
|
|
|
|
|
[anAssociation bindingName]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)logTakeValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
|
associationDescription:(NSString*)associationDescription
|
|
|
|
|
value:(id)aValue
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[GSWApp logTakeValueForDeclarationNamed:aDeclarationName
|
|
|
|
|
type:aDeclarationType
|
|
|
|
|
bindingNamed:aBindingName
|
|
|
|
|
associationDescription:associationDescription
|
|
|
|
|
value:aValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)logSetValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
|
associationDescription:(NSString*)associationDescription
|
|
|
|
|
value:(id)aValue
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[GSWApp logSetValueForDeclarationNamed:aDeclarationName
|
|
|
|
|
type:aDeclarationType
|
|
|
|
|
bindingNamed:aBindingName
|
|
|
|
|
associationDescription:associationDescription
|
|
|
|
|
value:aValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)logTakeValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
|
associationDescription:(NSString*)associationDescription
|
|
|
|
|
value:(id)aValue
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
[self logWithFormat:@"TakeValue DeclarationNamed:%@ type:%@ bindingNamed:%@ associationDescription:%@ value:%@",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
aDeclarationName,
|
|
|
|
|
aDeclarationType,
|
|
|
|
|
aBindingName,
|
|
|
|
|
associationDescription,
|
|
|
|
|
aValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)logSetValueForDeclarationNamed:(NSString*)aDeclarationName
|
|
|
|
|
type:(NSString*)aDeclarationType
|
|
|
|
|
bindingNamed:(NSString*)aBindingName
|
|
|
|
|
associationDescription:(NSString*)associationDescription
|
|
|
|
|
value:(id)aValue
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO
|
|
|
|
|
[self logWithFormat:@"SetValue DeclarationNamed:%@ type:%@ bindingNamed:%@ associationDescription:%@ value:%@",
|
2002-08-04 18:00:11 +00:00
|
|
|
|
aDeclarationName,
|
|
|
|
|
aDeclarationType,
|
|
|
|
|
aBindingName,
|
|
|
|
|
associationDescription,
|
|
|
|
|
aValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2000-03-20 15:50:51 +00:00
|
|
|
|
//====================================================================
|
|
|
|
|
//Same as GSWDebugging but it print messages on stdout AND call GSWDebugging methods
|
|
|
|
|
@implementation GSWApplication (GSWDebuggingStatus)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)statusDebugWithString:(NSString*)aString
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
|
|
|
|
if ([[self class]isStatusDebuggingEnabled])
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
fputs([aString cString],stdout);
|
|
|
|
|
fputs("\n",stdout);
|
|
|
|
|
fflush(stdout);
|
|
|
|
|
[self debugWithString:aString];
|
|
|
|
|
};
|
2000-03-20 15:50:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)statusDebugWithFormat:(NSString*)aFormat
|
|
|
|
|
arguments:(va_list)arguments
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* string=[NSString stringWithFormat:aFormat
|
|
|
|
|
arguments:arguments];
|
|
|
|
|
[self statusDebugWithString:string];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)statusDebugWithFormat:(NSString*)aFormat,...
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2000-04-28 21:27:55 +00:00
|
|
|
|
va_list ap;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[self statusDebugWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)statusDebugWithFormat:(NSString*)aFormat,...
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2000-04-28 21:27:55 +00:00
|
|
|
|
va_list ap;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[GSWApp statusDebugWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)statusLogWithFormat:(NSString*)aFormat,...
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2000-04-28 21:27:55 +00:00
|
|
|
|
va_list ap;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[self statusLogWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)statusLogWithFormat:(NSString*)aFormat,...
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2000-04-28 21:27:55 +00:00
|
|
|
|
va_list ap;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[GSWApp statusLogWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)statusLogWithFormat:(NSString*)aFormat
|
|
|
|
|
arguments:(va_list)arguments
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* string=[NSString stringWithFormat:aFormat
|
|
|
|
|
arguments:arguments];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
fputs([string cString],stdout);
|
|
|
|
|
fputs("\n",stdout);
|
|
|
|
|
fflush(stdout);
|
|
|
|
|
[self logWithFormat:@"%@",string];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)statusLogErrorWithFormat:(NSString*)aFormat,...
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2000-04-28 21:27:55 +00:00
|
|
|
|
va_list ap;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[self statusLogErrorWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)statusLogErrorWithFormat:(NSString*)aFormat,...
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2000-04-28 21:27:55 +00:00
|
|
|
|
va_list ap;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
va_start(ap,aFormat);
|
|
|
|
|
[GSWApp statusLogErrorWithFormat:aFormat
|
|
|
|
|
arguments:ap];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
va_end(ap);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)statusLogErrorWithFormat:(NSString*)aFormat
|
|
|
|
|
arguments:(va_list)arguments
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
|
|
|
|
const char* cString=NULL;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* string=[NSString stringWithFormat:aFormat
|
|
|
|
|
arguments:arguments];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
cString=[string cString];
|
|
|
|
|
fputs(cString,stdout);
|
|
|
|
|
fputs("\n",stdout);
|
|
|
|
|
fflush(stdout);
|
|
|
|
|
[self logErrorWithFormat:@"%@",string];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWStatisticsSupport)
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//statistics
|
|
|
|
|
-(bycopy NSDictionary*)statistics
|
|
|
|
|
{
|
|
|
|
|
return [[[[self statisticsStore] statistics] copy]autorelease];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//statisticsStore
|
|
|
|
|
-(GSWStatisticsStore*)statisticsStore
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _statisticsStore;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setStatisticsStore:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setStatisticsStore:(GSWStatisticsStore*)statisticsStore
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
ASSIGN(_statisticsStore,statisticsStore);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (MonitorableApplication)
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//monitoringEnabled
|
|
|
|
|
-(BOOL)monitoringEnabled
|
|
|
|
|
{
|
|
|
|
|
//return monitoringEnabled;
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return YES;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//activeSessionsCount
|
|
|
|
|
-(int)activeSessionsCount
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _activeSessionsCount;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setMinimumActiveSessionsCount:
|
|
|
|
|
//TODO return (Vv12@0:4i8)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setMinimumActiveSessionsCount:(int)count
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
//LOGObjectFnNotImplemented(); //TODOFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_minimumActiveSessionsCount = count;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//minimumActiveSessionsCountCount
|
|
|
|
|
-(int)minimumActiveSessionsCount
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _minimumActiveSessionsCount;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//isRefusingNewSessions
|
|
|
|
|
-(BOOL)isRefusingNewSessions
|
|
|
|
|
{
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
//LOGObjectFnNotImplemented(); //TODOFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _refusingNewSessions;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//refuseNewSessions:
|
|
|
|
|
//TODO return: (Vv9@0:4c8)
|
|
|
|
|
-(void)refuseNewSessions:(BOOL)flag
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
_refusingNewSessions = flag;
|
2001-10-25 Manuel Guesdon <mguesdon@orange-concept.com>
Applied patch from Turbocat (www.turbocat.de): GSWPatch_04-JUL_2001.diff
except GSWeb.framework/GSWInput.m/.h one (have to verify coherence of it)
* GSWAdaptors/common/GSWApp.c/.h: Added GSWAppInfo
* GSWAdaptors/common/GSWAppConnectNSSocket.c: Changes on includes
* GSWAdaptors/common/GSWLoadBalancing.h: Added parameter to GSWLoadBalancing_Find*
* GSWAdaptors/common/GSWLoadBalancing.c: added p_pURLComponents parameter,
o management of AppInfo
* GSWAdaptors/common/GSWAppRequest.c: managing refused connections
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.gswd: misspelling correction
* GSWExtensions.framework/GSWStatsPage.gswc/GSWStatsPage.html: Various Changes
* GSWExtensions.framework/GSWStatsPage.m: changes in login/password validation
o -awake added
* GSWeb.framework/GSWApplication.m/.h: Manage refusing new sessions
* GSWeb.framework/GSWBundle.m: debug traces commented
* GSWeb.framework/GSWComponent.m: implementation of ensureAwakeInContext:
* GSWeb.framework/GSWAssociation.m: special case for returned value of type GSMutableArray (Why ?)
* GSWeb.framework/GSWComponentRequestHandler.m: comments added
* GSWeb.framework/GSWDefaultAdaptorThread.m: added debug traces
* GSWeb.framework/GSWDirectActionRequestHandler.m: replaced GSWDirectAction by DirectAction
* GSWeb.framework/GSWDisplayGroup.m: initialize _baseIndex,
o correct misspelled names,
o added -description,
o use delegate in _changedInEditingContext:, _invalidatedAllObjectsInStore:,
o changes in -deleteObjectAtIndex:,
* GSWeb.framework/GSWFileUpload.m: different handling of _fileDatasCount,
handle bug in omniweb-browser
* GSWeb.framework/GSWHyperlink.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWImageButton.m: added ensureAwakeInContext: call
* GSWeb.framework/GSWPopUpButton.m:
o use [response_ appendContentString:_noSelectionStringValue] instead of
[response_ appendContentHTMLString:_noSelectionStringValue]
o handle no displayString case
o use [response_ appendContentString:_displayStringValue] instead of
[response_ appendContentHTMLString:_displayStringValue]
* GSWeb.framework/GSWConfig.h: set GSWOPTVALUE_AutoOpenInBrowser to NO
* GSWeb.framework/GSWElementIDString.m: comment some debug traces
* GSWeb.framework/GSWHTMLStaticGroup.m/.h: added support of documentType
* GSWeb.framework/GSWHTMLURLValuedElement.m: addeded debug trace
* GSWeb.framework/GSWKeyValueAssociation.m: use NSStringFromClass([retValue class])
instead of [retValue class] for log
* GSWeb.framework/GSWRequest.m/.h: added -(NSDictionary*)headers;
o added test on _contentType in _contentType
o autorelease _dict in -uriElements
* GSWeb.framework/GSWResponse.m/.h: added -setHeaders: and -headers
o Added GSWResponse (GSWResponseRefused)
o return self in -generateResponse
* GSWeb.framework/GSWServerSessionStore.m/.h: added @interface GSWServerSessionStore (GSWServerSessionStoreInfo)
o added refusing session management
* GSWeb.framework/GSWSession.m:
o in -terminate forces to call removeSessionWithID in GSWServerSessionStore to dealloc it
* GSWeb.framework/GSWSessionTimeOutManager.m/.h: replace NSMutableOrderedArray* sessionOrderedTimeOuts;
by NSMutableArray* sessionOrderedTimeOuts;
o added traces
o added GSWSessionTimeOutManager (GSWSessionRefused)
* GSWeb.framework/GSWSubmitButton.m: raise exception if no element is returned
* GSWeb.framework/GSWTemplateParser.m: added doctype management
* GSWeb.framework/GSWUtils.h: added if defined for __NetBSD__
* GSWeb.framework/GSWWOCompatibility.m/.h: added WOGenericContainer, WOImageButton, WOHyperlink
* GSWeb.framework/attach.m: added if defined for __NetBSD__
* GSWeb.framework/stacktrace.m: added if defined for __NetBSD__
* GSWeb.framework/GSWTemplateParserXML.m: traces commented
o test XML node content before adding it
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m
o changes in -getIVarNamed: and in setIVarNamed:withValue: (use of sel+imp, tests on parameters)
* GSWAdaptors/common/GSWHTTPResponse.c: change in GSWHTTPResponse_GetResponse()
o debug traces removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@11251 72102866-910b-0410-8b05-ffd578937521
2001-10-26 08:50:52 +00:00
|
|
|
|
//LOGObjectFnNotImplemented(); //TODOFN
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//logToMonitorWithFormat:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)logToMonitorWithFormat:(NSString*)aFormat
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//terminateAfterTimeInterval:
|
|
|
|
|
//TODO return (Vv16@0:4d8)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)terminateAfterTimeInterval:(NSTimeInterval)aTimeInterval
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWResourceManagerSupport)
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//setResourceManager:
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setResourceManager:(GSWResourceManager*)resourceManager
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
ASSIGN(_resourceManager,resourceManager);
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
LOGException(@"%@ (%@)",localException,[localException reason]);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//resourceManager
|
|
|
|
|
-(GSWResourceManager*)resourceManager
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _resourceManager;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (RequestDispatching)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(GSWRequestHandler*)defaultRequestHandler
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return _defaultRequestHandler;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)setDefaultRequestHandler:(GSWRequestHandler*)handler
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
ASSIGN(_defaultRequestHandler,handler);
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"EXCEPTION:%@ (%@) [%s %d]",
|
|
|
|
|
localException,[localException reason],__FILE__,__LINE__);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)registerRequestHandler:(GSWRequestHandler*)handler
|
|
|
|
|
forKey:(NSString*)aKey
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
if (!_requestHandlers)
|
|
|
|
|
_requestHandlers=[NSMutableDictionary new];
|
|
|
|
|
[_requestHandlers setObject:handler
|
|
|
|
|
forKey:aKey];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"EXCEPTION:%@ (%@) [%s %d]",
|
|
|
|
|
localException,[localException reason],__FILE__,__LINE__);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(void)removeRequestHandlerForKey:(NSString*)requestHandlerKey
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
|
|
|
|
[self lock];
|
|
|
|
|
NS_DURING
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
[_requestHandlers removeObjectForKey:requestHandlerKey];
|
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_HANDLER
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSDebugMLLog(@"application",@"EXCEPTION:%@ (%@) [%s %d]",
|
|
|
|
|
localException,[localException reason],__FILE__,__LINE__);
|
|
|
|
|
//TODO
|
|
|
|
|
[self unlock];
|
|
|
|
|
[localException raise];
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
NS_ENDHANDLER;
|
|
|
|
|
[self unlock];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSArray*)registeredRequestHandlerKeys
|
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [_requestHandlers allKeys];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWRequestHandler*)requestHandlerForKey:(NSString*)aKey
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWRequestHandler* handler=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
handler=[_requestHandlers objectForKey:aKey];
|
|
|
|
|
NSDebugMLogCond(!handler,@"_requestHandlers=%@",_requestHandlers);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return handler;
|
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
|
|
|
|
{
|
|
|
|
|
//OK
|
2002-08-04 18:00:11 +00:00
|
|
|
|
GSWRequestHandler* handler=nil;
|
|
|
|
|
NSString* requestHandlerKey=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
requestHandlerKey=[aRequest requestHandlerKey];
|
|
|
|
|
NSDebugMLLog(@"application",@"requestHandlerKey=%@",requestHandlerKey);
|
|
|
|
|
handler=[self requestHandlerForKey:requestHandlerKey];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return handler;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (UserDefaults)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//TODO: take values from application ?
|
|
|
|
|
+(NSArray*)loadFrameworks
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_LoadFrameworks[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setLoadFrameworks:(NSArray*)frameworks
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:frameworks
|
|
|
|
|
forKey:GSWOPT_LoadFrameworks[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)isDebuggingEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_DebuggingEnabled[GSWebNamingConv]] boolValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setDebuggingEnabled:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:[NSNumber numberWithBool:flag]
|
|
|
|
|
forKey:GSWOPT_DebuggingEnabled[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2000-03-20 15:50:51 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
|
|
|
|
+(BOOL)isStatusDebuggingEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_StatusDebuggingEnabled[GSWebNamingConv]] boolValue];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setStatusDebuggingEnabled:(BOOL)flag
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:[NSNumber numberWithBool:flag]
|
|
|
|
|
forKey:GSWOPT_StatusDebuggingEnabled[GSWebNamingConv]];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)autoOpenInBrowser
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_AutoOpenInBrowser[GSWebNamingConv]] boolValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setAutoOpenInBrowser:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:[NSNumber numberWithBool:flag]
|
|
|
|
|
forKey:GSWOPT_AutoOpenInBrowser[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)isDirectConnectEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_DirectConnectEnabled[GSWebNamingConv]] boolValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setDirectConnectEnabled:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:[NSNumber numberWithBool:flag]
|
|
|
|
|
forKey:GSWOPT_DirectConnectEnabled[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)cgiAdaptorURL
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_CGIAdaptorURL[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setCGIAdaptorURL:(NSString*)url
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:url
|
|
|
|
|
forKey:GSWOPT_CGIAdaptorURL[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)isCachingEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_CachingEnabled[GSWebNamingConv]] boolValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setCachingEnabled:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:[NSNumber numberWithBool:flag]
|
|
|
|
|
forKey:GSWOPT_CachingEnabled[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)applicationBaseURL
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSString* url=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
url=[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_ApplicationBaseURL[GSWebNamingConv]];
|
|
|
|
|
NSDebugMLLog(@"application",@"url=%@",url);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return url;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setApplicationBaseURL:(NSString*)baseURL
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:baseURL
|
|
|
|
|
forKey:GSWOPT_ApplicationBaseURL[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)frameworksBaseURL
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_FrameworksBaseURL[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setFrameworksBaseURL:(NSString*)aString
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:aString
|
|
|
|
|
forKey:GSWOPT_FrameworksBaseURL[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)recordingPath
|
|
|
|
|
{
|
|
|
|
|
//return [[NSUserDefaults standardUserDefaults] objectForKey:@""];
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(void)setRecordingPath:(NSString*)path_
|
|
|
|
|
{
|
|
|
|
|
// [[NSUserDefaults standardUserDefaults] setObject:path_
|
|
|
|
|
// forKey:@""];
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSArray*)projectSearchPath
|
|
|
|
|
{
|
|
|
|
|
//OK //TODO
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSArray* projectSearchPath=nil;
|
|
|
|
|
NSBundle* mainBundle=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStart();
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
mainBundle=[NSBundle mainBundle];
|
|
|
|
|
NSDebugMLLog(@"options",
|
|
|
|
|
@"[[NSUserDefaults standardUserDefaults] dictionaryRepresentation]=%@",
|
|
|
|
|
[[NSUserDefaults standardUserDefaults] dictionaryRepresentation]);
|
|
|
|
|
projectSearchPath=[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_ProjectSearchPath]; //return H:\\Wotests
|
|
|
|
|
NSDebugMLLog(@"application",@"projectSearchPath:%@",projectSearchPath);
|
|
|
|
|
if (!projectSearchPath)
|
|
|
|
|
{
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//TODO dirty hack here !
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSBundle* mainBundle=[self mainBundle];
|
|
|
|
|
NSString* bundlePath=[mainBundle bundlePath];
|
|
|
|
|
NSString* path=[bundlePath stringGoodPath];
|
2003-05-14 08:08:57 +00:00
|
|
|
|
NSAssert(mainBundle,@"No mainBundle");
|
|
|
|
|
NSAssert(bundlePath,@"No bundlePath");
|
|
|
|
|
NSAssert(path,@"No path");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"bundlePath:%@",bundlePath);
|
|
|
|
|
NSDebugMLLog(@"application",@"path:%@",path);
|
|
|
|
|
NSDebugMLLog(@"application",@"mainBundle:%@",mainBundle);
|
|
|
|
|
path=[path stringByDeletingLastPathComponent];
|
|
|
|
|
NSDebugMLLog(@"application",@"path:%@",path);
|
|
|
|
|
projectSearchPath=[NSArray arrayWithObject:path];
|
|
|
|
|
};
|
|
|
|
|
NSDebugMLLog(@"application",@"projectSearchPath:%@",projectSearchPath);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return projectSearchPath;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setProjectSearchPath:(NSArray*)paths
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:paths
|
|
|
|
|
forKey:GSWOPT_ProjectSearchPath];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)isMonitorEnabled
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_MonitorEnabled[GSWebNamingConv]] boolValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setMonitorEnabled:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:[NSNumber numberWithBool:flag]
|
|
|
|
|
forKey:GSWOPT_MonitorEnabled[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)monitorHost
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_MonitorHost[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setMonitorHost:(NSString*)hostName
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:hostName
|
|
|
|
|
forKey:GSWOPT_MonitorHost[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)SMTPHost
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_SMTPHost[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setSMTPHost:(NSString*)hostName
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:hostName
|
|
|
|
|
forKey:GSWOPT_SMTPHost[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)adaptor
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_Adaptor[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setAdaptor:(NSString*)adaptorName
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:adaptorName
|
|
|
|
|
forKey:GSWOPT_Adaptor[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(id)port
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_Port[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setPort:(id)port
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:port
|
|
|
|
|
forKey:GSWOPT_Port[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//TODO
|
|
|
|
|
/*
|
|
|
|
|
[[GSWApp adaptors] makeObjectsPerformSelector:@selector(setPort:)
|
|
|
|
|
withObject:port_];
|
|
|
|
|
*/
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(id)host
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_Host[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setHost:(id)host
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:host
|
|
|
|
|
forKey:GSWOPT_Host[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//TODO
|
|
|
|
|
/*
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[GSWApp adaptors] makeObjectsPerformSelector:@selector(setHost:)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
withObject:host_];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
*/
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(id)listenQueueSize
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_ListenQueueSize[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setListenQueueSize:(id)listenQueueSize
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:listenQueueSize
|
|
|
|
|
forKey:GSWOPT_ListenQueueSize[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[[GSWApp adaptors] makeObjectsPerformSelector:@selector(setListenQueueSize:)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
withObject:listenQueueSize];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(id)workerThreadCount
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_WorkerThreadCount[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setWorkerThreadCount:(id)workerThreadCount
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:workerThreadCount
|
|
|
|
|
forKey:GSWOPT_WorkerThreadCount[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
[[GSWApp adaptors] makeObjectsPerformSelector:@selector(setWorkerThreadCount:)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
withObject:workerThreadCount];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSArray*)additionalAdaptors
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_AdditionalAdaptors[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setAdditionalAdaptors:(NSArray*)adaptorsArray
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:adaptorsArray
|
|
|
|
|
forKey:GSWOPT_AdditionalAdaptors[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)includeCommentsInResponses
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_IncludeCommentsInResponse[GSWebNamingConv]] boolValue];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setIncludeCommentsInResponses:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:[NSNumber numberWithBool:flag]
|
|
|
|
|
forKey:GSWOPT_IncludeCommentsInResponse[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)componentRequestHandlerKey
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_ComponentRequestHandlerKey[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setComponentRequestHandlerKey:(NSString*)aKey
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:aKey
|
|
|
|
|
forKey:GSWOPT_ComponentRequestHandlerKey[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)directActionRequestHandlerKey
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_DirectActionRequestHandlerKey[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setDirectActionRequestHandlerKey:(NSString*)aKey
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:aKey
|
|
|
|
|
forKey:GSWOPT_DirectActionRequestHandlerKey[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSString*)resourceRequestHandlerKey
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_ResourceRequestHandlerKey[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setResourceRequestHandlerKey:(NSString*)aKey
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults] setObject:aKey
|
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
|
|
|
|
forKey:GSWOPT_ResourceRequestHandlerKey[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setSessionTimeOut:(NSNumber*)aTimeOut
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGClassFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"sessions",@"aTimeOut=%@",aTimeOut);
|
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:aTimeOut
|
|
|
|
|
forKey:GSWOPT_SessionTimeOut[GSWebNamingConv]];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-07-04 11:01:56 +00:00
|
|
|
|
+(NSNumber*)sessionTimeOut
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
id sessionTimeOut=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
sessionTimeOut=[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_SessionTimeOut[GSWebNamingConv]];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionTimeOut=%@",sessionTimeOut);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return sessionTimeOut;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2002-07-04 11:01:56 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setSessionTimeOutValue:(NSTimeInterval)aTimeOutValue
|
2002-07-04 11:01:56 +00:00
|
|
|
|
{
|
|
|
|
|
LOGClassFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"sessions",@"aTimeOutValue=%f",aTimeOutValue);
|
|
|
|
|
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithDouble:aTimeOutValue]
|
2002-07-04 11:01:56 +00:00
|
|
|
|
forKey:GSWOPT_SessionTimeOut[GSWebNamingConv]];
|
|
|
|
|
LOGClassFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
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
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
id sessionTimeOut=nil;
|
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
|
|
|
|
LOGClassFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
sessionTimeOut=[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_SessionTimeOut[GSWebNamingConv]];
|
|
|
|
|
NSDebugMLLog(@"sessions",@"sessionTimeOut=%@",sessionTimeOut);
|
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
|
|
|
|
LOGClassFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return (NSTimeInterval)[sessionTimeOut intValue];
|
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
|
|
|
|
};
|
|
|
|
|
|
2000-03-20 15:50:51 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
|
|
|
|
+(NSString*)debugSetConfigFilePath
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_DebugSetConfigFilePath];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)setDebugSetConfigFilePath:(NSString*)debugSetConfigFilePath
|
2000-03-20 15:50:51 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:debugSetConfigFilePath
|
|
|
|
|
forKey:GSWOPT_DebugSetConfigFilePath];
|
2000-03-20 15:50:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
|
/** Returns the path where to store responses or nil if responses are not saved **/
|
|
|
|
|
+(NSString*)saveResponsesPath
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_SaveResponsesPath[GSWebNamingConv]];
|
2002-05-14 11:28:50 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(void)setSaveResponsesPath:(NSString*)saveResponsesPath
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:saveResponsesPath
|
|
|
|
|
forKey:GSWOPT_SaveResponsesPath[GSWebNamingConv]];
|
2002-05-14 11:28:50 +00:00
|
|
|
|
};
|
|
|
|
|
|
2002-10-12 11:37:42 +00:00
|
|
|
|
/** Returns the default template parser option **/
|
|
|
|
|
+(NSString*)defaultTemplateParser
|
|
|
|
|
{
|
|
|
|
|
return [[NSUserDefaults standardUserDefaults]
|
|
|
|
|
objectForKey:GSWOPT_DefaultTemplateParser[GSWebNamingConv]];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(void)setDefaultTemplateParser:(NSString*)defaultTemplateParser
|
|
|
|
|
{
|
|
|
|
|
[[NSUserDefaults standardUserDefaults]
|
|
|
|
|
setObject:defaultTemplateParser
|
|
|
|
|
forKey:GSWOPT_DefaultTemplateParser[GSWebNamingConv]];
|
|
|
|
|
};
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationInternals)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSDictionary*)_webServerConfigDictionary
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(Class)_applicationClass
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
[[GSWResourceManager _applicationGSWBundle]
|
|
|
|
|
scriptedClassWithName:GSWClassName_Application//TODO
|
|
|
|
|
superclassName:GSWClassName_Application]; //retirune nil //TODO
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
return NSClassFromString(globalApplicationClassName);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(Class)_compiledApplicationClass
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(GSWRequestHandler*)_componentRequestHandler
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return (GSWRequestHandler*)[GSWComponentRequestHandler handler];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationClassB)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(id)defaultModelGroup
|
|
|
|
|
{
|
2000-10-04 22:19:43 +00:00
|
|
|
|
#if GDL2 // GDL2 implementation
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//OK
|
2000-10-04 22:19:43 +00:00
|
|
|
|
return [EOModelGroup defaultGroup];
|
2002-08-06 22:06:41 +00:00
|
|
|
|
#else
|
|
|
|
|
#ifdef TCSDB
|
|
|
|
|
return [DBModelGroup defaultGroup];
|
2000-10-04 22:19:43 +00:00
|
|
|
|
#else
|
|
|
|
|
LOGClassFnNotImplemented();
|
2000-01-22 12:49:49 +00:00
|
|
|
|
return nil;
|
2000-10-04 22:19:43 +00:00
|
|
|
|
#endif
|
2002-08-06 22:06:41 +00:00
|
|
|
|
#endif
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(id)_modelGroupFromBundles:(id)bundles
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationClassC)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSDictionary*)mainBundleInfoDictionary
|
|
|
|
|
{
|
|
|
|
|
return [[self class] mainBundleInfoDictionary];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSDictionary*)mainBundleInfoDictionary
|
|
|
|
|
{
|
|
|
|
|
return [[self mainBundle]infoDictionary];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSDictionary*)bundleInfo
|
|
|
|
|
{
|
|
|
|
|
return [[self class] bundleInfo];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSDictionary*)bundleInfo
|
|
|
|
|
{
|
|
|
|
|
return [[self mainBundle]infoDictionary];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
-(NSBundle*)mainBundle
|
|
|
|
|
{
|
|
|
|
|
return [[self class] mainBundle];
|
|
|
|
|
};
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(NSBundle*)mainBundle
|
|
|
|
|
{
|
2002-07-27 23:48:47 +00:00
|
|
|
|
NSBundle* mainBundle=nil;
|
2001-12-11 14:35:30 +00:00
|
|
|
|
// LOGClassFnNotImplemented(); //TODOFN
|
2002-07-27 23:48:47 +00:00
|
|
|
|
mainBundle=[NSBundle mainBundle];
|
|
|
|
|
NSDebugMLog(@"[mainBundle bundlePath]:%@",[mainBundle bundlePath]);
|
|
|
|
|
return mainBundle;
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
/*
|
|
|
|
|
_flags=unsigned int UINT:104005633
|
|
|
|
|
_infoDictionary=id object:11365312 Description:{
|
|
|
|
|
NSBundleExecutablePath = "H:\\Wotests\\ObjCTest3\\ObjCTest3.gswa\\ObjCTest3.exe";
|
|
|
|
|
NSBundleInitialPath = "H:\\Wotests\\ObjCTest3\\ObjCTest3.gswa";
|
|
|
|
|
NSBundleLanguagesList = ();
|
|
|
|
|
NSBundleResolvedPath = "H:\\Wotests\\ObjCTest3\\ObjCTest3.gswa";
|
|
|
|
|
NSBundleResourcePath = "H:\\Wotests\\ObjCTest3\\ObjCTest3.gswa\\Resources";
|
|
|
|
|
NSExecutable = ObjCTest3;
|
|
|
|
|
NSJavaRootClient = WebServerResources/Java;
|
|
|
|
|
NSJavaUserPath = ();
|
|
|
|
|
}
|
|
|
|
|
_reserved5=void * PTR
|
|
|
|
|
_principalClass=Class Class:*nil*
|
|
|
|
|
_tmp1=void * PTR
|
|
|
|
|
_tmp2=void * PTR
|
|
|
|
|
_reserved1=void * PTR
|
|
|
|
|
_reserved0=void * PTR
|
|
|
|
|
*/
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationClassD)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(int)_garbageCollectionRepeatCount
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return 1;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)_lockDefaultEditingContext
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return YES;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)_setLockDefaultEditingContext:(BOOL)flag
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(id)_allowsConcurrentRequestHandling
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)_setAllowsConcurrentRequestHandling:(id)unknown
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWApplicationClassE)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(int)_requestLimit
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return 1;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(int)_requestWindow
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return 1;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)_multipleThreads
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return YES;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(BOOL)_multipleInstances
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
return NO;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
+(void)_readLicenseParameters
|
|
|
|
|
{
|
|
|
|
|
LOGClassFnNotImplemented(); //TODOFN
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (NDFN)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(id)propListWithResourceNamed:(NSString*)aName
|
|
|
|
|
ofType:(NSString*)type
|
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
|
languages:(NSArray*)languages
|
|
|
|
|
{
|
|
|
|
|
id propList=nil;
|
|
|
|
|
GSWResourceManager* resourceManager=nil;
|
|
|
|
|
NSString* pathName=nil;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
resourceManager=[self resourceManager];
|
|
|
|
|
pathName=[resourceManager pathForResourceNamed:[NSString stringWithFormat:@"%@.%@",aName,type]
|
|
|
|
|
inFramework:aFrameworkName
|
|
|
|
|
languages:languages];
|
|
|
|
|
NSDebugMLLog(@"application",@"pathName:%@",pathName);
|
|
|
|
|
if (pathName)
|
|
|
|
|
{
|
|
|
|
|
NSString* propListString=[NSString stringWithContentsOfFile:pathName];
|
|
|
|
|
propList=[propListString propertyList];
|
|
|
|
|
if (!propList)
|
|
|
|
|
{
|
|
|
|
|
LOGSeriousError(@"Bad propertyList \n%@\n from file %@",
|
|
|
|
|
propListString,
|
|
|
|
|
pathName);
|
|
|
|
|
};
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return propList;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(BOOL)createUnknownComponentClasses:(NSArray*)classes
|
|
|
|
|
superClassName:(NSString*)aSuperClassName
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-06 22:06:41 +00:00
|
|
|
|
#ifdef NOEXTENSIONS
|
|
|
|
|
ExceptionRaise(@"GSWApplication",
|
|
|
|
|
@"GSWApplication: createUnknownComponentClasses: %@ superClassName: %@\n works only when you do not define NOEXTENSIONS while compiling GSWeb",
|
|
|
|
|
classes, aSuperClassName);
|
|
|
|
|
|
|
|
|
|
return NO;
|
|
|
|
|
|
|
|
|
|
#else
|
2002-08-04 18:00:11 +00:00
|
|
|
|
BOOL ok=YES;
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if ([classes count]>0)
|
|
|
|
|
{
|
|
|
|
|
int i=0;
|
|
|
|
|
NSString* aClassName=nil;
|
2002-11-27 20:25:22 +00:00
|
|
|
|
NSMutableArray* newClasses=nil;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
for(i=0;i<[classes count];i++)
|
|
|
|
|
{
|
|
|
|
|
aClassName=[classes objectAtIndex:i];
|
|
|
|
|
NSDebugMLLog(@"application",@"aClassName:%@",aClassName);
|
2002-11-27 20:25:22 +00:00
|
|
|
|
if (!NSClassFromString(aClassName))
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
|
|
|
|
NSString* superClassName=nil;
|
|
|
|
|
superClassName=[localDynCreateClassNames objectForKey:aClassName];
|
|
|
|
|
NSDebugMLLog(@"application",@"superClassName=%p",(void*)superClassName);
|
|
|
|
|
if (!superClassName)
|
|
|
|
|
{
|
|
|
|
|
superClassName=aSuperClassName;
|
|
|
|
|
if (!superClassName)
|
|
|
|
|
{
|
|
|
|
|
ExceptionRaise(@"GSWApplication",
|
|
|
|
|
@"GSWApplication: no superclass for class named: %@",
|
|
|
|
|
aClassName);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
NSDebugMLLog(@"application",@"Create Unknown Class: %@ (superclass: %@)",
|
|
|
|
|
aClassName,
|
|
|
|
|
superClassName);
|
|
|
|
|
if (superClassName)
|
|
|
|
|
{
|
2002-11-27 20:25:22 +00:00
|
|
|
|
NSValue* aClassPtr=GSObjCMakeClass(aClassName,superClassName,nil);
|
|
|
|
|
if (aClassPtr)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
2002-11-27 20:25:22 +00:00
|
|
|
|
if (!newClasses)
|
|
|
|
|
newClasses=[NSMutableArray array];
|
|
|
|
|
[newClasses addObject:aClassPtr];
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
LOGError(@"Can't create one of these classes %@ (super class: %@)",
|
|
|
|
|
aClassName,superClassName);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2002-11-27 20:25:22 +00:00
|
|
|
|
if ([newClasses count]>0)
|
2002-08-04 18:00:11 +00:00
|
|
|
|
{
|
2002-11-27 20:25:22 +00:00
|
|
|
|
GSObjCAddClasses(newClasses);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStop();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return ok;
|
2002-08-06 22:06:41 +00:00
|
|
|
|
#endif
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-08-04 18:00:11 +00:00
|
|
|
|
+(void)addDynCreateClassName:(NSString*)className
|
|
|
|
|
superClassName:(NSString*)superClassName
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGClassFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"gswdync",@"ClassName:%@ superClassName:%@\n",className,superClassName);
|
|
|
|
|
[localDynCreateClassNames setObject:superClassName
|
|
|
|
|
forKey:className];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGClassFnStop();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(NSString*)pathForResourceNamed:(NSString*)name
|
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[self resourceManager]pathForResourceNamed:name
|
|
|
|
|
inFramework:aFrameworkName
|
|
|
|
|
languages:languages];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(NSString*)pathForResourceNamed:(NSString*)aName
|
|
|
|
|
ofType:(NSString*)type
|
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[self resourceManager]pathForResourceNamed:(type ? [NSString stringWithFormat:@"%@.%@",aName,type] : aName)
|
|
|
|
|
inFramework:aFrameworkName
|
|
|
|
|
languages: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
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[self resourceManager]urlForResourceNamed:aName
|
|
|
|
|
inFramework:aFrameworkName
|
|
|
|
|
languages:languages
|
|
|
|
|
request:aRequest];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(NSString*)stringForKey:(NSString*)aKey
|
|
|
|
|
inTableNamed:(NSString*)aTableName
|
|
|
|
|
withDefaultValue:(NSString*)defaultValue
|
|
|
|
|
inFramework:(NSString*)aFrameworkName
|
|
|
|
|
languages:(NSArray*)languages
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[self resourceManager]stringForKey:aKey
|
|
|
|
|
inTableNamed:aTableName
|
|
|
|
|
withDefaultValue:defaultValue
|
|
|
|
|
inFramework:aFrameworkName
|
|
|
|
|
languages: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
|
|
|
|
{
|
2002-03-06 23:13:23 +00:00
|
|
|
|
NSDictionary* st=nil;
|
|
|
|
|
LOGObjectFnStart();
|
2002-08-04 18:00:11 +00:00
|
|
|
|
st=[[self resourceManager]stringsTableNamed:aTableName
|
|
|
|
|
inFramework:aFrameworkName
|
|
|
|
|
languages:languages];
|
2002-03-06 23:13:23 +00:00
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
return st;
|
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
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [[self resourceManager]stringsTableArrayNamed:aTableName
|
|
|
|
|
inFramework:aFrameworkName
|
|
|
|
|
languages:languages];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2001-10-28 10:29:17 +00:00
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//NDFN
|
|
|
|
|
-(NSArray*)filterLanguages:(NSArray*)languages
|
|
|
|
|
{
|
|
|
|
|
return languages;
|
|
|
|
|
};
|
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
|
@end
|
|
|
|
|
/*
|
|
|
|
|
//====================================================================
|
|
|
|
|
@implementation GSWApplication (GSWDeprecatedAPI)
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//pageWithName:
|
|
|
|
|
//OldFn
|
|
|
|
|
-(GSWComponent*)pageWithName:(NSString*)name_
|
|
|
|
|
{
|
|
|
|
|
GSWComponent* component=nil;
|
2002-08-04 18:00:11 +00:00
|
|
|
|
Class aClass=nil;
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"Page with Name:%@\n",name_);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//No Name ==> "Main"
|
|
|
|
|
if (!name_ || [name_ length]==0)
|
|
|
|
|
name_=GSWMainPageName;
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"Page with Name:%@\n",name_);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
aClass=NSClassFromString(name_);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//If not found, search for library
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!aClass)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
NSString* pagePath=[self pathForResourceNamed:name_
|
|
|
|
|
ofType:nil];
|
|
|
|
|
Class _principalClass=[self libraryClassWithPath:pagePath];
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"_principalClass=%@",_principalClass);
|
|
|
|
|
if (_principalClass)
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
aClass=NSClassFromString(name_);
|
|
|
|
|
NSDebugMLLog(@"gswcomponents",@"aClass=%@",aClass);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!aClass)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO Load Scripted (PageName.gsws)
|
|
|
|
|
};
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!aClass)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO exception
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"No component class\n");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2002-12-06 16:10:52 +00:00
|
|
|
|
Class GSWComponentClass=[GSWComponent class]);
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!ClassIsKindOfClass(aClass,GSWComponentClass))
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"component class is not a kind of GSWComponent\n");
|
2000-01-22 12:49:49 +00:00
|
|
|
|
//TODO exception
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//TODOV
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"Create Componnent\n");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
component=[[aClass new] autorelease];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
if (!component)
|
|
|
|
|
{
|
|
|
|
|
//TODO exception
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return component;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//restorePageForContextID:
|
|
|
|
|
-(GSWComponent*)restorePageForContextID:(NSString*)contextID
|
|
|
|
|
{
|
|
|
|
|
return [[self session] restorePageForContextID:contextID];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//savePage:
|
|
|
|
|
-(void)savePage:(GSWComponent*)page_
|
|
|
|
|
{
|
|
|
|
|
[[self session] savePage:page_];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//session
|
|
|
|
|
-(GSWSession*)session
|
|
|
|
|
{
|
|
|
|
|
return [[self context] session];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//context
|
|
|
|
|
//Remove !!
|
|
|
|
|
-(GSWContext*)context
|
|
|
|
|
{
|
|
|
|
|
GSWContext* _context=nil;
|
|
|
|
|
NSMutableDictionary* _threadDictionary=nil;
|
|
|
|
|
LOGObjectFnStart();
|
|
|
|
|
_threadDictionary=GSCurrentThreadDictionary();
|
|
|
|
|
_context=[_threadDictionary objectForKey:GSWThreadKey_Context];
|
|
|
|
|
LOGObjectFnStop();
|
|
|
|
|
return _context;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//restoreSession
|
|
|
|
|
-(GSWSession*)restoreSession
|
|
|
|
|
{
|
|
|
|
|
NSAssert(sessionStore,@"No SessionStore Object");
|
|
|
|
|
return [self restoreSessionWithID:[[self session]sessionID]
|
|
|
|
|
inContext:[self context]];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//saveSession:
|
|
|
|
|
-(void)saveSession:(GSWSession*)session_
|
|
|
|
|
{
|
|
|
|
|
NSAssert(sessionStore,@"No SessionStore Object");
|
|
|
|
|
[self saveSessionForContext:[self context]];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//createSession
|
|
|
|
|
-(GSWSession*)createSession
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN 3.5
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//urlForResourceNamed:ofType:
|
|
|
|
|
-(NSString*)urlForResourceNamed:(NSString*)name_
|
|
|
|
|
ofType:(NSString*)type_
|
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//pathForResourceNamed:ofType:
|
|
|
|
|
|
|
|
|
|
-(NSString*)pathForResourceNamed:(NSString*)name_
|
|
|
|
|
ofType:(NSString*)type_
|
|
|
|
|
{
|
|
|
|
|
//TODOV
|
|
|
|
|
NSBundle* bundle=[NSBundle mainBundle];
|
|
|
|
|
NSString* path=[bundle pathForResource:name_
|
|
|
|
|
ofType:type_];
|
|
|
|
|
return path;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//stringForKey:inTableNamed:withDefaultValue:
|
|
|
|
|
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(NSString*)stringForKey:(NSString*)aKey
|
|
|
|
|
inTableNamed:(NSString*)aTableName
|
|
|
|
|
withDefaultValue:(NSString*)defaultValue
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
|
return nil;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//handleRequest:
|
|
|
|
|
//Olf Fn
|
2002-08-04 18:00:11 +00:00
|
|
|
|
-(GSWResponse*)handleRequest:(GSWRequest*)aRequest
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
return [self dispatchRequest:aRequest];//??
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
//dynamicElementWithName:associations:template:
|
|
|
|
|
//OldFn
|
|
|
|
|
-(GSWDynamicElement*)dynamicElementWithName:(NSString*)name_
|
2002-08-04 18:00:11 +00:00
|
|
|
|
associations:(NSDictionary*)someAssociations
|
2000-01-22 12:49:49 +00:00
|
|
|
|
template:(GSWElement*)templateElement_
|
|
|
|
|
{
|
|
|
|
|
GSWDynamicElement* element=nil;
|
|
|
|
|
// NSString* elementName=[_XMLElement attributeForKey:@"NAME"];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
Class aClass=NSClassFromString(name_);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog0(@"application",@"Begin GSWApplication:dynamicElementWithName\n");
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!aClass)
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
ExceptionRaise(@"GSWApplication",
|
|
|
|
|
@"GSWApplication: No class named '%@' for creating dynamic element",
|
|
|
|
|
name_);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2003-01-22 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/Makefile.postamble:
o use $(LN_S) -f in install-WO-headers
o added $(MKDIRS) $(GNUSTEP_HEADERS)/$(GSWExtensions_wo_HEADER_FILES_INSTALL_DIR);
* GSWExtensionsGSW.framework/Makefile.postamble: use $(LN_S) -f in install-WO-headers
2003-01-20 David Ayers <d.ayers@inode.at>
* Makefile.postamble
o added support for make gswnames=(gsw,wo,all) (corrected
typo)
o reinserted support for $(INSTALL_ROOT_DIR)
* config.h.in
o added HAVE_GDL2
* configure
o added support for --with-gswnames=(gsw,wo,all)
o set LIBWRAP during configure
o added config.mak.in as configurable file
* configure.ac
o (see configure)
* config.mak: removed (replaced by config.mak.in)
* config.mak.in: new file
o added support for make gswnames=(gsw,wo,all)
* gsweb.make.in
o add GSANTLR as auxiliary lib
o add gsweb libs to AUXILIARY_GSW_LIBS
o include correct extensions for GSW/WO-libs
* gsweb_wo.make: new file
* GSWeb/GSWConfig.h
o changed support for GSWEB_WONAMES
o conditionally import file GSWWOCompatiblity
here instead of in GSWeb.h
* GSWeb/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o removed reference to unused files:
GSWeb.m, GSWWOCompatibility.m
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWeb/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
o remove Makefile.preamble during distclean
* GSWeb/Makefile.preamble.in
o fixed typo
* GSWeb/GSWeb.h
o moved GSW/WO-Name-mapping to GSWWOCompatibility.h
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWeb.m: removed
* GSWeb/GSWWOCompatibility.h
o changed GSWEB_WONAMES handling
o removed hybrid namespace WO subclasses
o moved & reorganized GSW/WO-Name-mapping from GSWeb.h
o inlucluded missing GSW/WO-Name-mappings
* GSWeb/GSWWOCompatibility.m: removed
* GSWeb/*.m
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWApplication.m
o remove special GSW/WO handling of WOApp
* GSWeb/WebObject/WO*: removed
* GSWeb/WebObject/WebObjects
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWExtensions/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWExtensions/Makefile.preamble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
* GSWExtensions/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
* GSWExtensions/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtWOCompatibility.h"
o replaces inclusions of
<GSWExtensions/file.h> with "file.h"
* GSWExtensions/GSWExtensions.h: new file
* GSWExtensions/WOExtensions.h: new file
* GSWExtensions/GSWExtWOCompatibility.h: new file
* GSWExtensionsGSW/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new file GSWExtGSWWOCompatibility.h
o added support to create WO header files
* GSWExtensionsGSW/Makefile.pramble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
o removed GSWExtensions from ADDITIONAL_LIB_DIRS
* GSWExtensionsGSW/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtGSWWOCompatibility.h"
* GSWExtensions/GSWExtGSWWOCompatibility.h: new file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@15675 72102866-910b-0410-8b05-ffd578937521
2003-01-22 12:24:26 +00:00
|
|
|
|
Class GSWElementClass=[GSWElement class];
|
2002-08-04 18:00:11 +00:00
|
|
|
|
if (!ClassIsKindOfClass(aClass,GSWElementClass))
|
2000-01-22 12:49:49 +00:00
|
|
|
|
{
|
|
|
|
|
ExceptionRaise(@"GSWApplication",
|
|
|
|
|
@"GSWApplication: element '%@' is not kind of GSWElement",
|
|
|
|
|
name_);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2002-08-04 18:00:11 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"Creating DynamicElement of Class:%@\n",aClass);
|
|
|
|
|
element=[[[aClass alloc] initWithName:name_
|
|
|
|
|
associations:someAssociations
|
2000-01-22 12:49:49 +00:00
|
|
|
|
template:templateElement_] autorelease];
|
2001-10-28 10:29:17 +00:00
|
|
|
|
NSDebugMLLog(@"application",@"Creating DynamicElement:%@\n",element);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
return element;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
*/
|
2002-03-06 23:13:23 +00:00
|
|
|
|
|