mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-31 01:01:19 +00:00
2003-03-03 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb/GSWSessionTimeOutManager.m: o Better handling of lock during exceptions (should improve it) o logs * GSWeb/GSWSessionStore.m: o logs o raise exception when a direct GSWSessionStore is allocated * GSWeb/GSWrequest.m: o fixed typo on contentSubType * GSWeb/GSWDisplayGroup.hm o added _queryMinMatch to enable >= clause o added _queryMaxMatch to enable <= clause o added -queryMinMatch to enable >= clause o added -queryMaxMatch to enable <= clause o declare private methods * GSWeb/GSWDisplayGroup.m: o add NSAutoreleasePool use in -fetch * GSWeb/GSWExtensionsGSW.framework/GSWFileUploadComponent.gswc/GSWFileUploadComponent.gswd o bug fix in GSWHyperlink binding * GSWeb/GSWCheckBoxList.m o settable selections fix * GSWeb/GSWApplication.m: o logs * GSWeb/GSWSessionTimeOut.[hm] o added -lastAccessTimeDate and -timeOutTimeDate * GSWeb/GSWDeployedBundle.m: o add some NSAutoreleasePool use * GSWeb/GSWHyperlink.m: o fix to not display links disabled by !enabled when displayDisabled = NO. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16110 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2e0c8afdee
commit
6104dbcda5
14 changed files with 466 additions and 210 deletions
|
@ -1,12 +1,13 @@
|
|||
/** GSWSessionTimeOut.m - <title>GSWeb: Class GSWSessionTimeOut</title>
|
||||
|
||||
Copyright (C) 1999-2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2003 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
Date: Mar 1999
|
||||
|
||||
$Revision$
|
||||
$Date$
|
||||
$Id$
|
||||
|
||||
This file is part of the GNUstep Web Library.
|
||||
|
||||
|
@ -27,7 +28,7 @@
|
|||
</license>
|
||||
**/
|
||||
|
||||
static char rcsId[] = "$Id$";
|
||||
static const char rcsId[] = "$Id$";
|
||||
|
||||
#include "GSWeb.h"
|
||||
#include "GSWSessionTimeOut.h"
|
||||
|
@ -45,6 +46,8 @@ static char rcsId[] = "$Id$";
|
|||
ASSIGN(_sessionID,aSessionID);
|
||||
_lastAccessTime=aTime;
|
||||
_timeOut=aTimeOutInterval;
|
||||
NSDebugMLog(@"_lastAccessTime=%f",_lastAccessTime);
|
||||
NSDebugMLog(@"_timeOut=%f",_timeOut);
|
||||
};
|
||||
return self;
|
||||
};
|
||||
|
@ -79,8 +82,8 @@ static char rcsId[] = "$Id$";
|
|||
object_get_class_name(self),
|
||||
(void*)self,
|
||||
_sessionID,
|
||||
[self timeOutTime],
|
||||
_lastAccessTime,
|
||||
[self timeOutTimeDate],
|
||||
[self lastAccessTimeDate],
|
||||
(long)_timeOut];
|
||||
};
|
||||
|
||||
|
@ -110,6 +113,7 @@ static char rcsId[] = "$Id$";
|
|||
-(void)setSessionTimeOut:(NSTimeInterval)aTimeOutInterval
|
||||
{
|
||||
_timeOut=aTimeOutInterval;
|
||||
NSDebugMLog(@"_timeOut=%f",_timeOut);
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
@ -122,6 +126,7 @@ static char rcsId[] = "$Id$";
|
|||
-(void)setLastAccessTime:(NSTimeInterval)aTime
|
||||
{
|
||||
_lastAccessTime=aTime;
|
||||
NSDebugMLog(@"_lastAccessTime=%f",_lastAccessTime);
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
@ -130,11 +135,23 @@ static char rcsId[] = "$Id$";
|
|||
return _lastAccessTime;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(NSDate*)lastAccessTimeDate
|
||||
{
|
||||
return [NSDate dateWithTimeIntervalSinceReferenceDate:_lastAccessTime];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(NSTimeInterval)timeOutTime
|
||||
{
|
||||
return _lastAccessTime+_timeOut;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(NSDate*)timeOutTimeDate
|
||||
{
|
||||
return [NSDate dateWithTimeIntervalSinceReferenceDate:_lastAccessTime+_timeOut];
|
||||
};
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue