sipxtacklib
Version 3.3
Main Page
Related Pages
Classes
Files
File List
File Members
include
net
HttpService.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2004-2006 SIPfoundry Inc.
3
// Licensed by SIPfoundry under the LGPL license.
4
//
5
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6
// Licensed to SIPfoundry under a Contributor Agreement.
7
//
8
// $$
10
11
#ifndef _HTTPSERVICE_H_
12
#define _HTTPSERVICE_H_
13
14
// SYSTEM INCLUDES
15
16
// APPLICATION INCLUDES
17
18
// DEFINES
19
// MACROS
20
// EXTERNAL FUNCTIONS
21
// EXTERNAL VARIABLES
22
// CONSTANTS
23
// STRUCTS
24
// TYPEDEFS
25
// FORWARD DECLARATIONS
26
class
HttpMessage
;
27
class
HttpRequestContext
;
28
40
class
HttpService
41
{
42
/* //////////////////////////// PUBLIC //////////////////////////////////// */
43
public
:
44
45
/* ============================ CREATORS ================================== */
46
48
HttpService
();
49
51
virtual
~HttpService
();
52
54
virtual
void
processRequest
(
const
HttpRequestContext
& requestContext,
55
const
HttpMessage
& request,
56
HttpMessage
*& response
57
) = 0;
58
59
/* ============================ MANIPULATORS ============================== */
60
61
/* ============================ ACCESSORS ================================= */
62
63
64
/* ============================ INQUIRY =================================== */
65
66
/* //////////////////////////// PROTECTED ///////////////////////////////// */
67
protected
:
68
69
/* //////////////////////////// PRIVATE /////////////////////////////////// */
70
private
:
71
73
HttpService
(
const
HttpService
& rHttpService);
74
76
HttpService
& operator=(
const
HttpService
& rhs);
77
78
};
79
80
/* ============================ INLINE METHODS ============================ */
81
82
#endif // _HTTPSERVICE_H_
83
84
HttpMessage
HTTP message container.
Definition:
HttpMessage.h:191
HttpService::processRequest
virtual void processRequest(const HttpRequestContext &requestContext, const HttpMessage &request, HttpMessage *&response)=0
Process request. Subclasses must provide a definition for this method.
HttpService::~HttpService
virtual ~HttpService()
Destructor.
Definition:
HttpService.cpp:31
HttpRequestContext
Definition:
HttpRequestContext.h:37
HttpService::HttpService
HttpService()
Constructor.
Definition:
HttpService.cpp:26
HttpService
A HttpService is a dynamically loaded object that is invoked by the HttpServer during the runtime...
Definition:
HttpService.h:40
sipXtackLib home page