DCL 3.7.4
Loading...
Searching...
No Matches
HttpServletEx.h
Go to the documentation of this file.
1#ifndef __DCL_HTTP_SERVLET_EX_H__
2#define __DCL_HTTP_SERVLET_EX_H__ 20050530
3
4#ifndef __DCL_HTTP_SERVLET_H__
5#include <dcl/HttpServlet.h>
6#endif
7#ifndef __DCL_HTTP_COLLECTION_H__
9#endif
10#ifndef __DCL_LISTED_HASH_MAP_H__
11#include <dcl/ListedHashMap.h>
12#endif
13#ifndef __DCL_STRING_WRITER_H__
14#include <dcl/StringWriter.h>
15#endif
16
17__DCL_BEGIN_NAMESPACE
18
19class HttpServletEx;
20
22{
24public:
25 ListedStringToStringMap __cookieMap;
26 ListedStringToStringArrayMap __queryMap;
27 ListedStringToStringArrayMap __formMap;
28 StoredHttpFormData __formFileMap;
29
30public:
32
33protected:
35 const DCL_HTTP_SERVER_API* _SAPI,
36 const DCL_HTTP_SERVLET_CONTEXT* _context,
37 const String& _tempPath
38 );
39 virtual ~HttpServletContextEx();
40
41 void initRequest(size_t nMaxContentLength)
42 __DCL_THROWS1(FormDataException*);
43
45
46 friend class HttpServletEx;
47};
48
50{
52public:
54
55protected:
57
58#ifdef __DCL_DEBUG
59 // Content-Type이 text/* 일 경우 __DCL_TRACE의 내용을 추가
60 bool __enableDebugOut;
61#endif
62
63protected:
64 virtual void onInitialize()
66
67 virtual void onService(
70
71private:
72 virtual void onHttpService(
73 const DCL_HTTP_SERVLET_CONTEXT* pContext
75};
76
77__DCL_END_NAMESPACE
78
79#endif // __DCL_HTTP_SERVLET_EX_H__
#define DCLCAPI
Definition Config.h:95
#define __DCL_THROWS1(e)
Definition Config.h:152
struct _DCL_HTTP_SERVLET_CONTEXT DCL_HTTP_SERVLET_CONTEXT
struct _DCL_HTTP_SERVER_API DCL_HTTP_SERVER_API
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:227
StringWriter __responseBuf
void initRequest(size_t nMaxContentLength) __DCL_THROWS1(FormDataException *)
HttpServletContextEx(const DCL_HTTP_SERVER_API *_SAPI, const DCL_HTTP_SERVLET_CONTEXT *_context, const String &_tempPath)
StringWriter & writer()
friend class HttpServletEx
virtual void onInitialize() __DCL_THROWS1(Exception *)
virtual void onService(HttpServletContextEx &ctx)=0__DCL_THROWS1(Exception *)
size_t __maxContentLength