#include <AISConnect.h>
Inheritance diagram for AISConnect:
Public Member Functions | |
AISConnect (const string &name, const string &ais_db) throw (AISDatabaseReadFailed) | |
AISConnect (const string &name) throw (AISDatabaseReadFailed) | |
virtual string | CE () |
Get the Connect's constraint expression. | |
string | get_protocol () |
string | get_version () |
bool | is_cache_enabled () |
bool | is_local () |
virtual void | read_data (DataDDS &data, Response *rs) |
Read data which is preceded by MIME headers. | |
virtual void | read_data_no_mime (DataDDS &data, Response *rs) |
Read data from a file which does not have response MIME headers. This method is a companion to read_data(). While read_data() assumes that the response has MIME headers, this method does not. If you call this with a Response that does contain headers, it will throw an Error (and the message is likely to be inscrutable). | |
virtual void | request_das (DAS &das) |
virtual void | request_das_url (DAS &das) |
Get the DAS from a server. | |
virtual void | request_data (DataDDS &data, string expr="") |
Get the DAS from a server. | |
virtual void | request_data_url (DataDDS &data) |
Get the DAS from a server. | |
virtual void | request_dds (DDS &dds, string expr="") |
Get the DDS from a server. | |
virtual void | request_dds_url (DDS &dds) |
Get the DDS from a server. | |
virtual void | request_ddx (DDS &dds, string expr="") |
Get the DDX from a server. | |
virtual void | request_ddx_url (DDS &dds) |
The 'url' version of request_ddx. | |
virtual string | request_protocol () |
virtual string | request_version () |
void | set_accept_deflate (bool deflate) |
void | set_cache_enabled (bool enabled) |
void | set_credentials (string u, string p) |
Set the credentials for responding to challenges while dereferencing URLs. | |
virtual string | URL (bool CE=true) |
Get the object's URL. | |
virtual | ~AISConnect () |
Protected Member Functions | |
Suppress the C++ defaults for these. | |
AISConnect (const AISConnect &ac) | |
AISConnect () |
Definition at line 42 of file AISConnect.h.
|
Definition at line 50 of file AISConnect.h. |
|
Definition at line 52 of file AISConnect.h. |
|
Build an AISConnect. This calls Connect's constructor with
Definition at line 38 of file AISConnect.cc. References RCReader::get_ais_database(), and RCReader::instance(). |
Here is the call graph for this function:
|
Build an AISConnect. This calls Connect's constructor with
Definition at line 55 of file AISConnect.cc. |
|
Destroy an AISConnect. Definition at line 63 of file AISConnect.cc. |
|
Return the constraint expression (CE) part of the Connect URL. Note that this CE is supplied as part of the URL passed to the Connect's constructor. It is not the CE passed to the
Definition at line 939 of file Connect.cc. |
|
Return the DAP protocol version of the most recent response. Before a response is made, this contains the string "2.0." Definition at line 198 of file Connect.h. Referenced by main(). |
|
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 string "unknown." This should ultimately hold the protocol version; it currently holds the implementation version.
Definition at line 190 of file Connect.h. Referenced by main(). |
|
Definition at line 981 of file Connect.cc. References DBG, DBGN, and HTTPConnect::is_cache_enabled(). |
Here is the call graph for this function:
|
Definition at line 896 of file Connect.cc. Referenced by main(). |
|
This is a place holder. A better implementation for reading objects from the local file store is to write FileConnect and have it support the same interface as HTTPConnect.
Definition at line 867 of file Connect.cc. References Connect::read_data_no_mime(). Referenced by main(). |
Here is the call graph for this function:
|
Definition at line 887 of file Connect.cc. References Response::get_protocol(), and Response::get_version(). Referenced by main(), and Connect::read_data(). |
Here is the call graph for this function:
|
Request an AIS-enhanced DAS object. Read the DAS object for this virtual connection's data source. Then check the AIS database and merge in any ancillary resources listed for it.
Reimplemented from Connect. Definition at line 77 of file AISConnect.cc. References AISMerge::merge(), Connect::request_das(), and Connect::URL(). |
Here is the call graph for this function:
|
Reads the DAS corresponding to the dataset in the Connect object's URL. Although DAP does not support using CEs with DAS requests, if present in the Connect object's instance, they will be escaped and passed as the query string of the request. Different from request_das method in that this method uses the URL as given without attaching .das or projections or selections.
Definition at line 427 of file Connect.cc. References dods_das, dods_error, HTTPConnect::fetch_url(), Response::get_protocol(), Response::get_stream(), Response::get_type(), Response::get_version(), DAS::parse(), Error::parse(), and web_error. |
Here is the call graph for this function:
|
Reads the DataDDS object corresponding to the dataset in the Connect object's URL. If present in the Connect object's instance, a CE will be escaped, combined with
Definition at line 780 of file Connect.cc. References HTTPConnect::fetch_url(), Response::get_protocol(), Response::get_version(), and id2www_ce(). Referenced by main(). |
Here is the call graph for this function:
|
Reads the DataDDS object corresponding to the dataset in the Connect object's URL. If present in the Connect object's instance, a CE will be escaped, combined with Different from request_data in that this method uses the syntax of the new OPeNDAP server commands using dispatch
Definition at line 830 of file Connect.cc. References HTTPConnect::fetch_url(), Response::get_protocol(), and Response::get_version(). |
Here is the call graph for this function:
|
Reads the DDS corresponding to the dataset in the Connect object's URL. If present in the Connect object's instance, a CE will be escaped, combined with
Definition at line 490 of file Connect.cc. References dods_dds, dods_error, HTTPConnect::fetch_url(), Response::get_protocol(), Response::get_stream(), Response::get_type(), Response::get_version(), id2www_ce(), DDS::parse(), Error::parse(), and web_error. Referenced by main(). |
Here is the call graph for this function:
|
Reads the DDS corresponding to the dataset in the Connect object's URL. If present in the Connect object's instance, a CE will be escaped, combined with Different from request_dds method above in that this method assumes URL is complete and does not add anything to the command, such as .dds or projections or selections.
Definition at line 574 of file Connect.cc. References dods_dds, dods_error, HTTPConnect::fetch_url(), Response::get_protocol(), Response::get_stream(), Response::get_type(), Response::get_version(), DDS::parse(), Error::parse(), and web_error. |
Here is the call graph for this function:
|
Reads the DDX corresponding to the dataset in the Connect object's URL. If present in the Connect object's instance, a CE will be escaped, combined with
Definition at line 634 of file Connect.cc. References dap4_ddx, dods_error, HTTPConnect::fetch_url(), DDS::get_factory(), Response::get_protocol(), Response::get_stream(), Response::get_type(), Response::get_version(), id2www_ce(), DDS::parse(), Error::parse(), and web_error. Referenced by main(). |
Here is the call graph for this function:
|
Definition at line 709 of file Connect.cc. References dap4_ddx, dods_error, HTTPConnect::fetch_url(), Response::get_protocol(), Response::get_stream(), Response::get_type(), Response::get_version(), DDS::parse(), Error::parse(), and web_error. |
Here is the call graph for this function:
|
Get protocol version information from the server. This is a new method which will ease the transition to DAP 4. Note that this method returns the version of the DAP protocol implemented by the server. The request_version() method returns the server's version number, not the DAP protocol version.
Definition at line 328 of file Connect.cc. References HTTPConnect::fetch_url(), Response::get_protocol(), Response::get_version(), and id2www_ce(). Referenced by main(). |
Here is the call graph for this function:
|
Get version information from the server. This is a new method which will ease the transition to DAP 4.
Definition at line 298 of file Connect.cc. References HTTPConnect::fetch_url(), Response::get_protocol(), Response::get_version(), and id2www_ce(). |
Here is the call graph for this function:
|
Set the accept deflate property.
Definition at line 964 of file Connect.cc. References deflate, and HTTPConnect::set_accept_deflate(). Referenced by main(). |
Here is the call graph for this function:
|
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 974 of file Connect.cc. References HTTPConnect::set_cache_enabled(). |
Here is the call graph for this function:
|
Definition at line 954 of file Connect.cc. References HTTPConnect::set_credentials(). |
Here is the call graph for this function:
|
Return the Connect object's URL in a string. The URL was set by the class constructor, and may not be reset. If you want to open another URL, you must create another Connect object. There is a Connections class created to handle the management of multiple Connect objects.
Definition at line 918 of file Connect.cc. Referenced by main(), and request_das(). |