libdap++
Updated for version 3.14.0
|
#include <D4Connect.h>
Suppress the C++ defaults for these. | |
D4Connect () | |
D4Connect (const D4Connect &) | |
D4Connect & | operator= (const D4Connect &) |
D4Connect (const std::string &url, std::string uname="", std::string password="") | |
virtual | ~D4Connect () |
bool | is_local () const |
virtual std::string | URL () const |
virtual std::string | CE () const |
void | set_credentials (std::string u, std::string p) |
Set the credentials for responding to challenges while dereferencing URLs. More... | |
void | set_accept_deflate (bool deflate) |
void | set_xdap_protocol (int major, int minor) |
void | set_cache_enabled (bool enabled) |
bool | is_cache_enabled () |
void | set_xdap_accept (int major, int minor) |
std::string | get_version () |
std::string | get_protocol () |
virtual void | request_dmr (DMR &dmr, const std::string expr="") |
virtual void | request_dap4_data (DMR &dmr, const std::string expr="") |
virtual void | read_dmr (DMR &dmr, Response &rs) |
virtual void | read_dmr_no_mime (DMR &dmr, Response &rs) |
virtual void | read_data (DMR &data, Response &rs) |
virtual void | read_data_no_mime (DMR &data, Response &rs) |
Definition at line 38 of file D4Connect.h.
|
protected |
|
protected |
libdap::D4Connect::D4Connect | ( | const std::string & | url, |
std::string | uname = "" , |
||
std::string | password = "" |
||
) |
|
virtual |
Definition at line 281 of file D4Connect.cc.
|
inlinevirtual |
Definition at line 70 of file D4Connect.h.
|
inline |
Return the DAP protocol version of the most recent response. Before a response is made, this contains the std::string "2.0."
Definition at line 95 of file D4Connect.h.
Referenced by main().
|
inline |
Return the protocol/implementation version of the most recent response. This is a poorly designed method, but it returns information that is useful when used correctly. Before a response is made, this contains the std::string "unknown." This should ultimately hold the protocol version; it currently holds the implementation version.
@see get_protocol()
Definition at line 90 of file D4Connect.h.
Referenced by main().
bool libdap::D4Connect::is_cache_enabled | ( | ) |
Definition at line 1142 of file D4Connect.cc.
References libdap::HTTPConnect::is_cache_enabled().
|
inline |
Definition at line 67 of file D4Connect.h.
Referenced by main().
Definition at line 1076 of file D4Connect.cc.
References libdap::Response::get_type(), read_data_no_mime(), and libdap::unknown_type.
Definition at line 1085 of file D4Connect.cc.
References libdap::dap4_data, libdap::DMR::dap_version(), libdap::Response::get_type(), libdap::Response::get_version(), libdap::Response::set_type(), and libdap::unknown_type.
Referenced by read_data().
Definition at line 1048 of file D4Connect.cc.
References libdap::Response::get_type(), read_dmr_no_mime(), and libdap::unknown_type.
Definition at line 1058 of file D4Connect.cc.
References libdap::dap4_dmr, libdap::DMR::dap_version(), libdap::Response::get_type(), libdap::Response::get_version(), libdap::Response::set_type(), and libdap::unknown_type.
Referenced by read_dmr().
|
virtual |
Definition at line 329 of file D4Connect.cc.
References CHUNK_SIZE, libdap::dap4_data, libdap::dap4_error, libdap::D4Group::deserialize(), libdap::HTTPConnect::fetch_url(), libdap::Response::get_cpp_stream(), libdap::Response::get_protocol(), libdap::Response::get_type(), libdap::Response::get_version(), libdap::id2www_ce(), libdap::D4ParserSax2::intern(), libdap::long_to_string(), libdap::chunked_istream::read_next_chunk(), libdap::DMR::root(), libdap::chunked_istream::twiddle_bytes(), libdap::unknown_type, and libdap::web_error.
Referenced by main().
|
virtual |
Definition at line 286 of file D4Connect.cc.
References libdap::dap4_dmr, libdap::dap4_error, libdap::HTTPConnect::fetch_url(), libdap::Response::get_cpp_stream(), libdap::Response::get_protocol(), libdap::Response::get_type(), libdap::Response::get_version(), libdap::id2www_ce(), libdap::D4ParserSax2::intern(), libdap::long_to_string(), libdap::unknown_type, and libdap::web_error.
Referenced by main().
void libdap::D4Connect::set_accept_deflate | ( | bool | deflate | ) |
Set the accept deflate property.
deflate | True if the client can accept compressed responses, False otherwise. |
Definition at line 1116 of file D4Connect.cc.
References libdap::HTTPConnect::set_accept_deflate().
Referenced by main().
void libdap::D4Connect::set_cache_enabled | ( | bool | cache | ) |
Disable any further use of the client-side cache. In a future version of this software, this should be handled so that the www library is not initialized with the cache running by default.
Definition at line 1136 of file D4Connect.cc.
References libdap::HTTPConnect::set_cache_enabled().
void libdap::D4Connect::set_credentials | ( | std::string | u, |
std::string | p | ||
) |
u | The username. |
p | The password. |
Definition at line 1107 of file D4Connect.cc.
References libdap::HTTPConnect::set_credentials().
void libdap::D4Connect::set_xdap_accept | ( | int | major, |
int | minor | ||
) |
void libdap::D4Connect::set_xdap_protocol | ( | int | major, |
int | minor | ||
) |
Set the XDAP-Accept property/header. This is used to send to a server the (highest) DAP protocol version number that this client understands.
major | The client dap protocol major version |
minor | The client dap protocol minor version |
Definition at line 1127 of file D4Connect.cc.
References libdap::HTTPConnect::set_xdap_protocol().
Referenced by main().
|
inlinevirtual |
Definition at line 69 of file D4Connect.h.