PageRenderTime 343ms CodeModel.GetById 171ms app.highlight 2ms RepoModel.GetById 169ms app.codeStats 0ms

/mordor/http/servlets/config.h

http://github.com/mozy/mordor
C++ Header | 38 lines | 28 code | 9 blank | 1 comment | 0 complexity | 61c66ab21d9b854c2aae2b50f87e9ae4 MD5 | raw file
 1#ifndef __MORDOR_HTTP_SERVLETS_CONFIG_H__
 2#define __MORDOR_HTTP_SERVLETS_CONFIG_H__
 3// Copyright (c) 2010 - Mozy, Inc.
 4
 5#include <boost/shared_ptr.hpp>
 6
 7#include "mordor/http/servlet.h"
 8
 9namespace Mordor {
10namespace HTTP {
11class ServerRequest;
12namespace Servlets {
13
14class Config : public Servlet
15{
16public:
17    enum Access
18    {
19        READONLY,
20        READWRITE
21    };
22
23public:
24    Config(Access access)
25        : m_access(access)
26    {}
27
28    void request(boost::shared_ptr<ServerRequest> request)
29    { return this->request(request, m_access); }
30    void request(boost::shared_ptr<ServerRequest> request, Access access);
31
32private:
33    Access m_access;
34};
35
36}}}
37
38#endif