![]() |
Qore FileLocationHandler Module Reference 2.3
|
The class for handling "rest(s)://"" locations. More...
#include <FileLocationHandlerRest.qc.dox.h>
Public Attributes | |
const | RestClientLocationOpts |
Valid REST location options. More... | |
Private Member Methods | |
binary | getBinaryFileImpl (string scheme, string location, *hash< auto > opts) |
Retrieves a binary file from the given location. More... | |
Qore::InputStream | getBinaryStreamImpl (string scheme, string location, *hash< auto > opts) |
Retrieves a binary file from the given location. More... | |
Qore::AbstractPollOperation | getIoPollerForLocationImpl (string scheme, string location, *hash< auto > opts) |
Retrieves an I/O poller to retrieve a binary file from the given location. More... | |
OutputStreamWrapper | getOutputStreamImpl (string scheme, string location, *hash< auto > opts) |
This method only throws a STREAM-WRITE-ERROR exception. More... | |
hash< string, hash< FileHandlerOptionInfo > > | getReadOptionsImpl () |
Gets supported read options. More... | |
object | getRestClient (string scheme, string location, *hash< auto > opts, reference< string > path, bool do_connect=True) |
Returns a RestClient object for the given location. More... | |
Qore::StreamReader | getStreamReaderImpl (string scheme, string location, *hash< auto > opts) |
Returns a stream reader for the file's data at the given location. More... | |
string | getTextFileImpl (string scheme, string location, *hash< auto > opts) |
Retrieves a text file from the given location. More... | |
hash< string, hash< FileHandlerOptionInfo > > | getWriteOptionsImpl () |
Gets supported write options. More... | |
writeFileImpl (string scheme, string location, data contents, *hash< auto > opts) | |
Writes data to a file at the given location. More... | |
abstract binary | getBinaryFileImpl (string scheme, string location, *hash< auto > opts) |
Retrieves a binary file from the given location. More... | |
abstract Qore::InputStream | getBinaryStreamImpl (string scheme, string location, *hash< auto > opts) |
Retrieves a binary file from the given location. More... | |
abstract Qore::AbstractPollOperation | getIoPollerForLocationImpl (string scheme, string location, *hash< auto > opts) |
Retrieves an I/O poller to retrieve a binary file from the given location. More... | |
abstract OutputStreamWrapper | getOutputStreamImpl (string scheme, string location, *hash< auto > opts) |
Returns an output stream for writing data to the given location. More... | |
abstract hash< string, hash< FileHandlerOptionInfo > > | getReadOptionsImpl () |
Gets supported read options. More... | |
abstract Qore::StreamReader | getStreamReaderImpl (string scheme, string location, *hash< auto > opts) |
Returns a string stream for the file's data at the given location. More... | |
abstract string | getTextFileImpl (string scheme, string location, *hash< auto > opts) |
Retrieves a text file from the given location. More... | |
abstract hash< string, hash< FileHandlerOptionInfo > > | getWriteOptionsImpl () |
Gets supported write options. More... | |
abstract | writeFileImpl (string scheme, string location, data contents, *hash< auto > opts) |
Writes data to a file at the given location. More... | |
Additional Inherited Members | |
![]() | |
binary | getBinaryFile (string scheme, string location, *hash< auto > opts) |
Retrieves a binary file from the given location. More... | |
Qore::InputStream | getBinaryStream (string scheme, string location, *hash< auto > opts) |
Retrieves a binary file from the given location. More... | |
Qore::AbstractPollOperation | getIoPollerForLocation (string scheme, string location, *hash< auto > opts) |
Retrieves an I/O poller to retrieve a binary file from the given location. More... | |
OutputStreamWrapper | getOutputStream (string scheme, string location, *hash< auto > opts) |
Returns an output stream for writing data to the given location. More... | |
hash< string, hash< FileHandlerOptionInfo > > | getReadOptions () |
Gets supported read options. More... | |
Qore::StreamReader | getStreamReader (string scheme, string location, *hash< auto > opts) |
Returns a string stream for the file's data at the given location. More... | |
string | getTextFile (string scheme, string location, *hash< auto > opts) |
Retrieves a text file from the given location. More... | |
hash< string, hash< FileHandlerOptionInfo > > | getWriteOptions () |
Gets supported write options. More... | |
writeFile (string scheme, string location, data contents, *hash< auto > opts) | |
Writes data to a file at the given location. More... | |
![]() | |
static string | forceEncoding (string str, *string encoding) |
Returns a string tagged with the given encoding, if any. | |
The class for handling "rest(s)://"" locations.
|
privatevirtual |
Retrieves a binary file from the given location.
scheme | the scheme being used |
location | the location string without the scheme |
opts | read options |
REST-DATA-ERROR | The REST call returned a data type that cannot be converted to a binary |
Implements FileLocationHandler::AbstractFileLocationHandler.
|
privatevirtual |
Retrieves a binary file from the given location.
scheme | the scheme being used |
location | the location string without the scheme |
opts | read options |
REST-DATA-ERROR | The REST call returned a data type that cannot be converted to a binary |
Implements FileLocationHandler::AbstractFileLocationHandler.
|
privatevirtual |
Retrieves an I/O poller to retrieve a binary file from the given location.
scheme | the scheme being used |
location | the location string without the scheme |
opts | read options |
Implements FileLocationHandler::AbstractFileLocationHandler.
|
privatevirtual |
This method only throws a STREAM-WRITE-ERROR
exception.
scheme | the scheme being used |
location | the location string without the scheme |
opts | write options |
STREAM-WRITE-ERROR | rest(s):// locations do not support writing to output streams |
Implements FileLocationHandler::AbstractFileLocationHandler.
|
privatevirtual |
Gets supported read options.
Implements FileLocationHandler::AbstractFileLocationHandler.
|
private |
Returns a RestClient object for the given location.
|
privatevirtual |
Returns a stream reader for the file's data at the given location.
scheme | the scheme being used |
location | the location string without the scheme |
opts | read options |
REST-DATA-ERROR | The REST call returned a data type that cannot be converted to a binary |
Implements FileLocationHandler::AbstractFileLocationHandler.
|
privatevirtual |
Retrieves a text file from the given location.
scheme | the scheme being used |
location | the location string without the scheme |
opts | read options |
REST-DATA-ERROR | The REST call returned a data type that cannot be converted to a string |
Implements FileLocationHandler::AbstractFileLocationHandler.
|
privatevirtual |
Gets supported write options.
Implements FileLocationHandler::AbstractFileLocationHandler.
|
privatevirtual |
Writes data to a file at the given location.
scheme | the scheme being used |
location | the location string without the scheme |
contents | the file's contents |
opts | write options |
Implements FileLocationHandler::AbstractFileLocationHandler.
const FileLocationHandler::FileLocationHandlerRest::RestClientLocationOpts |
Valid REST location options.