Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsEnumerations.cpp @ 1961:ef1e9856c26f
New callback to filter incoming HTTP requests: OrthancPluginRegisterIncomingHttpRequestFilter()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 Apr 2016 17:26:13 +0200 |
parents | b1291df2f780 |
children | 6301bbcbcaed |
comparison
equal
deleted
inserted
replaced
1960:239e50b3792f | 1961:ef1e9856c26f |
---|---|
302 throw OrthancException(ErrorCode_ParameterOutOfRange); | 302 throw OrthancException(ErrorCode_ParameterOutOfRange); |
303 } | 303 } |
304 } | 304 } |
305 | 305 |
306 | 306 |
307 OrthancPluginHttpMethod Convert(HttpMethod method) | |
308 { | |
309 switch (method) | |
310 { | |
311 case HttpMethod_Get: | |
312 return OrthancPluginHttpMethod_Get; | |
313 | |
314 case HttpMethod_Post: | |
315 return OrthancPluginHttpMethod_Post; | |
316 | |
317 case HttpMethod_Put: | |
318 return OrthancPluginHttpMethod_Put; | |
319 | |
320 case HttpMethod_Delete: | |
321 return OrthancPluginHttpMethod_Delete; | |
322 | |
323 default: | |
324 throw OrthancException(ErrorCode_ParameterOutOfRange); | |
325 } | |
326 } | |
327 | |
328 | |
307 #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0 | 329 #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0 |
308 DcmEVR Convert(OrthancPluginValueRepresentation vr) | 330 DcmEVR Convert(OrthancPluginValueRepresentation vr) |
309 { | 331 { |
310 switch (vr) | 332 switch (vr) |
311 { | 333 { |