|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
Container representing a remote request. More...
#include <GatewayContainer.h>


Public Member Functions | |
| virtual string | access () |
| access the remote target response by making the remote request More... | |
| virtual void | dump (ostream &strm) const |
| dumps information about this object More... | |
| GatewayContainer (const string &sym_name, const string &real_name, const string &type) | |
| Creates an instances of GatewayContainer with symbolic name and real name, which is the remote request. More... | |
| GatewayContainer (const GatewayContainer ©_from) | |
| string | get_attributes () const |
| retrieve the attributes desired from this container More... | |
| string | get_constraint () const |
| retrieve the constraint expression for this container More... | |
| string | get_container_type () const |
| retrieve the type of data this container holds, such as cedar or netcdf. More... | |
| string | get_dap4_constraint () const |
| retrieve the constraint expression for this container More... | |
| string | get_dap4_function () const |
| retrieve the constraint expression for this container More... | |
| string | get_real_name () const |
| retrieve the real name for this container, such as a file name. More... | |
| string | get_symbolic_name () const |
| retrieve the symbolic name for this container More... | |
| virtual BESContainer * | ptr_duplicate () |
| pure abstract method to duplicate this instances of BESContainer More... | |
| virtual bool | release () |
| release the resources More... | |
| void | set_attributes (const string &attrs) |
| set desired attributes for this container More... | |
| void | set_constraint (const string &s) |
| set the constraint for this container More... | |
| void | set_container_type (const string &type) |
| set the type of data that this container represents, such as cedar or netcdf. More... | |
| void | set_dap4_constraint (const string &s) |
| set the constraint for this container More... | |
| void | set_dap4_function (const string &s) |
| set the constraint for this container More... | |
| void | set_real_name (const string &real_name) |
| set the real name for this container, such as a file name if reading a data file. More... | |
| virtual | ~GatewayContainer () |
Protected Member Functions | |
| void | _duplicate (GatewayContainer ©_to) |
| void | _duplicate (BESContainer ©_to) |
| duplicate this instance into the passed container More... | |
Container representing a remote request.
The real name of a GatewayContainer is the actual remote request. When the access method is called the remote request is made, the response saved to file if successfull, and the target response returned as the real container that a data handler would then open.
Definition at line 56 of file GatewayContainer.h.
| GatewayContainer::GatewayContainer | ( | const string & | sym_name, |
| const string & | real_name, | ||
| const string & | type | ||
| ) |
Creates an instances of GatewayContainer with symbolic name and real name, which is the remote request.
The real_name is the remote request URL.
| sym_name | symbolic name representing this remote container |
| real_name | the remote request URL |
| BESSyntaxUserError | if the url does not validate |
Definition at line 56 of file GatewayContainer.cc.
References BESUtil::url::psswd, BESContainer::set_container_type(), BESUtil::url::uname, BESUtil::url_create(), BESUtil::url_explode(), and GatewayUtils::WhiteList.

| GatewayContainer::GatewayContainer | ( | const GatewayContainer & | copy_from | ) |
Definition at line 86 of file GatewayContainer.cc.
|
virtual |
Definition at line 114 of file GatewayContainer.cc.
References release().

|
protected |
Definition at line 97 of file GatewayContainer.cc.
References BESContainer::_duplicate().
Referenced by ptr_duplicate().

|
protectedinherited |
duplicate this instance into the passed container
| copy_to | The container to copy this instance into |
Definition at line 50 of file BESContainer.cc.
Referenced by NCMLContainer::_duplicate(), _duplicate(), BESFileContainer::_duplicate(), and BESFileContainer::ptr_duplicate().
|
virtual |
access the remote target response by making the remote request
| BESError | if there is a problem making the remote request |
Implements BESContainer.
Definition at line 125 of file GatewayContainer.cc.
References BESDEBUG, BESContainer::get_container_type(), BESCache3::get_instance(), BESContainer::get_real_name(), gateway::RemoteHttpResource::getCacheFileName(), gateway::RemoteHttpResource::getType(), gateway::RemoteHttpResource::retrieveResource(), BESContainer::set_container_type(), and TheBESKeys::TheKeys().

|
virtual |
dumps information about this object
Displays the pointer value of this instance along with information about this container.
| strm | C++ i/o stream to dump the information to |
Reimplemented from BESContainer.
Definition at line 192 of file GatewayContainer.cc.
References BESContainer::dump(), gateway::RemoteHttpResource::getCacheFileName(), gateway::RemoteHttpResource::getResponseHeaders(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

|
inlineinherited |
retrieve the attributes desired from this container
Definition at line 217 of file BESContainer.h.
|
inlineinherited |
retrieve the constraint expression for this container
Definition at line 170 of file BESContainer.h.
Referenced by BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), ncml_module::NCMLRequestHandler::ncml_build_data(), ncml_module::NCMLRequestHandler::ncml_build_dds(), BESConstraintFuncs::post_append(), and BESDapResponse::set_constraint().
|
inlineinherited |
retrieve the type of data this container holds, such as cedar or netcdf.
Definition at line 208 of file BESContainer.h.
Referenced by access(), BESContainerStorageVolatile::add_container(), BESRequestHandlerList::execute_current(), FONcTransform::FONcTransform(), BESContainerStorageVolatile::isData(), BESContainerStorageFile::isData(), and BESContainerStorageVolatile::show_containers().
|
inlineinherited |
retrieve the constraint expression for this container
Definition at line 179 of file BESContainer.h.
Referenced by BESDapResponse::set_dap4_constraint().
|
inlineinherited |
retrieve the constraint expression for this container
Definition at line 188 of file BESContainer.h.
Referenced by BESDapResponse::set_dap4_function().
|
inlineinherited |
retrieve the real name for this container, such as a file name.
Definition at line 161 of file BESContainer.h.
Referenced by access(), BESFileContainer::access(), BESRequestHandlerList::execute_current(), and BESContainerStorageVolatile::show_containers().
|
inlineinherited |
retrieve the symbolic name for this container
Definition at line 197 of file BESContainer.h.
Referenced by BESContainerStorageVolatile::add_container(), DapRequestHandler::dap_build_das(), DapRequestHandler::dap_build_data(), DapRequestHandler::dap_build_dds(), FFRequestHandler::ff_build_das(), FFRequestHandler::ff_build_data(), FFRequestHandler::ff_build_dds(), FitsRequestHandler::fits_build_das(), FitsRequestHandler::fits_build_data(), FitsRequestHandler::fits_build_dds(), GDALRequestHandler::gdal_build_das(), GDALRequestHandler::gdal_build_data(), GDALRequestHandler::gdal_build_dds(), HDF4RequestHandler::hdf4_build_das(), HDF4RequestHandler::hdf4_build_data(), HDF4RequestHandler::hdf4_build_data_with_IDs(), HDF4RequestHandler::hdf4_build_dds(), HDF5RequestHandler::hdf5_build_das(), HDF5RequestHandler::hdf5_build_data(), HDF5RequestHandler::hdf5_build_data_with_IDs(), HDF5RequestHandler::hdf5_build_dds(), NCRequestHandler::nc_build_das(), NCRequestHandler::nc_build_data(), NCRequestHandler::nc_build_dds(), BESConstraintFuncs::post_append(), and BESContainerStorageVolatile::show_containers().
|
virtual |
pure abstract method to duplicate this instances of BESContainer
Implements BESContainer.
Definition at line 108 of file GatewayContainer.cc.
References _duplicate().

|
virtual |
release the resources
Release the resource
Implements BESContainer.
Definition at line 174 of file GatewayContainer.cc.
References BESDEBUG.
Referenced by ~GatewayContainer().
|
inlineinherited |
set desired attributes for this container
| attrs | attributes desired to access for this container |
Definition at line 151 of file BESContainer.h.
Referenced by BESXMLDefineCommand::prep_request().
|
inlineinherited |
set the constraint for this container
| s | constraint |
Definition at line 104 of file BESContainer.h.
Referenced by BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), and BESXMLDefineCommand::prep_request().
|
inlineinherited |
set the type of data that this container represents, such as cedar or netcdf.
| type | type of data, such as cedar or netcdf |
Definition at line 142 of file BESContainer.h.
Referenced by access(), and GatewayContainer().
|
inlineinherited |
set the constraint for this container
| s | constraint |
Definition at line 113 of file BESContainer.h.
Referenced by BESXMLDefineCommand::prep_request().
|
inlineinherited |
set the constraint for this container
| s | constraint |
Definition at line 122 of file BESContainer.h.
Referenced by BESXMLDefineCommand::prep_request().
|
inlineinherited |
set the real name for this container, such as a file name if reading a data file.
| real_name | real name, such as the file name |
Definition at line 132 of file BESContainer.h.