Odil
A C++11 library for the DICOM standard
|
WADO-RS request generator and parser. More...
#include <WADORSRequest.h>
Public Member Functions | |
WADORSRequest (URL const &base_url, std::string const &transfer_syntax="", std::string const &character_set="", bool include_media_type_in_query=false, bool include_character_set_in_query=false) | |
Constructor. | |
WADORSRequest (HTTPRequest const &request) | |
Constructor. | |
bool | operator== (WADORSRequest const &other) const |
Equality operator. | |
bool | operator!= (WADORSRequest const &other) const |
Difference operator. | |
URL const & | get_base_url () const |
Return the base URL. | |
void | set_base_url (URL const &url) |
Set the base URL; the query and fragment must be empty. | |
std::string const & | get_transfer_syntax () const |
Return the transfer syntax. | |
void | set_transfer_syntax (std::string const &transfer_syntax) |
Set the transfer syntax. | |
std::string const & | get_character_set () const |
Return the transfer syntax. | |
void | set_character_set (std::string const &character_set) |
Set the transfer syntax. | |
bool | get_include_media_type_in_query () const |
Return whether to include the media type in the URL query. | |
void | set_include_media_type_in_query (bool include_media_type_in_query) |
Set whether to include the media type in the URL query. | |
bool | get_include_character_set_in_query () const |
Return whether to include the character set in the URL query. | |
void | set_include_character_set_in_query (bool include_charcter_set_in_query) |
Set whether to include the character_set in the URL query. | |
Type | get_type () const |
Return the query type. | |
Selector const & | get_selector () const |
Return the selector. | |
URL const & | get_url () const |
Return the URL. | |
std::string const & | get_media_type () const |
Return the media type. | |
Representation const & | get_representation () const |
Return the representation. | |
void | request_dicom (Representation representation, Selector const &selector) |
Prepare a DICOM request. | |
void | request_bulk_data (Selector const &selector) |
Prepare a bulk data request. | |
void | request_bulk_data (URL const &url) |
Prepare a bulk data request. | |
void | request_pixel_data (Selector const &selector, std::string const &media_type="application/octet-stream") |
Prepare a pixel data request. | |
HTTPRequest | get_http_request () const |
Generate the associated HTTP request. | |
WADO-RS request generator and parser.
odil::webservices::WADORSRequest::WADORSRequest | ( | URL const & | base_url, |
std::string const & | transfer_syntax = "" , |
||
std::string const & | character_set = "" , |
||
bool | include_media_type_in_query = false , |
||
bool | include_character_set_in_query = false |
||
) |
Constructor.
odil::webservices::WADORSRequest::WADORSRequest | ( | HTTPRequest const & | request | ) |
Constructor.
std::string const & odil::webservices::WADORSRequest::get_character_set | ( | ) | const |
Return the transfer syntax.
HTTPRequest odil::webservices::WADORSRequest::get_http_request | ( | ) | const |
Generate the associated HTTP request.
bool odil::webservices::WADORSRequest::get_include_character_set_in_query | ( | ) | const |
Return whether to include the character set in the URL query.
bool odil::webservices::WADORSRequest::get_include_media_type_in_query | ( | ) | const |
Return whether to include the media type in the URL query.
std::string const & odil::webservices::WADORSRequest::get_media_type | ( | ) | const |
Return the media type.
Representation const & odil::webservices::WADORSRequest::get_representation | ( | ) | const |
Return the representation.
Selector const & odil::webservices::WADORSRequest::get_selector | ( | ) | const |
Return the selector.
std::string const & odil::webservices::WADORSRequest::get_transfer_syntax | ( | ) | const |
Return the transfer syntax.
Type odil::webservices::WADORSRequest::get_type | ( | ) | const |
Return the query type.
bool odil::webservices::WADORSRequest::operator!= | ( | WADORSRequest const & | other | ) | const |
Difference operator.
bool odil::webservices::WADORSRequest::operator== | ( | WADORSRequest const & | other | ) | const |
Equality operator.
void odil::webservices::WADORSRequest::request_bulk_data | ( | Selector const & | selector | ) |
Prepare a bulk data request.
void odil::webservices::WADORSRequest::request_bulk_data | ( | URL const & | url | ) |
Prepare a bulk data request.
void odil::webservices::WADORSRequest::request_dicom | ( | Representation | representation, |
Selector const & | selector | ||
) |
Prepare a DICOM request.
void odil::webservices::WADORSRequest::request_pixel_data | ( | Selector const & | selector, |
std::string const & | media_type = "application/octet-stream" |
||
) |
Prepare a pixel data request.
void odil::webservices::WADORSRequest::set_base_url | ( | URL const & | url | ) |
Set the base URL; the query and fragment must be empty.
void odil::webservices::WADORSRequest::set_character_set | ( | std::string const & | character_set | ) |
Set the transfer syntax.
void odil::webservices::WADORSRequest::set_include_character_set_in_query | ( | bool | include_charcter_set_in_query | ) |
Set whether to include the character_set in the URL query.
void odil::webservices::WADORSRequest::set_include_media_type_in_query | ( | bool | include_media_type_in_query | ) |
Set whether to include the media type in the URL query.
void odil::webservices::WADORSRequest::set_transfer_syntax | ( | std::string const & | transfer_syntax | ) |
Set the transfer syntax.