mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-22 19:21:23 +00:00
* GSWeb.framework/GSWApplication.h/.m:
o added -handleActionRequestErrorWithRequest:exception:reason: requestHanlder:actionClassName:actionName:actionClass: actionObject: o added +defaultDisplayExceptionPages o added +setDefaultDisplayExceptionPages: o handle GSWDefaultDisplayExceptionPages git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18894 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
164d631158
commit
166ae05241
2 changed files with 47 additions and 1 deletions
|
@ -364,7 +364,14 @@ extern BOOL WOStrictFlag;
|
|||
-(GSWResponse*)_handleSessionCreationErrorInContext:(GSWContext*)aContext;
|
||||
-(GSWResponse*)handleSessionRestorationErrorInContext:(GSWContext*)aContext;
|
||||
-(GSWResponse*)_handleSessionRestorationErrorInContext:(GSWContext*)aContext;
|
||||
|
||||
-(GSWResponse*)handleActionRequestErrorWithRequest:(GSWRequest*)aRequest
|
||||
exception:(NSException*)exception
|
||||
reason:(NSString*)reason
|
||||
requestHanlder:(GSWActionRequestHandler*)requestHandler
|
||||
actionClassName:(NSString*)actionClassName
|
||||
actionName:(NSString*)actionName
|
||||
actionClass:(Class)actionClass
|
||||
actionObject:(GSWAction*)actionObject;
|
||||
@end
|
||||
|
||||
//====================================================================
|
||||
|
@ -608,6 +615,8 @@ extern BOOL WOStrictFlag;
|
|||
+(void)setAcceptedContentEncoding:(NSString*)acceptedContentEncoding;
|
||||
+(NSString*)defaultTemplateParser;//NDFN
|
||||
+(void)setDefaultTemplateParser:(NSString*)defaultTemplateParser;//NDFN
|
||||
+(BOOL)defaultDisplayExceptionPages;//NDFN
|
||||
+(void)setDefaultDisplayExceptionPages:(BOOL)flag;//NDFN
|
||||
@end
|
||||
|
||||
//====================================================================
|
||||
|
|
|
@ -433,6 +433,8 @@ int GSWApplicationMainReal(NSString* applicationClassName,
|
|||
GSWOPTVALUE_DefaultTemplateParser);
|
||||
NSDebugFLLog(@"options",@"AcceptedContentEncoding -> %@",
|
||||
GSWOPTVALUE_AcceptedContentEncoding);
|
||||
NSDebugFLLog(@"options",@"DisplayExceptionPages -> %@",
|
||||
GSWOPTVALUE_DisplayExceptionPages);
|
||||
|
||||
defaultsOptions =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
|
@ -558,6 +560,9 @@ int GSWApplicationMainReal(NSString* applicationClassName,
|
|||
|
||||
GSWOPTVALUE_AcceptedContentEncoding,
|
||||
GSWOPT_AcceptedContentEncoding[GSWebNamingConv],
|
||||
|
||||
GSWOPTVALUE_DisplayExceptionPages,
|
||||
GSWOPT_DisplayExceptionPages[GSWebNamingConv],
|
||||
|
||||
nil];
|
||||
NSDebugFLLog(@"options",@"_globalAppDefaultOptions=%@",globalAppDefaultOptions);
|
||||
|
@ -3724,6 +3729,23 @@ to another instance **/
|
|||
LOGObjectFnStop();
|
||||
return response;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(GSWResponse*)handleActionRequestErrorWithRequest:(GSWRequest*)aRequest
|
||||
exception:(NSException*)exception
|
||||
reason:(NSString*)reason
|
||||
requestHanlder:(GSWActionRequestHandler*)requestHandler
|
||||
actionClassName:(NSString*)actionClassName
|
||||
actionName:(NSString*)actionName
|
||||
actionClass:(Class)actionClass
|
||||
actionObject:(GSWAction*)actionObject
|
||||
{
|
||||
LOGObjectFnStart();
|
||||
//do nothing
|
||||
LOGObjectFnStop();
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
//====================================================================
|
||||
|
@ -5297,6 +5319,21 @@ to another instance **/
|
|||
forKey:GSWOPT_DefaultTemplateParser[GSWebNamingConv]];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
+(BOOL)defaultDisplayExceptionPages
|
||||
{
|
||||
return [[[NSUserDefaults standardUserDefaults]
|
||||
objectForKey:GSWOPT_DisplayExceptionPages[GSWebNamingConv]] boolValue];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
+(void)setDefaultDisplayExceptionPages:(BOOL)flag
|
||||
{
|
||||
[[NSUserDefaults standardUserDefaults]
|
||||
setObject:[NSNumber numberWithBool:flag]
|
||||
forKey:GSWOPT_DisplayExceptionPages[GSWebNamingConv]];
|
||||
};
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue