mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 21:37:15 +00:00
Monotone-Parent: e94c8ae67d2887b188febc57c064c3e5be325bc9
Monotone-Revision: 3a52f24d5383740ac373578b476831142dd2d359 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-12-13T19:25:01 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
7f19ee2036
commit
8d0a42abef
5 files changed
+75
-2
No files matched your search
@@ -31,6 +31,10 @@
|
||||
@interface WODirectAction (SOGoExtension)
|
||||
|
||||
- (WOResponse *) responseWithStatus: (unsigned int) status;
|
||||
- (WOResponse *) responseWithStatus: (unsigned int) status
|
||||
andString: (NSString *) contentString;
|
||||
- (WOResponse *) responseWithStatus: (unsigned int) status
|
||||
andJSONRepresentation: (NSObject *) contentObject;
|
||||
- (WOResponse *) responseWith204;
|
||||
- (WOResponse *) redirectToLocation: (NSString *) newLocation;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||
#import <NGObjWeb/WOResponse.h>
|
||||
|
||||
#import <SoObjects/SOGo/NSObject+Utilities.h>
|
||||
#import <SoObjects/SOGo/NSDictionary+Utilities.h>
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
|
||||
@@ -42,6 +43,24 @@
|
||||
return response;
|
||||
}
|
||||
|
||||
- (WOResponse *) responseWithStatus: (unsigned int) status
|
||||
andString: (NSString *) contentString
|
||||
{
|
||||
WOResponse *response;
|
||||
|
||||
response = [self responseWithStatus: status];
|
||||
[response appendContentString: contentString];
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
- (WOResponse *) responseWithStatus: (unsigned int) status
|
||||
andJSONRepresentation: (NSObject *) contentObject;
|
||||
{
|
||||
return [self responseWithStatus: status
|
||||
andString: [contentObject jsonRepresentation]];
|
||||
}
|
||||
|
||||
- (WOResponse *) responseWith204
|
||||
{
|
||||
return [self responseWithStatus: 204];
|
||||
|
||||
Reference in new issue
Block a user