-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMPWSiteServer.h
49 lines (37 loc) · 1.34 KB
/
MPWSiteServer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// MPWSiteServer.h
// ObjectiveHTTPD
//
// Created by Marcel Weiher on 2/11/12.
// Copyright (c) 2012 Marcel Weiher. All rights reserved.
//
#import <MPWFoundation/MPWFoundation.h>
@class MPWHTTPServer,MPWSiteMap,MPWTemplater,MethodServer;
@class STCompiler,MPWHTMLRenderScheme;
@interface MPWSiteServer : NSObject
{
MPWHTTPServer *server;
MPWSiteMap *sitemap;
MPWTemplater *templater;
MPWHTMLRenderScheme *renderer;
MPWWriteThroughCache *cache;
STCompiler *interpreter;
MethodServer *methodServer;
}
objectAccessor_h(MPWHTTPServer*, server, setServer)
objectAccessor_h(MPWSiteMap*, sitemap, setSitemap)
objectAccessor_h(MPWTemplater*, templater, setTemplater )
objectAccessor_h(MPWWriteThroughCache*, cache , setCache )
objectAccessor_h(STCompiler*, interpreter , setInterpreter )
objectAccessor_h(MethodServer*, methodServer , setMethodServer)
objectAccessor_h(MPWHTMLRenderScheme*, renderer , setRenderer)
@property (nonatomic, strong) NSMutableDictionary *methodDict;
-(void)loadMethods;
-(NSDictionary*)siteDict;
-(void)disableCaching;
-(instancetype)initWithSite:(MPWSiteMap*) aSite siteDict:(NSDictionary*)dict interpreter:(STCompiler*)interpreter;
-(instancetype)initWithSite:(MPWSiteMap*) aSite;
@end
@interface MPWSiteServer(external)
-(void)setupSite;
@end