2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __NGObjWeb_WOCookie_H__
23 #define __NGObjWeb_WOCookie_H__
25 #import <Foundation/NSObject.h>
27 @class NSString, NSDate;
29 @interface WOCookie : NSObject < NSCopying >
35 // cookie configuration
36 NSDate *expireDate; // defines how long the cookies is valid
37 NSString *path; // the root-path where the cookie is valid
38 NSString *domainName; // the domain where the cookie is valid (def: hostname)
39 BOOL onlyIfSecure; // send only if communication-channel is secure (SSL)
42 + (id)cookieWithName:(NSString *)_name value:(NSString *)_value;
44 + (id)cookieWithName:(NSString *)_name value:(NSString *)_value
45 path:(NSString *)_path domain:(NSString *)_domain
46 expires:(NSDate *)_date
47 isSecure:(BOOL)_secure;
51 - (void)setName:(NSString *)_name;
53 - (void)setValue:(NSString *)_value;
55 - (void)setExpires:(NSDate *)_date;
57 - (void)setPath:(NSString *)_path;
59 - (void)setDomain:(NSString *)_domain;
61 - (void)setIsSecure:(BOOL)_flag;
66 - (NSString *)headerString;
67 - (NSString *)stringValue; // called by HTTP server
71 #endif /* __NGObjWeb_WOCookie_H__ */