mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 02:41:04 +00:00
* GSWeb/GSWAjaxRequestHandler.*
new files * GSWeb/GNUmakefile add GSWAjaxRequestHandler.*, WOAjaxRequestHandler.h * GSWeb/GSWApplication+Defaults.* add AjaxRequestHanderKey * GSWeb/GSWApplication.h add +ajaxRequestHandlerKey add +setAjaxRequestHandlerKey: * GSWeb/GSWApplication.m create ajax request handler in registerRequestHandlers * GSWeb/GSWComponentRequestHandler.m return current class instance in +handler (works in subclasses too..) * GSWConstants.* added ajax * GSWContext.* added +shouldNotStorePageInBacktrackCache * GSWeb/GSWMessage.* added storePageInBacktrackCache * GSWeb/GSWRequest.* added -isAjaxSubmit, ajaxFormSubmitKey * GSWeb/GSWSession.m * GSWeb/GSWeb.h * GSWeb/GSWWOCompatibility.h ajax adjustments
This commit is contained in:
parent
7111c26561
commit
237ae78d01
2 changed files with 81 additions and 0 deletions
36
GSWeb/GSWAjaxRequestHandler.h
Normal file
36
GSWeb/GSWAjaxRequestHandler.h
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
|
||||||
|
/** GSWAjaxRequestHandler.h - <title>GSWeb: Class GSWAjaxRequestHandler</title>
|
||||||
|
|
||||||
|
Copyright (C) 2017 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
Written by: David Wetzel <dave@turbocat.de>
|
||||||
|
Date: Nov 2017
|
||||||
|
|
||||||
|
This file is part of the GNUstep Web Library.
|
||||||
|
|
||||||
|
<license>
|
||||||
|
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.
|
||||||
|
</license>
|
||||||
|
**/
|
||||||
|
|
||||||
|
#ifndef _GSWAjaxRequestHandler_h__
|
||||||
|
#define _GSWAjaxRequestHandler_h__
|
||||||
|
|
||||||
|
@interface GSWAjaxRequestHandler : GSWComponentRequestHandler
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif // _GSWAjaxRequestHandler_h__
|
||||||
|
|
45
GSWeb/GSWAjaxRequestHandler.m
Normal file
45
GSWeb/GSWAjaxRequestHandler.m
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
/** GSWAjaxRequestHandler.m - <title>GSWeb: Class GSWAjaxRequestHandler</title>
|
||||||
|
|
||||||
|
Copyright (C) 2017 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
Written by: David Wetzel <dave@turbocat.de>
|
||||||
|
Date: Nov 2017
|
||||||
|
|
||||||
|
This file is part of the GNUstep Web Library.
|
||||||
|
|
||||||
|
<license>
|
||||||
|
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.
|
||||||
|
</license>
|
||||||
|
**/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#include "GSWeb.h"
|
||||||
|
#include "GSWPrivate.h"
|
||||||
|
|
||||||
|
@implementation GSWAjaxRequestHandler
|
||||||
|
|
||||||
|
-(GSWResponse*)handleRequest:(GSWRequest*)aRequest
|
||||||
|
{
|
||||||
|
GSWResponse* response = nil;
|
||||||
|
|
||||||
|
[aRequest setStorePageInBacktrackCache:NO];
|
||||||
|
|
||||||
|
response = [super handleRequest:aRequest];
|
||||||
|
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
Loading…
Reference in a new issue