mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-15 16:11:24 +00:00
* GSWeb.framework/GSWApplication.h/m
(-/+[GSWApplication isDirectConnectEnabled]) (-/+[GSWApplication setDirectConnectEnabled:]): Make class methods. ([GSWApplication registerRequestHandlers]): Call class method. ([GSWApplication refuseNewSessions:]): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18410 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0e5fd50138
commit
6d07617232
7 changed files with 25 additions and 8 deletions
5
.cvsignore
Normal file
5
.cvsignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
autom4te.cache
|
||||
config.log
|
||||
config.mak
|
||||
config.status
|
||||
gsweb.make
|
10
ChangeLog
10
ChangeLog
|
@ -4,10 +4,18 @@
|
|||
* configure.ac: Ditto.
|
||||
* configure: Regenerate.
|
||||
|
||||
* GSWeb.framework/.cvsignore: New file.
|
||||
* .cvsignore: New file.
|
||||
* GSWeb.framework/.cvsignore: Ditto.
|
||||
* GSWExtensions.framework/.cvsignore: Ditto.
|
||||
* GSWExtensions.framework/French.lproj/.cvsignore: Ditto.
|
||||
* GSWExtensionsGSW.framework/.cvsignore: Ditto.
|
||||
|
||||
* GSWeb.framework/GSWApplication.h/m
|
||||
(-/+[GSWApplication isDirectConnectEnabled])
|
||||
(-/+[GSWApplication setDirectConnectEnabled:]): Make class
|
||||
methods.
|
||||
([GSWApplication registerRequestHandlers]): Call class method.
|
||||
([GSWApplication refuseNewSessions:]): Ditto.
|
||||
|
||||
2004-01-12 David Ayers <d.ayers@inode.at>
|
||||
|
||||
|
|
|
@ -2,3 +2,5 @@ derived_src
|
|||
shared_debug_obj
|
||||
GSWWOReplaceScript.sed
|
||||
WO*.wo
|
||||
WOExtensions.framework
|
||||
GSWExtensions.framework
|
||||
|
|
|
@ -2,4 +2,5 @@ derived_src
|
|||
shared_debug_obj
|
||||
GSWWOReplaceScript.sed
|
||||
WO*.wo
|
||||
GSWExtensionsGSW.framework
|
||||
WOExtensionsGSW.framework
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
derived_src
|
||||
shared_debug_obj
|
||||
GSWeb.framework
|
||||
WebObjects.framework
|
||||
config.h
|
||||
Makefile.preamble
|
||||
|
|
|
@ -522,8 +522,8 @@ extern BOOL WOStrictFlag;
|
|||
+(void)setStatusDebuggingEnabled:(BOOL)flag;//NDFN
|
||||
+(BOOL)autoOpenInBrowser;
|
||||
+(void)setAutoOpenInBrowser:(BOOL)flag;
|
||||
-(BOOL)isDirectConnectEnabled;
|
||||
-(void)setDirectConnectEnabled:(BOOL)flag;
|
||||
+(BOOL)isDirectConnectEnabled;
|
||||
+(void)setDirectConnectEnabled:(BOOL)flag;
|
||||
+(NSString*)cgiAdaptorURL;
|
||||
+(void)setCGIAdaptorURL:(NSString*)url;
|
||||
+(BOOL)isCachingEnabled;
|
||||
|
|
|
@ -1041,7 +1041,7 @@ int GSWApplicationMain(NSString* applicationClassName,
|
|||
/* 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
|
||||
#ifndef NDEBUG
|
||||
selfLockn++;
|
||||
selfLock_thread_id=objc_thread_id();
|
||||
#endif
|
||||
|
@ -1301,7 +1301,7 @@ selfLockn,
|
|||
|
||||
|
||||
// If direct connect enabled, add static resources handler
|
||||
if ([self isDirectConnectEnabled])
|
||||
if ([[self class] isDirectConnectEnabled])
|
||||
{
|
||||
GSWStaticResourceRequestHandler* staticResourceRequestHandler = (GSWStaticResourceRequestHandler*)
|
||||
[GSWStaticResourceRequestHandler handler];
|
||||
|
@ -4211,7 +4211,7 @@ to another instance **/
|
|||
//refuseNewSessions:
|
||||
-(void)refuseNewSessions:(BOOL)flag
|
||||
{
|
||||
if (flag && [self isDirectConnectEnabled])
|
||||
if (flag && [[self class] isDirectConnectEnabled])
|
||||
{
|
||||
[NSException raise:NSInvalidArgumentException
|
||||
format:@"We can't refuse newSessions if direct connect enabled"];
|
||||
|
@ -4450,14 +4450,14 @@ to another instance **/
|
|||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(BOOL)isDirectConnectEnabled
|
||||
+(BOOL)isDirectConnectEnabled
|
||||
{
|
||||
return [[[NSUserDefaults standardUserDefaults]
|
||||
objectForKey:GSWOPT_DirectConnectEnabled[GSWebNamingConv]] boolValue];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(void)setDirectConnectEnabled:(BOOL)flag
|
||||
+(void)setDirectConnectEnabled:(BOOL)flag
|
||||
{
|
||||
[[NSUserDefaults standardUserDefaults]
|
||||
setObject:[NSNumber numberWithBool:flag]
|
||||
|
|
Loading…
Reference in a new issue