Mercurial > hg > orthanc
comparison Core/RestApi/RestApi.h @ 231:8098448bd827
export log
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 12:18:44 +0100 |
parents | 1ac3aacd10a5 |
children | 16a4ac70bd8a |
comparison
equal
deleted
inserted
replaced
230:ae2367145b49 | 231:8098448bd827 |
---|---|
70 { | 70 { |
71 return *fullUri_; | 71 return *fullUri_; |
72 } | 72 } |
73 | 73 |
74 std::string GetUriComponent(const std::string& name, | 74 std::string GetUriComponent(const std::string& name, |
75 const std::string& defaultValue) | 75 const std::string& defaultValue) const |
76 { | 76 { |
77 return HttpHandler::GetArgument(*uriComponents_, name, defaultValue); | 77 return HttpHandler::GetArgument(*uriComponents_, name, defaultValue); |
78 } | 78 } |
79 | 79 |
80 std::string GetHttpHeader(const std::string& name, | 80 std::string GetHttpHeader(const std::string& name, |
81 const std::string& defaultValue) | 81 const std::string& defaultValue) const |
82 { | 82 { |
83 return HttpHandler::GetArgument(*httpHeaders_, name, defaultValue); | 83 return HttpHandler::GetArgument(*httpHeaders_, name, defaultValue); |
84 } | 84 } |
85 }; | 85 }; |
86 | 86 |
93 private: | 93 private: |
94 const HttpHandler::Arguments* getArguments_; | 94 const HttpHandler::Arguments* getArguments_; |
95 | 95 |
96 public: | 96 public: |
97 std::string GetArgument(const std::string& name, | 97 std::string GetArgument(const std::string& name, |
98 const std::string& defaultValue) | 98 const std::string& defaultValue) const |
99 { | 99 { |
100 return HttpHandler::GetArgument(*getArguments_, name, defaultValue); | 100 return HttpHandler::GetArgument(*getArguments_, name, defaultValue); |
101 } | 101 } |
102 }; | 102 }; |
103 | 103 |