Mercurial > hg > orthanc
comparison Core/RestApi/RestApi.h @ 215:c07170f3f4f7
refactoring of access to images in REST
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Nov 2012 11:25:29 +0100 |
parents | f276b175dcaf |
children | e5d5d4a9a326 |
comparison
equal
deleted
inserted
replaced
214:03817919169b | 215:c07170f3f4f7 |
---|---|
49 RestApiOutput* output_; | 49 RestApiOutput* output_; |
50 RestApi* context_; | 50 RestApi* context_; |
51 const HttpHandler::Arguments* httpHeaders_; | 51 const HttpHandler::Arguments* httpHeaders_; |
52 const RestApiPath::Components* uriComponents_; | 52 const RestApiPath::Components* uriComponents_; |
53 const UriComponents* trailing_; | 53 const UriComponents* trailing_; |
54 const UriComponents* fullUri_; | |
54 | 55 |
55 public: | 56 public: |
56 RestApiOutput& GetOutput() | 57 RestApiOutput& GetOutput() |
57 { | 58 { |
58 return *output_; | 59 return *output_; |
61 RestApi& GetContext() | 62 RestApi& GetContext() |
62 { | 63 { |
63 return *context_; | 64 return *context_; |
64 } | 65 } |
65 | 66 |
66 const UriComponents& GetTrailing() const | 67 const UriComponents& GetFullUri() const |
67 { | 68 { |
68 return *trailing_; | 69 return *fullUri_; |
69 } | 70 } |
70 | 71 |
71 std::string GetUriComponent(const std::string& name, | 72 std::string GetUriComponent(const std::string& name, |
72 const std::string& defaultValue) | 73 const std::string& defaultValue) |
73 { | 74 { |