comparison Core/RestApi/RestApi.h @ 212:f276b175dcaf

delete resources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2012 10:13:49 +0100
parents 96b7918a6a18
children c07170f3f4f7
comparison
equal deleted inserted replaced
211:b7aea293b965 212:f276b175dcaf
61 RestApi& GetContext() 61 RestApi& GetContext()
62 { 62 {
63 return *context_; 63 return *context_;
64 } 64 }
65 65
66 const HttpHandler::Arguments& GetHttpHeaders() const
67 {
68 return *httpHeaders_;
69 }
70
71 const RestApiPath::Components& GetUriComponents() const
72 {
73 return *uriComponents_;
74 }
75
76 const UriComponents& GetTrailing() const 66 const UriComponents& GetTrailing() const
77 { 67 {
78 return *trailing_; 68 return *trailing_;
79 } 69 }
80 70
81 std::string GetUriComponent(const std::string& name, 71 std::string GetUriComponent(const std::string& name,
82 const std::string& defaultValue) 72 const std::string& defaultValue)
83 { 73 {
84 return HttpHandler::GetArgument(*uriComponents_, name, defaultValue); 74 return HttpHandler::GetArgument(*uriComponents_, name, defaultValue);
75 }
76
77 std::string GetHttpHeader(const std::string& name,
78 const std::string& defaultValue)
79 {
80 return HttpHandler::GetArgument(*httpHeaders_, name, defaultValue);
85 } 81 }
86 }; 82 };
87 83
88 84
89 public: 85 public: