* 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:
David Wetzel 2017-11-19 13:40:24 -05:00
parent 7111c26561
commit 237ae78d01
2 changed files with 81 additions and 0 deletions

View 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__

View 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